Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to disable blank screensaver on Ubuntu Server?

There's no desktop or X, only console (command-line interface).

share|improve this question
add comment

2 Answers 2

up vote 18 down vote accepted

The easiest way is to add the parameter consoleblank=0 to your kernel command-line at boot-time.

  • Open /etc/default/grub in your favorite editor; you will need to use sudo (for vi, nano, etc.) or gksudo (for gedit, etc.).

  • Then add consoleblank=0 to the GRUB_CMDLINE_LINUX_DEFAULT=, parameter.

  • e.g. yours may say:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash consoleblank=0"

Then run sudo update-grub, and reboot.

share|improve this answer
    
Thanks, it works. Not "update grub", but "update-grub" –  aljesco May 20 '12 at 8:37
    
Typo, sorry -- fixed :) Glad it worked! –  izx May 20 '12 at 8:42
    
Is there a way to do that from Virtualbox? As in passing an option to the kernel command line? –  CMCDragonkai Jun 5 at 4:56
add comment

Type setterm -blank 0 on any shell to disable blanking out of tty consoles.

0 disables blanking, any value greater than 0 is the time in minutes. Default is 10.

To permanently enable this you can add this line to your ~/.bashrc config.

A more detailled explaination can be found in this answer at superuser.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.