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.HandleLidSwitch=
that handles this.