Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: tty2.conf

Issue 6858004: Disable screen blanking and powersave on VT2 for factory (Closed) Base URL: ssh://gitrw.chromium.org:9222/init.git@master
Patch Set: comment and todo Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tty2.conf
diff --git a/tty2.conf b/tty2.conf
index 4765488065dcd2ed33e26f84b4b20c5a6616580c..2b58a87ab2e9859ce8be2081f3bcf99fbeaf60ad 100644
--- a/tty2.conf
+++ b/tty2.conf
@@ -7,3 +7,11 @@ stop on runlevel [!2]
respawn
exec /sbin/agetty 38400 tty2 linux
+
+post-start script
+ # Disable screen blanking and powering down for dev & factory.
+ # TODO(tbroch) If X is running and DPMS is enabled it still blanks VT2.
+ # Investigate possibility of tying these different code paths together.
+ printf "\033[9;0]" > /dev/console
+ printf "\033[14;0]" > /dev/console
+end script
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698