From e85fbf232d00dea4dc0528e8e91ff0da53a903ad Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Wed, 16 Aug 2017 13:56:06 +0200 Subject: [PATCH] Ratbagd: increase timeout from 500 to 2000 milliseconds As mentioned in #119, this is just a stop-gap until libratbag switches to an async commit (https://github.com/libratbag/libratbag/issues/269) Fixes #119. --- piper/ratbagd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piper/ratbagd.py b/piper/ratbagd.py index fa66783..5f50367 100644 --- a/piper/ratbagd.py +++ b/piper/ratbagd.py @@ -174,7 +174,7 @@ class _RatbagdDBus(GObject.GObject): pval = GLib.Variant("(ssv)".format(type), (self._interface, property, val)) self._proxy.call_sync("org.freedesktop.DBus.Properties.Set", pval, Gio.DBusCallFlags.NO_AUTO_START, - 500, None) + 2000, None) # This is our local copy, so we don't have to wait for the async # update @@ -192,7 +192,7 @@ class _RatbagdDBus(GObject.GObject): try: res = self._proxy.call_sync(method, val, Gio.DBusCallFlags.NO_AUTO_START, - 500, None) + 2000, None) global EXCEPTION_TABLE if res in EXCEPTION_TABLE: raise EXCEPTION_TABLE[res]