PixlOne / logiops

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

Random errors #321

Open ivanpepelko opened 2 years ago

ivanpepelko commented 2 years ago

I've been having issues for a while now with my mouse. The issue appears randomly as cursor lagging. For every such event, error is logged simply as resource error (in journald).

Is there any way to debug this? At least I would like to know if the issue is with my machine or this library. Some days the issue is non-existent, while the other days it annoys shit out of me.

This is journal:

$ journalctl -f -u logid
May 26 09:34:25 [hostname] systemd[1]: Started Logitech Configuration Daemon.
May 26 09:34:27 [hostname] logid[4143]: [WARN] Error adding device /dev/hidraw1: std::exception
May 26 09:34:32 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:34:35 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:34:50 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:36:11 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:38:03 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:38:06 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:38:11 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:38:11 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:42:46 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:42:48 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 09:42:49 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error
May 26 10:35:14 [hostname] logid[4143]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw0:1: Resource error

Version:

$ pikaur -Q logiops-git
logiops-git r230.dbe2b28-1

Config:

$ cat /etc/logid.cfg  
devices: ({
        name: "Wireless Mouse MX Master 3";
        dpi: 1200;
});

Anything else needed?

akamensky commented 2 years ago

Same here on Fedora 36:

[root@hostname:~] journalctl -feu logid
...
Jul 20 15:34:00 hostname.domain.tld logid[14358]: [WARN] Error adding device /dev/hidraw6: std::exception
...
Jul 20 15:34:43 hostname.domain.tld logid[14452]: [WARN] Error adding device /dev/hidraw6: std::exception
...
Jul 20 15:35:32 hostname.domain.tld logid[14511]: [WARN] Error adding device /dev/hidraw6: std::exception
...
Jul 20 15:37:52 hostname.domain.tld logid[14766]: [WARN] Error adding device /dev/hidraw6: std::exception
Jul 20 15:39:50 hostname.domain.tld logid[14766]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw4:1: Resource error
...
Jul 20 15:40:19 hostname.domain.tld logid[15090]: [WARN] Error adding device /dev/hidraw6: std::exception
Jul 20 16:15:07 hostname.domain.tld logid[15090]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw4:1: Resource error
Jul 20 17:05:07 hostname.domain.tld logid[15090]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw4:1: Resource error
Jul 20 17:07:29 hostname.domain.tld logid[15090]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw4:1: Resource error
Jul 20 17:10:54 hostname.domain.tld logid[15090]: [ERROR] Caught HID++ 1.0 error while trying to initialize /dev/hidraw4:1: Resource error

WARN ones don't seem to cause any issue, but ERROR corresponds to mouse freezing and acting very choppy.

Configuration:

[root@hostname:~] cat /etc/logid.cfg
devices: (
{
    name: "Wireless Mouse MX Master 3";
    dpi: 1200;
    buttons: (
        {
            cid: 0x0056;
            action =
            {
                type: "Keypress";
                keys: ["KEY_VOLUMEUP"];
            };
        },
        {
            cid: 0x0053;
            action =
            {
                type: "Keypress";
                keys: ["KEY_VOLUMEDOWN"];
            };
        },
        {
            cid: 0x00c3;
            action =
            {
                type: "None";
            };
        },
    );
}
);

Version running:

[root@hostname:~] rpm -qa | grep logiops
logiops-0.2.3^1.gitdbe2b28-10.fc36.x86_64
PixlOne commented 1 year ago

The issue is that your connection to the mouse is poor. This manifests both as your cursor being choppy and logid failing to communicate with your device. I've recently made some changes that improve connection stability, the random errors should hopefully be fixed but the mouse choppiness is an issue with your machine.