Here are two techniques to disable the blank screen on the Raspberry Pi. By default the screen is blanked after around 10/15 minutes if no user input (mouse or keyboard) is detected.
1 – Disabling the blank screen once
You can disable the blank screen once with the following command line instructions:
$ sudo xset s off $ sudo xset -dpms $ sudo xset s noblank
xset s off disable the screen saver, xset -dpms disables the DPMS (Display Power Management Signaling) and xset s noblank tells to X server to not blank the video device.
2 – Disabling the blank screen forever
If you want to disable the blank screen at every startup, just update the /etc/lightdm/lightdm.conf file and add in the [SeatDefaults] section the following command:
[SeatDefaults] xserver-command=X -s 0 -dpms
You need root rights to update the lightdm.conf file. You can use the nano editor:
$ sudo nano /etc/lightdm/lightdm.conf