Re: Where can I 'setterm -blank 5 -powerdown 6' as part of the boot process/systemd startup?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 25 May 2018 21:41:06 -0500
"David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx> 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: pgp69dwRvbd6W.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux