Mailinglist Archive: opensuse (1352 mails)

< Previous Next >
[opensuse] how to enable display power saving on virtual consoles
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Sun, 03 Jun 2018 12:54:24 +0200
  • Message-id: <pf0hd0$355$1@saturn.local.net>
Per Jessen wrote:

That's a little over-engineered, I think. My 3-line drop-in achieves
the same:

# /etc/systemd/system/getty@.service.d/powersave.conf
[Service]
Environment=TERM=linux
ExecStartPost=/usr/bin/setterm -blank 2 -powerdown 5 /dev/%I

Correction, this is what we ended up with:

/etc/systemd/system/getty\@.service.d/powersave.conf

[Service]
Environment=TERM=linux
ExecStartPost=-/usr/bin/setterm -powersave on >/dev/%I
ExecStartPost=/usr/bin/setterm -blank 2 -powerdown 5 >/dev/%I


Remarkably, "/usr/bin/setterm -powersave on" works fine when issued from
a console.


--
Per Jessen, Zürich (22.6°C)
http://www.hostsuisse.com/ - virtual servers, made in Switzerland.


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups