当没有连接外接鼠标时,xinput 和 libinput 的输出分别是:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Asus Keyboard id=14 [slave pointer (2)]
⎜ ↳ ELAN1203:00 04F3:307A Mouse id=15 [slave pointer (2)]
⎜ ↳ ELAN1203:00 04F3:307A Touchpad id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Video Bus id=9 [slave keyboard (3)]
↳ Power Button id=10 [slave keyboard (3)]
↳ Sleep Button id=11 [slave keyboard (3)]
↳ Asus Keyboard id=12 [slave keyboard (3)]
↳ Asus Keyboard id=13 [slave keyboard (3)]
↳ Asus WMI hotkeys id=17 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=18 [slave keyboard (3)]
↳ Asus Keyboard id=19 [slave keyboard (3)]
$ sudo libinput list-devices
Device: ELAN1203:00 04F3:307A Mouse
Kernel: /dev/input/event6
Group: 8
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a
Device: ELAN1203:00 04F3:307A Touchpad
Kernel: /dev/input/event13
Group: 8
Seat: seat0, default
Size: 101x52mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: none
Disable-w-typing: enabled
Accel profiles: flat *adaptive
Rotation: n/a
...
因此,有时触摸板会突然失去执行手势和两指滚动的功能,因为鼠标具有更高的输入优先级。如何避免这种情况?
答案1
我发现这对我自己来说大多数时候都可以重新启动死老鼠:
补充20220806 顺便说一下我当前的系统是 Ubuntu 22.04.1 LTS (Jammy Jellyfish)
sudo fwupdtool 获取设备
在某些情况下它不起作用,因此需要再运行一两次相同的命令。
时不时地它就是不起作用,所以就命令关机重启,以恢复。
。