My laptop screen stays on when the lid is closed. How do I enable blanking, and how do I enable display power off after x minutes in the console?
This is a server install on a laptop and I really don't want the screen to be on 24/7 when the lid is closed! Seems wasteful...
setterm --blank 1 --powerdown 2
works, but how do I add this so it survives a reboot?
I followed other questions and a user told me what I had previously done was irrecoverable. I'd prefer to avoid that again? (See: Boot splash persists at login, so powersaving and screen blanking don't come into affect?)
~/.bashrc
. That is a way to make commands survive reboot. – sudodus Apr 24 '20 at 19:59I previously followed: https://askubuntu.com/questions/62858/turn-off-monitor-using-command-line/1076734#1076734 and made it a service, was that wrong?
– randomlyalex Apr 24 '20 at 20:05HandleLidSwitch=
that handles this. – Apr 25 '20 at 05:26