screen_off = "qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut 'Turn Off Screen'" I use this on deck and the following on desktop where the monitors automatically shut off: "kscreen-doctor output.DP-2.disable" hope it helps!
post
I think it's something like
kscreen-doctor --dpms off
works the same as xset dpms
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" --off
wlr-randr --output "HDMI-A-1" --on
I've also go this environment variable set but I don't know if it is needed outside of cron:
XDG_RUNTIME_DIR=/run/user/1000
Thank 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..
Hahahaha! Wayland sucks so much you users can't even turn the screen on or off.
Welp, time to return to physical switches I guess!
Did you read anything other than half of the words in the title? If you’re a troll, please, stop, we don’t need more separation of communities in this world. If you’re not a troll and genuinely this stupid: get off the internet, go to your local library and just read any nonfictional book, that should give you some insight on how things actually work in the real world.
all 9 comments