diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-08-18 10:48:31 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-09-07 13:25:31 +1000 |
commit | 18adfed4c14ae21d55164350d9f9e0a8b6142430 (patch) | |
tree | 6a9d56d7e03a439ab4aea30d853b209ae802efc8 | |
parent | b519ea4ab52e76af585e800fd766bb188114a0b3 (diff) |
Force the HP Stream 11 touchpad as a clickpad
INPUT_PROP_BUTTONPAD is not set on this device and RMI4 which should fix this
is a bit too far into the future at this point. Hack around it.
https://bugs.freedesktop.org/show_bug.cgi?id=97147
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/evdev.c | 7 | ||||
-rw-r--r-- | src/evdev.h | 1 | ||||
-rw-r--r-- | udev/90-libinput-model-quirks.hwdb | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 03384c8..f7f7230 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2137,6 +2137,7 @@ evdev_read_model_flags(struct evdev_device *device) MODEL(APPLE_INTERNAL_KEYBOARD), MODEL(CYBORG_RAT), MODEL(CYAPA), + MODEL(HP_STREAM11_TOUCHPAD), MODEL(LENOVO_T450_TOUCHPAD), MODEL(DELL_TOUCHPAD), MODEL(TRACKBALL), @@ -2717,6 +2718,12 @@ evdev_pre_configure_model_quirks(struct evdev_device *device) libevdev_disable_event_code(device->evdev, EV_KEY, BTN_TOOL_DOUBLETAP); libevdev_disable_event_code(device->evdev, EV_KEY, BTN_TOOL_TRIPLETAP); } + + /* Touchpad is a clickpad but INPUT_PROP_BUTTONPAD is not set, see + * fdo bug 97147. Remove when RMI4 is commonplace */ + if (device->model_flags & EVDEV_MODEL_HP_STREAM11_TOUCHPAD) + libevdev_enable_property(device->evdev, + INPUT_PROP_BUTTONPAD); } struct evdev_device * diff --git a/src/evdev.h b/src/evdev.h index b240615..4e28e05 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -114,6 +114,7 @@ enum evdev_device_model { EVDEV_MODEL_APPLE_INTERNAL_KEYBOARD = (1 << 13), EVDEV_MODEL_CYBORG_RAT = (1 << 14), EVDEV_MODEL_CYAPA = (1 << 15), + EVDEV_MODEL_HP_STREAM11_TOUCHPAD = (1 << 16), EVDEV_MODEL_LENOVO_T450_TOUCHPAD= (1 << 17), EVDEV_MODEL_DELL_TOUCHPAD = (1 << 18), EVDEV_MODEL_TRACKBALL = (1 << 19), diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index ee11fb7..ec71c26 100644 --- a/udev/90-libinput-model-quirks.hwdb +++ b/udev/90-libinput-model-quirks.hwdb @@ -95,6 +95,10 @@ libinput:name:Cypress APA Trackpad ?cyapa?:dmi:* libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnHewlett-Packard:*pnHPCompaq8510w* LIBINPUT_MODEL_HP8510_TOUCHPAD=1 +# HP Stream 11 +evdev:name:SYN1EDE:00 06CB:7442:dmi:*svnHewlett-Packard:pnHPStreamNotebookPC11* + LIBINPUT_MODEL_HP_STREAM11_TOUCHPAD=1 + ########################################## # LENOVO ########################################## |