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:
Peter Hutterer 2018-05-03 09:55:51 +10:00
parent ee163ef63e
commit 1392c1f3ac

View file

@ -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