mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 01:48:03 +02:00
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>
(cherry picked from commit 18adfed4c1)
This commit is contained in:
parent
1390314122
commit
66e5305034
3 changed files with 12 additions and 0 deletions
|
|
@ -1803,6 +1803,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),
|
||||
|
|
@ -2439,6 +2440,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 *
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -94,6 +94,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
|
||||
##########################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue