summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-22 01:47:23 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-26 14:55:15 +0200
commit7921e97b088487001c68cd20874bc3f995f11790 (patch)
tree1b65b3d335fa84cdbe396ce3b5cf5de3a397eaaa
parent7804f8b08e3c2708af1045beb9cb4f8942883bd7 (diff)
downloadupower-7921e97b088487001c68cd20874bc3f995f11790.tar.gz
linux: Poll for unknown state like the daemon did
5 times, with 1 second timeouts, instead of 30 times, with 2 seconds timeouts.
-rw-r--r--src/linux/up-device-supply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index c05c670..17559b5 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -38,8 +38,8 @@
#include "up-device-supply.h"
#define UP_DEVICE_SUPPLY_REFRESH_TIMEOUT 30 /* seconds */
-#define UP_DEVICE_SUPPLY_UNKNOWN_TIMEOUT 2 /* seconds */
-#define UP_DEVICE_SUPPLY_UNKNOWN_RETRIES 30
+#define UP_DEVICE_SUPPLY_UNKNOWN_TIMEOUT 1 /* seconds */
+#define UP_DEVICE_SUPPLY_UNKNOWN_RETRIES 5
#define UP_DEVICE_SUPPLY_CHARGED_THRESHOLD 90.0f /* % */
#define UP_DEVICE_SUPPLY_COLDPLUG_UNITS_CHARGE TRUE