aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-02-12 21:24:02 +0100
committerAnton Khirnov <anton@khirnov.net>2022-02-12 21:24:02 +0100
commit723015f39c9c5f2e65e27aff41ba0360d175fbea (patch)
tree3950dfe5f51a1021806501650ca0aaf859fc9604
parentd102f07197b1ba2e9ec262bf1dd56a51d4866b1b (diff)
uinput_mng: disregard EV_MSC/MSC_SCAN events
Those are sent by the keyboard driver.
-rwxr-xr-xuinput_mng2
1 files changed, 2 insertions, 0 deletions
diff --git a/uinput_mng b/uinput_mng
index b6813aa..e349a9a 100755
--- a/uinput_mng
+++ b/uinput_mng
@@ -137,6 +137,8 @@ class UInputDevice:
raise
finally:
self._dev.end_erase(erase)
+ elif ev.type == ecodes.EV_MSC and ev.type == ecodes.MSC_SCAN:
+ self._logger.debug('Ignoring MSC_SCAN: %d', ev.value)
else:
self._logger.warning('Unhandled event on the virtual device: %s', ev)