Disabling Screen Sleep on Raspberry Pi

By default the screen goes to sleep after some minutes of inactivity. It can be disabled by editing configuration file.
Here is the steps.

1. Open /etc/lightdm/lightdm.conf file.

sudo nano /etc/lightdm/lightdm.conf

2. Look for the line starts “xserver-command” under “[Seat:*]” section and modify as below:

xserver-command=X -s 0 -dpms

3. Reboot the system.

sudo reboot

 

 

 

Sponsor Link

5 Comments

    1. Hi Daniel, thank you for your comment. I just checked the steps above with the latest Raspbian Stretch with Desktop (2019-04-08) and it’s working with my setup. Even after 10 minutes of inactivity, the screen is still awake. Are you using Stretch Lite? It looks that Lite requires different steps.

  1. max, you are wrong. Maybe confused something.
    This seriously doesn’t work with latest updates.
    Just tested.

Comments are closed.