A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Tuesday, October 13, 2020

Ubuntu Server Turn Off monitor when Idle automatically

So I am on Ubuntu Server 20.20.1 with no Desktop nor GUI just TTY mode.
You can test it with this command:
        
                            setterm --blank 1

if it works, It's better to adding it into Grub so it can be run automatically when system is idle.
head over to edit the grub with this command:
                sudo nano /etc/default/grub
then you have to add  
consoleblank=60  into GRUB_CMDLINE_DEFAULT Like this:

For instance: GRUB_CMDLINE_LINUX_DEFAULT="profile consoleblank=60 resume=UUID=d0cb72f8-6b16-4988-8b66-9bf992beaafc"

It will automatically turns off your monitor every 60 sec when system is idle.
then you have to update your grub with: sudo update-grub then reboot your server.


No comments:

Post a Comment

Back to top