From ef6f5d8054bb4e6a35260b86ebd845c8289fbaca Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 11 Jun 2020 14:47:08 +0200 Subject: console: T2569: run VGA console powersave on tty1 --- src/conf_mode/system_console.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/conf_mode/system_console.py') diff --git a/src/conf_mode/system_console.py b/src/conf_mode/system_console.py index 59a064b3a..0831232fb 100755 --- a/src/conf_mode/system_console.py +++ b/src/conf_mode/system_console.py @@ -105,16 +105,14 @@ def generate(console): return None def apply(console): - # bail out early + # reset screen blanking + call('/usr/bin/setterm -blank 0 -powersave off -powerdown 0 -term linux /dev/tty1 2>&1') if not console: - call( '/usr/bin/setterm -blank 0 -powersave off -powerdown 0 -term linux /dev/console 2>&1') return None - # Configure screen blank powersaving on VGA console if 'powersave' in console.keys(): - call('/usr/bin/setterm -blank 15 -powersave powerdown -powerdown 60 -term linux /dev/console 2>&1') - else: - call( '/usr/bin/setterm -blank 0 -powersave off -powerdown 0 -term linux /dev/console 2>&1') + # Configure screen blank powersaving on VGA console + call('/usr/bin/setterm -blank 15 -powersave powerdown -powerdown 60 -term linux /dev/tty1 2>&1') # Start getty process on configured serial interfaces for device in console['device'].keys(): -- cgit v1.2.3