mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 04:40:25 +01:00
evdev: mask out MSC_TIMESTAMP, we don't need it
Not really an issue at this point, but some HID devices like sending MSC_TIMESTAMP. Since we don't use them in libinput, all we do is drag ourselves out of sleep, look at the event, frown because it's not our morning coffee, and go back to sleep. Instead, disable the code altogether, libevdev will mask it transparently and then the kernel will let us sleep. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ee163ef63e
commit
1392c1f3ac
1 changed files with 3 additions and 0 deletions
|
|
@ -1942,6 +1942,9 @@ evdev_pre_configure_model_quirks(struct evdev_device *device)
|
|||
libevdev_disable_event_code(device->evdev,
|
||||
EV_ABS,
|
||||
ABS_MT_TOOL_TYPE);
|
||||
|
||||
/* We don't care about them and it can cause unnecessary wakeups */
|
||||
libevdev_disable_event_code(device->evdev, EV_MSC, MSC_TIMESTAMP);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue