Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4730

Troubleshooting • Turn HDMI on/off on Schedule Using New Labwc / Raindrop Compositor

$
0
0
I have used the below scripts to turn my HDMI output on and off on schedule when using the WAYLAND compositor in Raspberry Pi OS:

turn_off_monitor_WAYLAND.sh

Code:

#!/bin/bash# Script to turn off monitor display when called by crontabexport WAYLAND_DISPLAY=wayland-1export XDG_RUNTIME_DIR=/run/user/1000/usr/bin/wlr-randr --output HDMI-A-1 --off
turn_on_monitor_WAYLAND.sh

Code:

#!/bin/bash# Script to turn on monitor display when called by crontabexport WAYLAND_DISPLAY=wayland-1export XDG_RUNTIME_DIR=/run/user/1000/usr/bin/wlr-randr --output HDMI-A-1 --on --mode "1920x1080, 60.000000"
The scripts are triggered by crontab jobs to turn the monitor off at night and back on in the morning.

The October 2024 Release of Raspberry Pi OS comes with a new Labwc / Raindrop compositor and the above scripts obviously do not work when using this compositor. I'd like to stick with using the new Labwc / Raindrop compositor going forward and have switched to that compositor using the raspi-config tool.

I've made sure I've installed the new raindrop screen configuration tool by following the guide at https://www.raspberrypi.com/news/a-new- ... rry-pi-os/.

Can someone please tell me what the equivalent command line options are with the new raindrop tool to turn the HDMI output on or off (similar to the old xrandr/arandr/wlr-randr tools).

Statistics: Posted by AntD — Wed Dec 18, 2024 9:00 am — Replies 7 — Views 106



Viewing all articles
Browse latest Browse all 4730

Trending Articles