@1a2a3a For the latest Wayland on off I use the new adjusted scripts.
mon.sh
#!/bin/bash
export WAYLAND_DISPLAY=wayland-0
export XDG_RUNTIME_DIR=/run/user/1000
/usr/bin/wlr-randr --output HDMI-A-1 --on --mode 1920x1080@60Hz --transform 270
mof.sh
#!/bin/bash
export WAYLAND_DISPLAY=wayland-0
export XDG_RUNTIME_DIR=/run/user/1000
/usr/bin/wlr-randr --output HDMI-A-1 --off
This works pretty well for me. The screen eventually times out as there is no input and it turns off.
In addition to these I have these cron entries to call the scripts.
Turns the screen on at 6am and off at 9pm.
00 06 * * * /home/pi/mon.sh >> /home/pi/mon.log 2>&1
00 21 * * * /home/pi/mof.sh >> /home/pi/mof.log 2>&1

