From 310aa3ef09f40cf109e537de2b947547ee90dd29 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 9 Dec 2016 00:29:15 +0100 Subject: [PATCH] new screenUpdate defaults, handle trace if a device is not grabable --- config/settings/espeak.settings.conf | 2 +- config/settings/settings.conf | 2 +- config/settings/settings.conf.chrys | 2 +- config/settings/settings.conf.storm | 2 +- src/fenrir/inputDriver/evdev.py | 8 +++++--- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config/settings/espeak.settings.conf b/config/settings/espeak.settings.conf index 187ef59c..c60703e4 100644 --- a/config/settings/espeak.settings.conf +++ b/config/settings/espeak.settings.conf @@ -71,7 +71,7 @@ layout=en [screen] driver=linux encoding=UTF-8 -screenUpdateDelay=0.4 +screenUpdateDelay=0.1 suspendingScreen= autodetectSuspendingScreen=True diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 3bf30df7..b68c9dd9 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -71,7 +71,7 @@ layout=en [screen] driver=linux encoding=cp850 -screenUpdateDelay=0.2 +screenUpdateDelay=0.1 suspendingScreen= autodetectSuspendingScreen=True diff --git a/config/settings/settings.conf.chrys b/config/settings/settings.conf.chrys index 55292a33..490de79b 100644 --- a/config/settings/settings.conf.chrys +++ b/config/settings/settings.conf.chrys @@ -71,7 +71,7 @@ layout=en [screen] driver=linux encoding=cp850 -screenUpdateDelay=0.4 +screenUpdateDelay=0.1 suspendingScreen= autodetectSuspendingScreen=True diff --git a/config/settings/settings.conf.storm b/config/settings/settings.conf.storm index 16df3d0f..fd83c407 100644 --- a/config/settings/settings.conf.storm +++ b/config/settings/settings.conf.storm @@ -28,7 +28,7 @@ layout=en [screen] driver=linux encoding=cp850 -screenUpdateDelay=0.4 +screenUpdateDelay=0.1 suspendingScreen=7 autodetectSuspendingScreen=False diff --git a/src/fenrir/inputDriver/evdev.py b/src/fenrir/inputDriver/evdev.py index 5805d346..4f990ab8 100644 --- a/src/fenrir/inputDriver/evdev.py +++ b/src/fenrir/inputDriver/evdev.py @@ -131,9 +131,11 @@ class driver(): # ) # dev.grab() for fd in self.iDevices: - self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn) - self.iDevices[fd].grab() - + try: + self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn) + self.iDevices[fd].grab() + except Exception as e: + self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR) def releaseDevices(self): for fd in self.iDevices: try: