I am using a Raspberry Pi connected to a TV (monitor) to show some information; it is inactive most of the time. My problem is that the screen turns off every five minutes.

This is what I tried with no success:

  1. Set blank time and power down time as follows in /etc/kbd/config


  2. Added these lines to /etc/xdg/lxsession/LXDE/autostart

    @xset s noblank
    @xset s off
    @xset -dpms

  3. Added these lines to /etc/xdg/lxsession/LXDE/autostart

    xset s off
    xset -dpms
    xset s noblank

Any idea on how can I solve this?

  • 2
    Have you tried this raspberrypi.stackexchange.com/questions/2059/… Dec 22, 2015 at 15:15
  • for my raspbian/jessie based Pi the @xset lines are in ~/.config/lxsession/LXDE-pi/autostart and work correctly
    – rob
    Dec 22, 2015 at 15:28
  • 1
    Like @rob said, you need to add those lines to LXDE-pi/autostart not LXDE/autostart Dec 22, 2015 at 17:12
  • Thanks rob, I moved those lines to LXDE-pi and it is working fine now. If you want to make your comment an answer I will be glad to accept it
    – cventu
    Dec 22, 2015 at 17:56

1 Answer 1


Paths seem to have changed in the Jessie Raspbian.

Try putting the

@xset s noblank
@xset s off
@xset -dpms

lines in the ~/.config/lxsession/LXDE-pi/autostart file not the LXDE/autostart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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