-
Notifications
You must be signed in to change notification settings - Fork 240
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
Gestures are not recognized after suspend and/or bluetooh reconnection #228
Comments
It is not "an issue with this lib". It is a problem with libinput or with your hardware not resuming the |
Just to note that, I have the problem after a device change (connect) and While a suspend also triggers the problem, it seems not to be the root cause of it. |
PS: I looked through the code and debugged a bit around. TL;dr
"fixes" my problem, because all events are now shown via When using a specific device the events get lost, if the connection is lost. And it also does not support switching of trackpads.
|
Filed an issue here: https://gitlab.freedesktop.org/libinput/libinput/issues/374 |
@schmunk42 so you are actually saying that your I suspend my laptop all the time and in many years of use I have never seen this problem (i.e. my devices never get re-enumerated after a resume) and it has not been commonly reported so it seems to occur only on some laptops. Note I do see my devices frequently get re-enumerated after a reboot though. I will leave this issue open while I do more research about this issue. |
BTW, please read the description of the |
As mentioned before, this problem does not (only) occur when suspending the laptop. This also happens ie., when I take my laptop to the meeting room without my external touchpad connected via bluetooth. I also can not use gestures with the built-in touchpad then. To simulate the issue, I switch the touchpad off an back on again ... the Peter Huetterer mentioned here
I don't see any other option than |
At the moment I am concentrating on your claim here that If you are using an external device and/or you are reconnecting devices then of course the device numbers will get re-enumerated so you will have to use the dbus solution I pointed you to above, or similar. |
Also, please do the test I asked you to do above. |
Please see https://gist.github.com/schmunk42/59a2534adb2c1608bfc8884b6d3644dc for a log output with a specific btw: I can't notice any performance downgrade by using |
That is not what I asked for. Please read what I wrote above. I want you to use the path under |
Also, whether you notice it or not there is a sizeable compromise on system performance. Setting |
How could I handle the switch of touchpads, when I use a specific path? |
It is not clear to me what you are asking for here. Do you disable your internal touchpad when you plug the Apple touchpad in? How do you normally specify to libinput-gestures which touchpad to use? |
I don't have a path for the external touchpad (should be linked to /event21, or?):
from
|
What about under |
No. But I had to restart
At work (with external touchpad) I think it is simply autodetected before the internal. |
No, just my Apple Keyboard.
|
Just noticed: I can plug-in the external touchpad via USB (actually this is usually only used for charging the batteries) and then I see it via
|
I noticed you have edited your comments above to remove your statement that you get this same problem with your internal touchpad. So the problem only applies to the removeable touchpad which is as expected given the /dev/input device is re-enumerated. Please try what I said about the suspend test using the USB connection, given you can see the by-path for it. |
The problem with the internal touchpad seems obvious to me, since, if there's no
It is usually not re-enumerated when simply switching on/off bluetooth or unplugging/plugging via USB. But for sure, there are different IDs for either USB or Bluetooth
It also does not work |
Your description of your problem is still unclear. Are you having a problem with your internal touchpad, or your external touchpad, or both? Please describe the EXACT sequence of events that initiate the problem. You say "The problem with the internal touchpad seems obvious to me". What problem?! There should be no problem with your internal touchpad if you were not plugging an external touchpad. The input device is NOT re-enumerated for your internal touchpad on a resume, contrary to what you appear to believe. If you want libinput-gestures to automatically switch between internal and external touchpad as the external touchpad is inserted/removed then yes, libinput-gestures is not designed to handle that and you will have to restart it (e.g. automatically via a udev or dbus script), or just use "device all" if you are happy to wear the inefficiency. |
Issue can be closed then, thanks for the explanation. |
Related issues #68 #160 #167
Gestures are not recognized after suspend and/or bluetooh reconnection
I am using an Apple Trackpad 2. When my computer was suspended and woke back up again gestures are not working, despite the above output and debugging with
libinput debug-events
, where the gestures are detected correctly, but the corresponding actions (eg.super
+s
) are not triggered.When I run
libinput-gestures-setup restart
, gestures are working again. When disabling the external touchpad device, my internal touchpad is detected, but gestures are also not working. Even a reconnection of the external trackpad does not bring back gestures for this device.While gestures are visible with
libinput debug-events
, actions are not show vialibinput-gestures -v
.A workaround would be to restart
libinput-gestures
after every device change, but I wonder if this is an issue with this lib.The text was updated successfully, but these errors were encountered: