PixlOne / logiops

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

It works normally only when a warning log occurs. #341

Open shingee183 opened 2 years ago

shingee183 commented 2 years ago
/etc$ sudo systemctl restart logid
/etc$ sudo logid -v
[DEBUG] Unsupported device /dev/hidraw2 ignored
[DEBUG] Unsupported device /dev/hidraw3 ignored
[INFO] Detected receiver at /dev/hidraw0
[INFO] Detected receiver at /dev/hidraw4
[WARN] Error adding device /dev/hidraw4: No DJ reports
[INFO] Device found: Wireless Mouse MX Master 2S on /dev/hidraw0:1
[DEBUG] /dev/hidraw0:1 remappable buttons:
[DEBUG] CID  | reprog? | fn key? | mouse key? | gesture support?
[DEBUG] 0x50 |         |         | YES        | 
[DEBUG] 0x51 |         |         | YES        | 
[DEBUG] 0x52 | YES     |         | YES        | YES
[DEBUG] 0x53 | YES     |         | YES        | YES
[DEBUG] 0x56 | YES     |         | YES        | YES
[DEBUG] 0xc3 | YES     |         | YES        | YES
[DEBUG] 0xc4 | YES     |         | YES        | YES
[DEBUG] 0xd7 | YES     |         |            | YES
[WARN] Error adding device /dev/hidraw1: std::exception

If the log below occurs [WARN] Error adding device /dev/hidraw1: std::exception it works nommaly

but other times The event below occurs twice at once.

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

And when a gesture up or down event occurs, a huge lag occurs.


ubuntu 22.04 lts mx masters s2 mx mechanical mini (not cofigured)

# this config file is for Logiops and needs to be placed in /etc/logid.cfg
devices: (
{
    name: "Wireless Mouse MX Master 2S";
    smartshift:
    {
        on: true;
        # threshold: 15; # 7 is ideal for work
    };
    hiresscroll:
    {
        hires: true;
        invert: false;
        target: false;
    };
    dpi: 2100; # <- you may change this number

    buttons: (
        {
            cid: 0xc3;
            action =
            {
                type: "Gestures";
                gestures: (
                    {
                        direction: "Up";
                        mode: "OnInterval";
                        threshold: 15;
                        interval: 15;
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_MINUS"];
                        };
                    },
                    {
                        direction: "Down";
                        mode: "OnInterval";
                        threshold: 15;
                        interval: 15;
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_LEFTSHIFT", "KEY_EQUAL"];
                        };
                    },
                    {
                        direction: "Left";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_LEFTALT", "KEY_RIGHT"];
                        };
                    },
                    {
                        direction: "Right";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_LEFTALT", "KEY_LEFT"];
                        }
                    },

                    {
                        direction: "None"
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA"];
                        }
                    }
                );
            };
        },
        {
            cid: 0xc4;
            action =
            {
                type: "Keypress";
                keys: ["KEY_PRINT"];
            };
        }
    );
}
);
shingee183 commented 2 years ago

Trigger condition description is not accurate. I don't know the exact trigger condition.