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
This does not work. Last upgrade/rpi update
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.
max, you are wrong. Maybe confused something.
This seriously doesn’t work with latest updates.
Just tested.
you might have typo in your command.
here is the source:
https://raspberry-projects.com/pi/pi-operating-systems/raspbian/gui/disable-screen-sleep
Hmm, weird. I tested again with my latest setup but there is no typo and it’s working fine…
– Raspberry Pi 4B+
– 7-inch Official Raspberry Pi Display / SunFounder 13-inch HDMI Display
– Raspbian Buster (2019-06-20)