PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.42k stars 271 forks source link

MX Ergo Multi-Device Trackball change Sensitivity of ball and scrollwheel #214

Open pyrrhull opened 3 years ago

pyrrhull commented 3 years ago

Hi, I try to make an MX Ergo Logitech Trackball work. The assignment of buttons works fine but i couldn't figure out how to change the speed/sensitivity of the trackball as well as for scrolling. I found 0x00ed | Trackball Sensitivity? in the wiki but do not know how to use this info.

I use logid version v0.2.2-46-ga0687c8 on ubuntu 20.04.

devices: (
      {
    togglehiresscroll: true;
    hiresscroll: {hires: true; invert: false;target:false;};
    name: "MX Ergo Multi-Device Trackball ";
    buttons: (
        {
        cid: 0x53;
        action = 
             {
         type: "Keypress";
         keys: ["BTN_SIDE"];
             };
    },
    {
        cid: 0x56;
        action =
             {
         type: "Keypress";
         keys: ["BTN_EXTRA"];
             };
        },
        {
        cid: 0x005b;
        action =
            {
            type: "Keypress";
            keys: ["BTN_SIDE"];
            };
        },
        {
        cid: 0x005d;
        action =
            {
            type: "Keypress";
            keys: ["BTN_EXTRA"];
            };
        });
      });
ucelote-de-mar commented 2 years ago

I wonder the same. By default the MX Ergo comes with a "Sniper button" right above-before the trackball, but I want to remap it to another key... It didn't worked with Cycle DPI. Also the DPI variable doesn't do anything. Have you discovered how?

This is my config atm:

devices: (
{
    name: "MX Ergo Multi-Device Trackball ";
    buttons: (
        {
            cid: 0x0053;
            action =
            {
                type: "Gestures";
                gestures: (
                    {
                        direction: "Up";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_A"];
                        };
                    },
                    {
                        direction: "Down";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_A"];
                        };
                    },
                    {
                        direction: "Left";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_D"];
                        };
                    },
                    {
                        direction: "Right";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_F"];
                        }
                    },
                    {
                        direction: "None";
                        mode: "OnRelease";
                        action = 
                        {
                            type: "Keypress";
                            keys: ["KEY_BACK"];
                        }
                    }
                );
            };
        },
        {
            cid: 0x005d;
            action =
            {
                type :  "Keypress";
                keys: ["KEY_LEFTMETA", "KEY_F"];
            };
        },
        {
            cid: 0x005b;
            action =
            {
                type :  "Keypress";
                keys: ["KEY_LEFTMETA", "KEY_D"];
            };
        },
        {
            cid: 0x0052;
            action = 
            {
                type = "Keypress";
                keys: ["KEY_LEFTMETA", "KEY_V"]
            };
        },
        {
            cid: 0x00ed;
            action =
            {
                type :  "Keypress";
                keys: ["KEY_LEFTMETA", "KEY_TAB"];
            };
        },
        {
            cid: 0x0056;
            action =
            {
                type :  "Keypress";
                keys: ["KEY_FORWARD"];
            };
        }
    );
}
);