I want to turn off / on the screen remotely via SSH / using cron. I'm using Debian 9. I've found some commands, but they're not working at all.

I got commands from this answer.

These commands are working (vbetool), but when I turn on the screen back, it glitches (something similar to this).

sudo vbetool dpms off
sudo vbetool dpms on

Using xset I'm not able to turn the screen on after a few seconds.

xset -display :0.0 dpms force off 
xset -display :0.0 dpms force on 

Using xrandr I can't control the screen from SSH.

xrandr --output CRT1 --off
xrandr --output CRT1 --auto


You must log in to answer this question.

Browse other questions tagged .