-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add a fallback solution for unsupported desktop environments #2
Comments
For others, here is my modification of set_touchpad_state which actually works:
|
Problem is: when pressing the disable-touchpad-button, most DEs also software toggle the touchpad. So directly toggling the hardware could result in the software toggle and the hardware toggle getting out of sync (for example when toggling on the loginscreen). Out of sync means either software or hardware disable is active so the touchpad does not function regardless of how often the button is pressed. More general solutions were discussed here: https://gitlab.freedesktop.org/libinput/libinput/-/issues/558, but a good idea that always works has yet to be found. |
I understand the SW/HW blocking problem. It becomes more difficult to provide a working daemon. However I still think that providing a simple toggling utility which would allow users to set-up keyboard shortcuts on their own can be better than do nothing in case of unsupported environment. E.g. with my Xubuntu, I didn't find any other solution than to modify sources and compile the utility by myself. The important feature which is already implemented in |
I've extracted the HW switching code from Tuxedo Touchpad Switch and made a simple program that only does this, in case anyone is interested: https://git.sr.ht/~kyllingstad/uwtpctl (I wasn't aware of PR #13 when I made it.) |
Since the main logic of the touchpad HW switch is in the
ioctl
, andtuxedo-control.cpp
already implementsset_touchpad_state
, it is unfortunate that is simply does nothing on desktop environments which are not supported.I would propose to provide a fallback which should work for all environments.
Either just provide a simple daemon listening on the key for touchpad toggling or just provide an utility which will do simple HW toggling and let users to set-up their keyboard shortcut.
From my research there are only two necessary features for minimal functionality:
See related discussion here: tuxedocomputers/tuxedo-keyboard#60.
The text was updated successfully, but these errors were encountered: