Enabling and disabling display timeout in the Linux terminal/text console

By default, the Linux terminal/text console will not disable the display after a timeout and will sit indefinitely waiting for you to do something.

In a virtual environment this really isn’t an issue.  But on bare metal or a laptop this can be annoying.  Thankfully, it’s an easy fix.  Obviously this is a system without a desktop environment.  This is a server booting straight to terminal and staying there.

Open your grub configuration:

vim /etc/default/grub

Modify the GRUB_CMDLINE_LINUX_DEFAULT line to enable/disable the display timeout:

If GRUB_CMDLINE_LINUX_DEFAULT already has settings, add your new settings to the end.

...
#Console will go blank after 10 minutes (600 seconds)
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=600"

# Console timeout is disabled.  Display will never go off.
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"
...

Save the file and run the grub update:

sudo update-grub

Reboot when ready and you’re all set.