Click and drag on HP Pavilion 15-cc502nw doesn't work
My friend who tries to move to linux have weird problems with his touchpad. He can't use clickpad's buttons, right click seem to be left click, can't drag things etc.
Bug seems to be very similar to this #177 (closed) and this: https://bugs.freedesktop.org/show_bug.cgi?id=97147
$ sudo touchpad-edge-detector 113x58 /dev/input/event11 Touchpad Elan Touchpad on /dev/input/event11 Move one finger around the touchpad to detect the actual edges Kernel says: x [0..3520], y [0..1784] Touchpad sends: x [0..3520], y [0..1784] Touchpad size as listed by the kernel: 113x57mm User-specified touchpad size: 113x58mm Calculated ranges: 3520/1784 Suggested udev rule: # <Laptop model description goes here> evdev:name:Elan Touchpad:dmi:bvnInsyde:bvrF.17:bd11/09/2018:svnHP:pnHPPavilionLaptop15-cc5xx:pvrType1ProductConfigId:rvnHP:rn8368:rvr46.24:cvnHP:ct10:cvrChassisVersion:* EVDEV_ABS_00=0:3520:31 EVDEV_ABS_01=0:1784:31 EVDEV_ABS_35=0:3520:31 EVDEV_ABS_36=0:1784:31
Important part of
sudo libinput list-devices:
Device: Elan Touchpad Kernel: /dev/input/event11 Group: 8 Seat: seat0, default Size: 114x58mm 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: none Rotation: n/a
I followed both bug reports and patches, and created this workaround which can be used to create real patch:
[HP Pavilion 15-cc502nw] MatchName=Elan Touchpad MatchDMIModalias=dmi:*svnHP:pnHPPavilionLaptop15-cc5xx* ModelHPStream11Touchpad=1
which I pasted to
It fixed touchpad's behavior.