Bug 101789 - Disable touchpad while typing doesn't function with libinput 1.8.0
Summary: Disable touchpad while typing doesn't function with libinput 1.8.0
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/libinput (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-14 13:25 UTC by niranjan.public
Modified: 2017-07-15 02:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
libinput-debug-events --verbose (3.59 KB, text/plain)
2017-07-15 01:59 UTC, niranjan.public
no flags Details
udevadm info touchpad (698 bytes, text/plain)
2017-07-15 02:00 UTC, niranjan.public
no flags Details
udevadm info keyboard (1.33 KB, text/plain)
2017-07-15 02:00 UTC, niranjan.public
no flags Details

Description niranjan.public 2017-07-14 13:25:09 UTC
The "disable while typing" setting for my touchpad doesn't function on xorg using xf86-input-libinput with libinput 1.8.0.  I have filed a distribution bug here:  https://bugs.funtoo.org/browse/FL-3927

I have verified that the setting is enabled:

xinput --list-props 12

Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (142):	1
...
libinput Disable While Typing Enabled (303):	1
libinput Disable While Typing Enabled Default (304):	1

I have tried different versions of xf86-input-libinput and am currently using 0.25.1.  Touchpad disabling while typing works again if I downgrade to libinput 1.7.3.  Please let me know if there is any other information or debugging information I could provide that would be of assistance.
Comment 1 Peter Hutterer 2017-07-14 22:18:09 UTC
run libinput-debug-events --verbose please and attach the output here (just the startup is enough). And the output of udevadm info /sys/class/input/eventX for both your touchpad and keyboard devices.
Comment 2 niranjan.public 2017-07-15 01:59:22 UTC
Created attachment 132693 [details]
libinput-debug-events --verbose

I grabbed these files using libinput 1.7.3 please let me know if I should upgrade again to 1.8.0 grab the files again.
Comment 3 niranjan.public 2017-07-15 02:00:02 UTC
Created attachment 132694 [details]
udevadm info touchpad
Comment 4 niranjan.public 2017-07-15 02:00:26 UTC
Created attachment 132695 [details]
udevadm info keyboard
Comment 5 Peter Hutterer 2017-07-15 02:04:53 UTC
event5  - palm: dwt activated with SynPS/2 Synaptics TouchPad<->AT Translated Set 2 keyboard

this indicates that the device is paired correctly at least, so the setup should work. Not sure why dwt doesn't activate though, please try the following:

keep hitting the 'a' key (or any other alphabetical one) quickly and put your finger on the touchpad, stop hitting the key once the finger is down - does this finger move the touchpad now? If not, then dwt is active and it may just be some timeout issue.

Can you also submit a libinput-debug-events --verbose recording of you doing this? It should print the dwt state and explain why it's not doing anything.
Comment 6 Peter Hutterer 2017-07-15 02:09:33 UTC
doh, I didn't see your comment that you had these from 1.7.3 - yes, I'd need the ones from 1.8.0, otherwise it's hard to debug. But the keyboard udevadm output suggests that what is missing is the new attribute that the keyboard is internal. That's applied by the hwdb and shipped with libinput's files. I suggest running sudo udevadm hwdb --update and restarting to make sure the LIBINPUT_ATTR_KEYBOARD_INTEGRATION is applied.
Comment 7 niranjan.public 2017-07-15 02:42:07 UTC
I updated to libinput 1.8.0 again, ran sudo udevadm hwdb --update and restarted and dwt seems to be working again now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.