It is much simpler to use the xset commands. On the RPi4 the HDMI will be turned off. (There is no blanking mode anymore only HDMI off).
The monitor will then use its own timeout settings.
In my case, on screen blank timeout, the monitor will show a no input banner for about 20 min. Then will shut down. After shutdown I have to physically turn the monitor on with power button or remote. Your monitor may act differently.
Note you will have to uninstall xscreensaver for this to work.
To set a timeout of 240 min. You can use this command:
To check the settings:
To make permanent add these command to autostart:
Code: Select all
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Code: Select all
@xset s off
@xset dpms 14400 14400 14400
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.