mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
evdev: add hwdb quirk for HP Compaq 6910
Same as the HP Compat 8510, it doesn't send BTN_TOOL_DOUBLETAP/TRIPLETAP. This may be a general issue with those series but they're 6 years old now, so it's questionable to spend extra effort detecting them. https://bugs.freedesktop.org/show_bug.cgi?id=98538 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
a58a9de70d
commit
76008034ca
3 changed files with 11 additions and 3 deletions
|
|
@ -2143,6 +2143,7 @@ evdev_read_model_flags(struct evdev_device *device)
|
|||
MODEL(TRACKBALL),
|
||||
MODEL(APPLE_MAGICMOUSE),
|
||||
MODEL(HP8510_TOUCHPAD),
|
||||
MODEL(HP6910_TOUCHPAD),
|
||||
#undef MODEL
|
||||
{ "ID_INPUT_TRACKBALL", EVDEV_MODEL_TRACKBALL },
|
||||
{ NULL, EVDEV_MODEL_DEFAULT },
|
||||
|
|
@ -2712,9 +2713,11 @@ evdev_pre_configure_model_quirks(struct evdev_device *device)
|
|||
libevdev_disable_event_type(device->evdev, EV_ABS);
|
||||
|
||||
/* Claims to have double/tripletap but doesn't actually send it
|
||||
* https://bugzilla.redhat.com/show_bug.cgi?id=1351285
|
||||
* https://bugzilla.redhat.com/show_bug.cgi?id=1351285 and
|
||||
* https://bugzilla.redhat.com/show_bug.cgi?id=98538
|
||||
*/
|
||||
if (device->model_flags & EVDEV_MODEL_HP8510_TOUCHPAD) {
|
||||
if (device->model_flags &
|
||||
(EVDEV_MODEL_HP8510_TOUCHPAD|EVDEV_MODEL_HP6910_TOUCHPAD)) {
|
||||
libevdev_disable_event_code(device->evdev, EV_KEY, BTN_TOOL_DOUBLETAP);
|
||||
libevdev_disable_event_code(device->evdev, EV_KEY, BTN_TOOL_TRIPLETAP);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ enum evdev_device_model {
|
|||
EVDEV_MODEL_TRACKBALL = (1 << 19),
|
||||
EVDEV_MODEL_APPLE_MAGICMOUSE = (1 << 20),
|
||||
EVDEV_MODEL_HP8510_TOUCHPAD = (1 << 21),
|
||||
EVDEV_MODEL_HP6910_TOUCHPAD = (1 << 22),
|
||||
};
|
||||
|
||||
struct mt_slot {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,11 @@ libinput:name:Cypress APA Trackpad ?cyapa?:dmi:*
|
|||
# HP
|
||||
##########################################
|
||||
|
||||
# HP 8510w
|
||||
# HP Compaq6910p
|
||||
libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnHewlett-Packard:*pnHPCompaq6910p*
|
||||
LIBINPUT_MODEL_HP6910_TOUCHPAD=1
|
||||
|
||||
# HP Compaq 8510w
|
||||
libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnHewlett-Packard:*pnHPCompaq8510w*
|
||||
LIBINPUT_MODEL_HP8510_TOUCHPAD=1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue