diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-11 14:47:08 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-11 14:47:08 +0200 |
commit | ef6f5d8054bb4e6a35260b86ebd845c8289fbaca (patch) | |
tree | bad004393c1bc4044abdfa378bc0e99d0e21ed27 /src | |
parent | d135e1b7b02b99b8b1f0a6232bc1c6e89abcdf4b (diff) | |
download | vyos-1x-ef6f5d8054bb4e6a35260b86ebd845c8289fbaca.tar.gz vyos-1x-ef6f5d8054bb4e6a35260b86ebd845c8289fbaca.zip |
console: T2569: run VGA console powersave on tty1
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/system_console.py | 10 |
1 files changed, 4 insertions, 6 deletions
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 >/dev/tty1 2>&1') if not console: - call( '/usr/bin/setterm -blank 0 -powersave off -powerdown 0 -term linux </dev/console >/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 >/dev/console 2>&1') - else: - call( '/usr/bin/setterm -blank 0 -powersave off -powerdown 0 -term linux </dev/console >/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 >/dev/tty1 2>&1') # Start getty process on configured serial interfaces for device in console['device'].keys(): |