October 16, 2016

Disable Screen Blanking on CentOS 7 Minimal

Running CentOS 7 minimal, you may find it inconvenient that the screen blanks after around 10 minutes. Below is how you can disable it.

Edit the grub configuration file:

sudo vim /etc/default/grub

On the line starting:

GRUB_CMDLINE_LINUX

Add the following:

consoleblank=0

Once done. Save and exit the file.

Now we need to update grub.

On BIOS set based systems do:

grub2-mkconfig -o /boot/grub2/grub.cfg

On UEFI set based systems:

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

You can now reboot and screen blanking should be disabled.

No comments:

Post a Comment