Comment 0 for bug 1906341

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

[Impact]

 * The touchpad's right button become no function after update to 5.4 kernel

 * The INPUT_PROP_BUTTONPAD property is set by 5.4 kernel, so that libinput regard it as clickpad.

 * Add a model quirk to unset the bit can make touchpad's right button works normally.

[Test Case]

 * 1. Boot into Ubuntu
   2. Identify touchpad input device number,
      can be obtained in $HOME/.local/share/xorg/Xorg.0.log
   3. $ udevadm info /sys/class/input/inputX
      check PROP environment variable, it is 5 if INPUT_PROP_BUTTONPAD property is set
   4. And the touchpad right button become no function
   5. After update the libevdev with disable_property API and libinput10 with model quirk
   6. reboot
   7. The input device PROP is still 5, but touchpad right button is workable

[Where problems could occur]

 * For libevdev2 package, backport the upstream commit:
   https://gitlab.freedesktop.org/libevdev/libevdev/-/commit/4226c7801b4ea1b0c7d1eaac47ca24ece8f24809
   The API is not originally exist in the system, so it will only be utilized by our model quirk.

 * For libinput, add model quirk for the platform to disable INPUT_PROP_BUTTONPAD bit.
   Only disable the INPUT_PROP_BUTTONPAD for specified model, and it doesn't issue any
   IO command to kernel, so the behavior should be the same as previous kernel when
   INPUT_PROP_BUTTONPAD is not set

[Other Info]

 * A public bug is reported
   https://www.dell.com/community/Linux-Developer-Systems/Touchpad-right-click-button-not-working-with-Ubuntu-20-04-on/td-p/7636831