diff options
author | Pat Erley <perley@cyngn.com> | 2015-10-22 18:04:35 -0700 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:34:35 -0800 |
commit | 3381ac447175af3252c79c3e066cbbc38c400c85 (patch) | |
tree | 032b579655cb3739885a5365b6a7ddac79dc566b | |
parent | f42bf40aa1526ff8d1a93717be40f40d975e798c (diff) | |
download | bootable_recovery-3381ac447175af3252c79c3e066cbbc38c400c85.zip bootable_recovery-3381ac447175af3252c79c3e066cbbc38c400c85.tar.gz bootable_recovery-3381ac447175af3252c79c3e066cbbc38c400c85.tar.bz2 |
Blank screen during shutdown and reboot
Some hardware doesn't like having the panel on and still
active during pwoer cycles, so just turn it off.
Change-Id: Ied1f0802f5a2d45980ee33abf2456a291ba64beb
-rw-r--r-- | recovery.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index b8a53df..3cd2764 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1381,6 +1381,9 @@ main(int argc, char **argv) { sync(); + write_file("/sys/class/leds/lcd-backlight/brightness", "0"); + gr_fb_blank(true); + switch (after) { case Device::SHUTDOWN: ui->Print("Shutting down...\n"); |