Disable screen blanking in the Raspberry Pi (Debian Buster)
From Ozzmaker.com:
sudo apt-get install x11-xserver-utils
sudo nano /etc/X11/Xsession.d/disableblank.sh
Add:
xset s off
xset -dpms
xset s noblank
Permissions:
sudo chmod +x /etc/X11/Xsession.d/disableblank.sh
Add to autostart:
sudo echo "/etc/X11/Xsession.d/disableblank.sh" >> /etc/xdg/lxsession/LXDE-pi/autostart