measure touchpad-pressure crashes when already pressing touchpad
If you try to run libinput measure touchpad-pressure
while already holding a finger on the touchpad, it will crash immediately with the following traceback:
Using Cypress APA Trackpad (cyapa): /dev/input/event12
Ready for recording data.
Pressure range used: 10:8
Palm pressure range used: 130
Place a single finger on the touchpad to measure pressure values.
Ctrl+C to exit
Traceback (most recent call last):
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 302, in <module>
main(sys.argv)
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 292, in main
loop(device)
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 249, in loop
handle_event(device, event)
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 236, in handle_event
handle_abs(device, event)
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 229, in handle_abs
s = device.current_sequence()
File "/usr/lib/libinput/libinput-measure-touchpad-pressure", line 205, in current_sequence
return self.sequences[-1]
IndexError: list index out of range
If you're not holding any finger on the touchpad, it starts up and functions correctly.
In case it's relevant, this is on an Acer Chromebook C720 running Arch Linux, libinput version 1.11.3, and this is what libinput list-devices
says about my touchpad:
Device: Cypress APA Trackpad (cyapa)
Kernel: /dev/input/event12
Group: 8
Seat: seat0, default
Size: 87x47mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: button-areas *clickfinger
Disable-w-typing: enabled
Accel profiles: none
Rotation: n/a