How to disable screen sleep mode when used with a Raspberry Pi?
Step 1: Open a terminal and type the command:
sudo nano /etc/lightdm/lightdm.conf
Step 2: Find the xserver-command' under the [Seat:*] paragraph, uncomment it, and modify it as follows:
xserver-command=X -s 0 -dpms
Step 3: Restart the system
sudo reboot
Tagged: