From 6c7278350fba61f7873177791295317e0d6453ab Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 17 May 2018 00:16:47 +0200 Subject: [PATCH] filter out uinput devices --- src/fenrirscreenreader/inputDriver/evdevDriver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index 7e507f8a..e06ed08f 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -172,6 +172,8 @@ class driver(inputDriver): currDevice = evdev.InputDevice(deviceFile) if currDevice.name.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']: continue + if currDevice.phys.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']: + continue if 'BRLTTY' in currDevice.name.upper(): continue cap = currDevice.capabilities() @@ -286,6 +288,7 @@ class driver(inputDriver): self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: init Uinput not possible: ' + str(e),debug.debugLevel.ERROR) return def addDevice(self, newDevice): + print(newDevice.fd,newDevice) self.iDevices[newDevice.fd] = newDevice self.gDevices[newDevice.fd] = False self.createUInputDev(newDevice.fd)