logiops icon indicating copy to clipboard operation
logiops copied to clipboard

MX vertical mouse gesture action doesn't work

Open joyet-simon opened this issue 2 years ago • 10 comments

Hi, I have no errors but my config for gestures on back button doesn't work. This is ma config:

devices: (
{
    name: "MX Vertical Advanced Ergonomic Mouse";
    smartshift:
    {
        on: true;
        threshold: 30;
    };
    hiresscroll:
    {
        hires: true;
        invert: false;
        target: false;
    };
    dpi: 1200;

    buttons: (
        {
            cid: 0x53;
            action =
            {
                type: "Gestures";
                gestures: (
                    {
                        direction: "Left";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_COPY"];
                        };
                    },
                    {
                        direction: "Right";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_PASTE"];
                        };
                    },
                    {
                        direction: "None"
                        mode: "NoPress"
                    }
                );
            };
        }
    );
}
);

I juste wan't a copy and a paste action (for the moment). Anyone can tell me what is not good in my file?

joyet-simon avatar May 19 '22 08:05 joyet-simon

If you're trying to use the "DPI switch button" at the top of the mouse, you're using the wrong cid. The MX Vertical is strange in that regard. The correct cid is: 0xfd, not 0x53.

LeonMatthesKDAB avatar Oct 14 '22 07:10 LeonMatthesKDAB

If you're trying to use the "DPI switch button" at the top of the mouse, you're using the wrong cid. The MX Vertical is strange in that regard. The correct cid is: 0xfd, not 0x53.

No, I try to use the "backward button" and the "forward button". The two lateral button of the mouse. (thanks for your reply)

joyet-simon avatar Oct 14 '22 07:10 joyet-simon

Have you tried only 0x53? The wiki lists four different IDs for the back button. Namely: 0x0053, 0x0054, 0x00bd and 0x00ce.

nottoday888 avatar Oct 14 '22 13:10 nottoday888

Have you tried only 0x53? The wiki lists four different IDs for the back button. Namely: 0x0053, 0x0054, 0x00bd and 0x00ce.

I tried this just now and it doesn't work.

joyet-simon avatar Oct 14 '22 13:10 joyet-simon

Have you tried start from a scratch config file with only key settings? I don't think

    smartshift:
    {
        on: true;
        threshold: 30;
    };
    hiresscroll:
    {
        hires: true;
        invert: false;
        target: false;
    };

is supported by vertical, I just found the issue.

And have you tried to run ./logiops with -v?

wnykuang avatar Apr 11 '23 05:04 wnykuang

The configuration that I use for the Logitech MX Vertical, the top button is used for the window snapping gesture.

// Logiops (Linux driver) configuration for Logitech MX Vertical Advanced Ergonomic Mouse
// Includes gestures
// Tested on logid v0.2.2-59-g6bb4700 - GNOME Shell 42.9 on Ubuntu 22.04.4 LTS
// Whats working:
//   1. Window snapping using Gesture button (Top button)
//   2. Forward Back Buttons

// File location: /etc/logid.cfg

devices: ({
  name: "MX Vertical Advanced Ergonomic Mouse";

  smartshift: {
    on: true;
    threshold: 15;
  };

  hiresscroll: {
    hires: true;
    invert: false;
    target: false;
  };

  dpi: 1500; // max=4000

  buttons: (
    // Forward button
    {
      cid: 0x56;
      action = {
        type: "Gestures";
        gestures: (
          {
            direction: "None";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_FORWARD" ];
            }
          }
        );
      };
    },
    // Back button
    {
      cid: 0x53;
      action = {
        type: "Gestures";
        gestures: (
          {
            direction: "None";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_BACK" ];
            }
          }
        );
      };
    },

    // Gesture button (hold and move)
    {
      cid: 0xfd;
      action = {
        type: "Gestures";
        gestures: (
          {
            direction: "None";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_LEFTMETA" ]; // open activities overview
            }
          },

          {
            direction: "Right";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_LEFTMETA", "KEY_RIGHT" ]; // snap window to right
            }
          },

          {
            direction: "Left";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_LEFTMETA", "KEY_LEFT" ];
            }
		  },

		  {
            direction: "Up";
            mode: "onRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_LEFTMETA", "KEY_UP" ]; // maximize window
            }
		  },
		  
		  {
            direction: "Down";
            mode: "OnRelease";
            action = {
              type: "Keypress";
              keys: [ "KEY_LEFTMETA", "KEY_DOWN" ]; // minimize window
            }
          }
        );
      };
    }
  );
});

gkoma avatar Mar 17 '24 12:03 gkoma

Can you share the root location of etc/logid.cfg as I am getting error. [INFO] Config file does not exist, using empty config. [INFO] Detected receiver at /dev/hidraw5

prashantgupta7775 avatar Mar 21 '24 15:03 prashantgupta7775

Can you share the root location of etc/logid.cfg as I am getting error. [INFO] Config file does not exist, using empty config. [INFO] Detected receiver at /dev/hidraw5

/etc/logid.cfg is literal in its meaning; /etc/logid.cfg ain't the same as etc/logid.cfg.

rautamiekka avatar Mar 21 '24 17:03 rautamiekka

Got it , config is detecting, but there is no change using it. so there is any thing else need to do except sudo logid.

prashantgupta7775 avatar Mar 21 '24 17:03 prashantgupta7775