Raspberry PI – disable screen saver for X

I just got my hands on a raspberry PI, and the first problem I ran into was that the screen is going black after a couple of minuts. It does not seems to be a simple way to solve this, but I found three solutions online and I will summon them up here. Just follow the steps in each:

X-Server setting:

  1. Run this to install utilities (if not installed): apt-get install x11-xserver-utils
  2. Create (if not exists) this file in your home directory: ~/.xinitrc
  3. Open thie file: sudo nano ~/.xinitrc
  4. Add the following four lines:
    xset s off
    xset -dpms
    xset s noblank
    exec /etc/alternatives/x-session-manager
  5. Save and exit

Lightdm setting:

  1. sudo nano /etc/lightdm/lightdm.conf
  2. In that file, look for: [SeatDefault]
  3. Insert this: xserver-command=X -s 0 dpms

KDB settings:

  1. Run: sudo nano /etc/kbd/config
  2. Change the value ”BLANK_TIME=30” to ”BLANK_TIME=0”
  3. Change the value ”POWERDOWN_TIME=30” to ”POWERDOWN_TIME=0”
  4. Save exit nano
  5. Run: sudo /etc/init.d/kbd restart

 

Completing all these steps solved the problem for me =)

Annonser