Closed fatg3erman closed 2 years ago
No need to hack the code, just read the documentation(!). If you set device all
in your configuration file then that removes the device specifier on the libinput debug-events
command and you get all events, i.e. the same as what you hacked. Read the comments about the device
command in the sample configuration file. The reason I prefer to not do this by default is (as I say in the conf/docs) that it imposes a significantly larger performance cost because that way libinput-gestures
is receiving ALL libinput events rather than the much smaller subset it really only needs.
Secondly, the issue about using a removable touchpad has been discussed in older issues here previously and a solution is already described in the documentation.
Perfect! Thank you. Sorry for not RTFM!
I'm using an external USB touchpad. If I disconnect the touchpad and reconnect it (which happens a lot as it's attached through a KVM) libinput-gestures stops working. I've run it with the -v option - it doesn't exit, and it doesn't report any errors - it simply stops producing any output.
At a guess I'd say that the device it is reading from gets closed when I disconnect the touchpad, but libinput-debug-events doesn't notice this. Reconnecting it re-creates the same device path but libinput-debug-events doesn't reopen it.
I did a test, hacking the python code so it doesn't supply a path, just runs libinput-debug-events with no arguments. This fixes the problem.