- set in grub config (blank in 60 seconds)
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=60"
setterm -blank X
(X in minutes) in shell init file (.bashrc
) or/etc/rc.local
.
Then, prevent sleep when lid close:
sudoedit /etc/systemd/logind.conf
:
HandleLidSwitch=ignore
After that, sudo systemctl restart systemd-logind
.
Ref:
- https://superuser.com/questions/152347/change-linux-console-screen-blanking-behavior
- https://unix.stackexchange.com/questions/290712/how-to-power-down-display-on-terminal
- https://wiki.archlinux.org/title/Kernel_parameters
- https://wiki.archlinux.org/title/Display_Power_Management_Signaling
- https://askubuntu.com/questions/15520/how-can-i-tell-ubuntu-to-do-nothing-when-i-close-my-laptop-lid