On Fri, 25 May 2018 21:41:06 -0500
"David C. Rankin" <drankina...@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

Attachment: pgpFqbVMjhlns.pgp
Description: OpenPGP digital signature

Reply via email to