this post was submitted on 28 Mar 2026
25 points (96.3% liked)
Linux
13059 readers
553 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I use this in a cronjob to turn a raspberry pi screen off at night and back on in the morning:
wlr-randr --output "HDMI-A-1" --offwlr-randr --output "HDMI-A-1" --onI've also go this environment variable set but I don't know if it is needed outside of cron:
XDG_RUNTIME_DIR=/run/user/1000Thank you for sharing your setup. Your solution using wlr-randr in a cron job is indeed useful for wlroots-based compositors (such as Sway, Hyprland, or labwc), where the wlr-output-management protocol is supported.
For those (like me) encountering the error 'compositor doesn’t support wlr-output-management-unstable-v1', this indicates that the compositor in use (e.g., KDE/KWin, GNOME/Mutter, or other non-wlroots compositors) does not support wlr-randr. In such cases, alternatives should be considered.
I will be post my findings, I can't believe I'm the only or just one of the few looking to archive this in a laptop..