summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-10-04 15:22:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-04 15:22:08 -0700
commite04611471133650731bcd06229dfd38f3fcdc889 (patch)
treefa34f4faf4bce7cbbd8b783a049ef344f0b3785e /cmds
parent7c64a89b3c6d05e03bc72df18fbcf34365833b37 (diff)
parent2ecf3f5e00ea2ac630ffb405baba33113596cf38 (diff)
downloadframeworks_base-e04611471133650731bcd06229dfd38f3fcdc889.zip
frameworks_base-e04611471133650731bcd06229dfd38f3fcdc889.tar.gz
frameworks_base-e04611471133650731bcd06229dfd38f3fcdc889.tar.bz2
am 2ecf3f5e: dumpstate: Add backlight information to bugreport output.
Merge commit '2ecf3f5e00ea2ac630ffb405baba33113596cf38' into eclair-mr2 * commit '2ecf3f5e00ea2ac630ffb405baba33113596cf38': dumpstate: Add backlight information to bugreport output.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 1f14726..4dda68c 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -111,6 +111,13 @@ static void dumpstate(int full) {
"PANIC CONSOLE");
dump_kernel_log("/data/dontpanic/apanic_threads",
"PANIC THREADS");
+
+ PRINT("------ BACKLIGHTS ------");
+ DUMP_PROMPT("LCD brightness=", "/sys/class/leds/lcd-backlight/brightness");
+ DUMP_PROMPT("Button brightness=", "/sys/class/leds/button-backlight/brightness");
+ DUMP_PROMPT("Keyboard brightness=", "/sys/class/leds/keyboard-backlight/brightness");
+ DUMP_PROMPT("ALS mode=", "/sys/class/leds/lcd-backlight/als");
+ DUMP_PROMPT("LCD driver registers:\n", "/sys/class/leds/lcd-backlight/registers");
}
PRINT("========================================================");
PRINT("== build.prop");