Created
February 26, 2012 14:59
-
-
Save ryancrum/1917187 to your computer and use it in GitHub Desktop.
pommed power/dbus/keyboard backlight check interval increase (this has consequences, but the decrease in CPU utilization is worth it)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git pommed/dbus.h pommed/dbus.h | |
index d6c42a9..597dd1f 100644 | |
--- pommed/dbus.h | |
+++ pommed/dbus.h | |
@@ -5,7 +5,7 @@ | |
#ifndef __MBPDBUS_H__ | |
#define __MBPDBUS_H__ | |
-#define DBUS_TIMEOUT 200 | |
+#define DBUS_TIMEOUT 1500 | |
void | |
diff --git pommed/kbd_backlight.h pommed/kbd_backlight.h | |
index 0b40091..a716e50 100644 | |
--- pommed/kbd_backlight.h | |
+++ pommed/kbd_backlight.h | |
@@ -22,7 +22,7 @@ | |
#define KBD_USER 0 | |
#define KBD_AUTO 1 | |
-#define KBD_TIMEOUT 200 | |
+#define KBD_TIMEOUT 1500 | |
struct _kbd_bck_info | |
diff --git pommed/power.h pommed/power.h | |
index 765e10f..bf35391 100644 | |
--- pommed/power.h | |
+++ pommed/power.h | |
@@ -12,7 +12,7 @@ | |
#define AC_STATE_ONLINE 1 | |
#define AC_STATE_OFFLINE 0 | |
-#define POWER_TIMEOUT 200 | |
+#define POWER_TIMEOUT 1500 | |
#ifdef __powerpc__ | |
# define SYSFS_POWER_AC_STATE "/sys/class/power_supply/pmu-ac/online" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment