PixlOne / logiops

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

logid stops working after mouse is idle for a while #129

Open hendriktews opened 4 years ago

hendriktews commented 4 years ago

Hi, I use logid for an MX Master 3 connected over bluetooth mostly to make the thumb button a real mouse button. This works nicely (thanks!!), however, logid stops working when the mouse is idle for a while (somewhere between 5 minutes and half an hour). The output of logid gives no indication and the logid process keeps running. I see

cert ~ 8> sudo logid -v -c ~/.logid.cfg 
[DEBUG] Unsupported device /dev/hidraw0 ignored
[DEBUG] Unsupported device /dev/hidraw1 ignored
[INFO] Device found: Wireless Mouse MX Master 3 on /dev/hidraw2:255
[DEBUG] /dev/hidraw2:255 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
[DEBUG] Thumb wheel detected (0x2150), capabilities:
[DEBUG] timestamp | touch | proximity | single tap
[DEBUG] YES       | YES   | YES       | YES       
[DEBUG] Thumb wheel resolution: native (18), diverted (120)

where the thumb wheel line directly appears after starting and then there is no more output.

Restarting logid fixes the problem (until the next longer idle time) and meanwhile I have a window manager shortcut for that. Nevertheless it is a nuisance when the favorite mouse button stoped working after returning from the whiteboard.

I would appreciate any hints about how to fix or debug this problem. Thanks!

mankyd commented 4 years ago

I see somethinmg similar where my mouse wheel acceleration turns off after my desktop idles. It sounds similar to this issue someone reported on reddit a year ago (not using logiops): https://www.reddit.com/r/kde/comments/bk6u5z/scroll_button_speed_slow_after_wake_up_from_sleep/

I would love a fix for this because it is absolutely infuriating. I am not sure where the fault lies, however.

hendriktews commented 4 years ago

I don't see the problem anymore and I have not changed anything in logiops or its configuration. But I regularly updated my system. This seems to indicate that there was either a bug in the system or a communication problem with logiops that is not triggered any more.

PixlOne commented 4 years ago

Does this only happen when you connect your mouse over Bluetooth?

mankyd commented 4 years ago

That is the case for me, yes, though I haven't tested thoroughly with the unify receiver.

hendriktews commented 4 years ago

pixl notifications@github.com writes:

Does this only happen when you connect your mouse over Bluetooth?

Yes, I connect my mouse over bluetooth. I have not tested with a different connection. So it happens with bluetooth, but I cannot tell whether it only happens with bluetooth.

Hendrik

PixlOne commented 3 years ago

Is this on the latest commit?

hendriktews commented 3 years ago

As I wrote on Sept 30, the issue went away, apparently without changing logiops. @mankyd: Can you still reproduce? Otherwise I suggest to close this.

ExposedCat commented 3 years ago

Add /lib/systemd/system-sleep/logid.sh with content:

#!/bin/sh
systemctl restart logid

It will restart logid.service on WakeUp, so driver will work after idle and resuming from suspend

PiotrGorczyca commented 3 months ago

MxMaster 3 for Mac. Manjaro linus. Recently got the same issue where i go make a coffee and come back to a mouse with default settings. Additionally even though i have logiops installed and the logid config is present i have to manually run systemd start logid on every boot, and when the mouse looses its custom settings the systemd restart logid does not do anything. I do not see any processes related to logiops or logid running either.

Edit: its the bluez update issue. Runnig sudo systemctl restart bluetooth solves the problem. After the mouse idles its not recognized by the bluetooth drivers properly hence the logid does not know which device to affect.