Read the statement by Michael Teeuw here.
Having trouble with screen on and off? Here are some tips that could help
-
@mumblebaj Course, I just switched back to X11 for now. 🙃
-
-
Hello all and thank you for all the suggestions. I apologize as I never got followup notifications of your responses.
I ended up reverting back to the original desktop as I did not feel like fighting to change everything.
Again, thank you all for your time and help.
-
@sdetweil Yes, I did! I tried switching to x-11 and adjusting all parameters, but ended up switching back to wayland which works fine with a scheduled shut-down in the evening. Thank you once again for taking the time to lead me through this!
-
M mumblebaj referenced this topic on
-
K karsten13 referenced this topic on
-
M mumblebaj referenced this topic on
-
M mumblebaj referenced this topic on
-
M mumblebaj referenced this topic on
-
For users who are having issues with monitor on and monitor off and looking for a cron job to start their
waylandsetup. See my original post with updates. -
@mumblebaj hey, do you know why my off job when i triggered it either manually or via the cron job, it turns the monitor off, but after a few seconds it turns it on immediately again…?
-
Hi @1a2a3a . Honestly, no idea. I remember seeing a few posts from people having that exact same issue. Maybe if you search the forum for related content you may find something. I have not had the same issue myself.
-
@mumblebaj I found this old thread of mine - https://forum.magicmirror.builders/topic/18318/mm-current-version-on-raspberry-pi-5-cannot-turn-off-monitor/32?page=4
Did you input the vc4 hot plug command?
-
@1a2a3a I am a little confused. I am not having any issues after implementing my solution in this post. I thought you were having issues.
-
@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 270mof.sh#!/bin/bash export WAYLAND_DISPLAY=wayland-0 export XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/wlr-randr --output HDMI-A-1 --offThis 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login