[arch-general] Where can I 'setterm -blank 5 -powerdown 6' as part of the boot process/systemd startup?

Celti Burroughs celti at celti.name
Sat May 26 08:30:28 UTC 2018


On Fri, 25 May 2018 21:41:06 -0500
"David C. Rankin" <drankinatty at suddenlinkmail.com> wrote:
>   Where in the boot/systemd startup can I call setterm to re-enable
> to normal console blank and powerdown?

Put this into /etc/systemd/system/enable-console-blanking.service...

```
[Unit]
Description=Enable virtual console blanking and poweroff

[Service]
Type=oneshot
Environment=TERM=linux
StandardOutput=tty
TTYPath=/dev/console
ExecStart=/usr/bin/setterm -blank 5 -powerdown 6

[Install]
WantedBy=multi-user.target
```

...then do `systemctl enable enable-console-blanking.service`.

~Celti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20180526/856f4766/attachment.sig>


More information about the arch-general mailing list