HP ZBook x2 touchpad is detected as a mouse when detached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xserver-xorg-input-libinput (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
* Kubuntu version 20.04
When the keyboard is attached, running `xinput` produces:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
...
⎜ ↳ NXP Semiconductors LPC I2C HID Consumer Control id=11 [slave pointer (2)]
⎜ ↳ NXP Semiconductors LPC I2C HID Mouse id=31 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
...
↳ NXP Semiconductors LPC I2C HID System Control id=10 [slave keyboard (3)]
↳ NXP Semiconductors LPC I2C HID Consumer Control id=12 [slave keyboard (3)]
↳ NXP Semiconductors LPC I2C HID id=13 [slave keyboard (3)]
## Props
Device 'NXP Semiconductors LPC I2C HID Consumer Control':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Send Events Modes Available (276): 1, 0
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/
Device Product ID (280): 8137, 136
libinput Drag Lock Buttons (293): <no items>
libinput Horizontal Scroll Enabled (294): 1
Device 'NXP Semiconductors LPC I2C HID Mouse':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Scroll Methods Available (295): 0, 0, 1
libinput Scroll Method Enabled (296): 0, 0, 0
libinput Scroll Method Enabled Default (297): 0, 0, 0
libinput Button Scrolling Button (298): 2
libinput Button Scrolling Button Default (299): 2
libinput Middle Emulation Enabled (300): 0
libinput Middle Emulation Enabled Default (301): 0
libinput Accel Speed (302): 0.200000
libinput Accel Speed Default (303): 0.000000
libinput Accel Profiles Available (304): 1, 1
libinput Accel Profile Enabled (305): 1, 0
libinput Accel Profile Enabled Default (306): 1, 0
libinput Left Handed Enabled (307): 0
libinput Left Handed Enabled Default (308): 0
libinput Send Events Modes Available (276): 1, 0
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/
Device Product ID (280): 8137, 136
libinput Drag Lock Buttons (293): <no items>
libinput Horizontal Scroll Enabled (294): 1
When the keyboard is detached, it changes:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
...
⎜ ↳ HP ZBook x2 Bluetooth Keyboard Consumer Control id=10 [slave pointer (2)]
⎜ ↳ HP ZBook x2 Bluetooth Keyboard Mouse id=31 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
...
↳ HP ZBook x2 Bluetooth Keyboard Consumer Control id=11 [slave keyboard (3)]
↳ HP ZBook x2 Bluetooth Keyboard id=12 [slave keyboard (3)]
↳ HP ZBook x2 Bluetooth Keyboard System Control id=13 [slave keyboard (3)]
## Props
Device 'HP ZBook x2 Bluetooth Keyboard Consumer Control':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Send Events Modes Available (276): 1, 0
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/
Device Product ID (280): 1266, 5491
libinput Drag Lock Buttons (293): <no items>
libinput Horizontal Scroll Enabled (294): 1
Device 'HP ZBook x2 Bluetooth Keyboard Mouse':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Scroll Methods Available (295): 0, 0, 1
libinput Scroll Method Enabled (296): 0, 0, 0
libinput Scroll Method Enabled Default (297): 0, 0, 0
libinput Button Scrolling Button (298): 2
libinput Button Scrolling Button Default (299): 2
libinput Middle Emulation Enabled (300): 0
libinput Middle Emulation Enabled Default (301): 0
libinput Accel Speed (302): 0.200000
libinput Accel Speed Default (303): 0.000000
libinput Accel Profiles Available (304): 1, 1
libinput Accel Profile Enabled (305): 1, 0
libinput Accel Profile Enabled Default (306): 1, 0
libinput Left Handed Enabled (307): 0
libinput Left Handed Enabled Default (308): 0
libinput Send Events Modes Available (276): 1, 0
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/event9"
Device Product ID (280): 1266, 5491
libinput Drag Lock Buttons (293): <no items>
libinput Horizontal Scroll Enabled (294): 1
As you can see, they are almost equal, but the problem is that the features are not the same:
- When the touchpad (the keyboard with touchpad) is attached, I can use 2 fingers to emulate the right click, scrolling, etc. I don't understand correctly why I can do that when the "Scroll Methods Available" does not include it.
- When it's detached I can't use the 2 fingers. Trying them on `xev` or `evtest` doesn't produce any output.
Same device. Also affected. From HP's driver page this touchpad seems to be an alps branded. Tried several related methods but none of them worked.