Difference between revisions of "Disable screensaver and screen blanking Raspberry Pi"

From ETCwiki
Jump to navigationJump to search
 
Line 1: Line 1:
 
This is how to disable screen blanking on the Raspberry Pi running debian (raspbian) which will stop the screensaver (a blank screen) from starting during command line usage.
 
This is how to disable screen blanking on the Raspberry Pi running debian (raspbian) which will stop the screensaver (a blank screen) from starting during command line usage.
  
 +
==Disable RPi screen blanking in console==
 
If your screen goes black during command line after 30 minutes or so, you have screen blanking enabled most likely. If you want to turn it off:
 
If your screen goes black during command line after 30 minutes or so, you have screen blanking enabled most likely. If you want to turn it off:
  
Line 8: Line 9:
 
  BLANK_DPMS=off
 
  BLANK_DPMS=off
 
  POWERDOWN_TIME=0
 
  POWERDOWN_TIME=0
 +
 +
 +
 +
==Disable screensaver and blanking RPi in X==
 +
This will disable screen blanking and blacking etc while within X on the Pi. It will only work for X Windows (LXDE) GUI.
 +
*startx on the Pi
 +
*Run this command in a terminal window (installs xset, a tool we need)
 +
sudo apt-get install x11-xserver-utils
 +
*now lets make a file to run on the start of X with settings
 +
cd /home/pi
 +
touch .xinitrc
 +
nano .xinitrc
 +
*Now you should edit .xinitrc and add these lines (disable ss, say no monitor timeout, set no blanking)
 +
xset s off
 +
xset -dpms
 +
xset s noblank
 +
 +
 +
==External Links==
 +
*[http://raspberrypi.stackexchange.com/questions/752/how-do-i-prevent-the-screen-from-going-blank StackExchange] - Similar/Same question
 +
  
 
[[Category: Raspberry Pi]]
 
[[Category: Raspberry Pi]]

Revision as of 17:59, 31 July 2015

This is how to disable screen blanking on the Raspberry Pi running debian (raspbian) which will stop the screensaver (a blank screen) from starting during command line usage.

Disable RPi screen blanking in console

If your screen goes black during command line after 30 minutes or so, you have screen blanking enabled most likely. If you want to turn it off:

Edit the file /etc/kbd/config Change these lines:

BLANK_TIME=0
BLANK_DPMS=off
POWERDOWN_TIME=0


Disable screensaver and blanking RPi in X

This will disable screen blanking and blacking etc while within X on the Pi. It will only work for X Windows (LXDE) GUI.

  • startx on the Pi
  • Run this command in a terminal window (installs xset, a tool we need)
sudo apt-get install x11-xserver-utils
  • now lets make a file to run on the start of X with settings
cd /home/pi 
touch .xinitrc
nano .xinitrc
  • Now you should edit .xinitrc and add these lines (disable ss, say no monitor timeout, set no blanking)
xset s off 
xset -dpms 
xset s noblank 


External Links