Does that annoying screensaver keep popping up? Is the screen going blank another thorn in your side? No problem:

First you have to edit the autostart file

For the standard Pi user:

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart

For the root Pi user (if running the GUI with “sudo startx” for instance when running apps that access the IO pins):

sudo nano /root/.config/lxsession/LXDE-pi/autostart

Unfortunately in recent updates, the above has changed in that really annoying way that happens all to often with Linux versions, but seems to be the current file that needs to be edited. It used to be these but they no longer seem to work with the latest version of Raspbian:

sudo nano /etc/xdg/lxsession/LXDE/autostart
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Comment out the screensaver line, e.g.:

@lxpanel –profile LXDE-pi
@pcmanfm –desktop –profile LXDE-pi
#@xscreensaver -no-splash
@sh ${HOME}/.config/lxsession/LXDE-pi/

Then add these lines:

#Disable screensaver:
@xset s noblank
@xset s off
@xset -dpms

Press CTRL+X & then Y to save and exit.

Now edit config

sudo nano /etc/kbd/config

Find the following lines and set the values accordingly:


All set!

Questions / Comments?