Disabling Blanking in Raspberry Pi
Blanking is whereby a screen just goes blank (i.e. black screen). This usually happens after some time of no usage on the raspberry pi which is about 15 minutes. This can sometimes become frustrating especially if it is a screen set up for monitoring something.
So to disable it temporarily:
xset s off # disables screen saver xset -dpms #disable power management settings xset -s noblank
To disable it permanently, open the file /etc/lightdm/lightdm.conf:
sudo vi /etc/lightdm/lightdm.conf
Then add the following line:
xserver-command=X -s 0 -dpms