@@ -4,8 +4,9 @@
# particular interface
[General]
-# Set idle timeout (in minutes) before the connection will
-# be disconnect (defaults to 0 for no timeout)
+# Set idle timeout (in seconds) before the connection will be disconnect and
+# the input device is removed.
+# Defaults: 0 (disabled)
#IdleTimeout=0
# Enable HID protocol handling in userspace input profile
@@ -89,7 +89,7 @@ static int input_init(void)
"IdleTimeout", &err);
if (!err) {
DBG("input.conf: IdleTimeout=%d", idle_timeout);
- input_set_idle_timeout(idle_timeout * 60);
+ input_set_idle_timeout(idle_timeout);
} else
g_clear_error(&err);
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This changes IdleTimeout unit to be in seconds instead of in minutes which offer better granularity. --- profiles/input/input.conf | 5 +++-- profiles/input/manager.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)