Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MX Master 3S times out #446

Open
telemann opened this issue Mar 18, 2024 · 10 comments
Open

MX Master 3S times out #446

telemann opened this issue Mar 18, 2024 · 10 comments

Comments

@telemann
Copy link

telemann commented Mar 18, 2024

I can't get logid to automatically recognise my MX Master 3S. Logid times out looking for it:
logid -v2 gives me:

[INFO] Detected receiver at /dev/hidraw3
...
DEBUG] /dev/hidraw3:2 timed out, waiting for input from device to initialize.

Logid then hangs indefinitely until I press the button on the bottom of the mouse three times to reconnect (or switch it off and on again). Logid then continues:

[INFO] Device found: MX Master 3S on /dev/hidraw3:2
[DEBUG] /dev/hidraw3:2 remappable buttons:
...

How can I get logid to connect automatically?

Gentoo Linux, logid version v0.3.3, using the bolt receiver. None of the solutions proposed in issue #437 work.

@telemann
Copy link
Author

The timeout in src/logid/Configuration.h is too short. Increasing it from 500 to 1000 (ms?) fixes the problem

--- a/src/logid/Configuration.h 2023-07-12 23:40:47.000000000 +0200
+++ b/src/logid/Configuration.h 2024-03-19 21:19:10.767519123 +0100
@@ -28,7 +28,7 @@

 namespace logid {
     namespace defaults {
-        static constexpr double io_timeout = 500;
+        static constexpr double io_timeout = 1000;
         static constexpr int workers = 4;
         static constexpr int gesture_threshold = 50;
     }

@przemekd
Copy link

I observe the same the same on my system:

[INFO] Detected receiver at /dev/hidraw5                                                                                                                                                                                                                                                                                                                                                                                                     
[DEBUG] Unsupported device /dev/hidraw6 ignored                                                                                                                                                                                                                                                                                                                                                                                              
[DEBUG] Unsupported device /dev/hidraw0 ignored                                                                                                                                                                                                                                                                                                                                                                                              
[DEBUG] Unsupported device /dev/hidraw7 ignored                                                                                                                                                                                                                                                                                                                                                                                              
[DEBUG] /dev/hidraw5:2 timed out, waiting for input from device to initialize. 

I need to restart logid service and the switch off and switch on my mouse to make it working.

@Ersetzbar
Copy link

can confirm that changing the timeout from 500 to 1000 is enough to solve the problem for me

@maciejsszmigiero
Copy link

The timeout in src/logid/Configuration.h is too short.
Increasing it from 500 to 1000 (ms?) fixes the problem

This change fixes the timeout problem with MX Master 3S For Business for me too.
Are you going to submit this as a PR @telemann ?

@telemann
Copy link
Author

telemann commented May 7, 2024

@maciejsszmigiero I figured a developer would find the fix here and merge it. I'm not sure how to do a pull request, if you want to do it please go ahead.

@maciejsszmigiero
Copy link

@PixlOne could you commit such timeout change?

The new timeout could be 5 seconds like Linux kernel hid-logitech-hidpp driver uses or 4 seconds
like Solaar has.

Thanks.

@rizaumami
Copy link

Isn't it already in the config?
I've set the value to 5000 and logid successfully detect MX Master 3S.

devices: (
{
    name: "MX Master 3S";
    timeout: 5000;
...

@maciejsszmigiero
Copy link

Even if there's already a way to override the io timeout in config it's better if the default one works out-of-box with any supported mouse

@telemann
Copy link
Author

telemann commented May 14, 2024

Setting the value in the config doesn't work for me. It looks like the config file is not read until after the mouse has been detected.
Also the documentation is incorrect: the default io_timeout is 500ms, not 2000.

@spoutn1k
Copy link

I had a similar issue and the fix was the patch in #402. I created a PR for this #460, if that fixes your issue please add this issue to the list of related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants