diff options
author | Mike Lockwood <lockwood@android.com> | 2009-10-04 17:21:05 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-10-04 17:21:05 -0400 |
commit | 2ecf3f5e00ea2ac630ffb405baba33113596cf38 (patch) | |
tree | 80bfaa7b61630edd9ce6f066d590789bdf5b7cc5 /cmds/dumpstate/dumpstate.c | |
parent | f8e4bc9f7789b98b54fe04df56555ca8c630df70 (diff) | |
download | frameworks_base-2ecf3f5e00ea2ac630ffb405baba33113596cf38.zip frameworks_base-2ecf3f5e00ea2ac630ffb405baba33113596cf38.tar.gz frameworks_base-2ecf3f5e00ea2ac630ffb405baba33113596cf38.tar.bz2 |
dumpstate: Add backlight information to bugreport output.
To help diagnose bugs b/2164183 and b/2164647
Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'cmds/dumpstate/dumpstate.c')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 7 |
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"); |