Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to disable blank screensaver on Ubuntu Server?

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

share|improve this question
up vote 35 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" – Alex 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 '14 at 4:56
    
@CMCDragonkai This answer works for virtualized Ubuntu as well since it boots using grub by default too. – Melebius Jan 21 '15 at 9:42
    
As in, is there a way to pass it externally from Virtual Box, not from within Ubuntu? – CMCDragonkai Jan 22 '15 at 0:28

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
    
This only worked after I ran TERM=linux (since I override it in my .bashrc). – Wesley Baugh Jun 14 at 4:46

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.