Read the statement by Michael Teeuw here.
cronjob vcgencmd display_power
-
Hi guys, i am having trouble getting the magicmirror to turn the screen on and off with cronjob. I have used them before and it used to work and works with other installations with root /usr/bin…>/dev/null 2>&1 command but does not work anymore. I have tried all these variations and none work. I have used system wide cron with sudo nano edit and the reboot actually works…

-
this is on pi3 and i also tried modifying boot/config.txt file
Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d (changed to fkms)
max_framebuffers=2 -
@megagprime This is how I run mine. I have 2 scripts and I call these scripts from the cron and not the actual vcgencmd

And in the scripts I run the following:

This works perfectly for me. Give it a go and let’s see if that works. I run an RPI 3B.
-
@mumblebaj ya even this didnt work, maybe i need to change my boot/config file back to kms
-
@megagprime anybody have any ideas why this doesnt work and should i change my boot file?
-
@megagprime
Did you ever figure this out? I’m having the same issue -
@Nneuland nope, still no dice. building a new mm now, will update
-
@megagprime @Nneuland depending on the board firmware, the vcgencmd may or may not work
this was reported and worked thru in the fall.
see https://forum.magicmirror.builders/topic/17185/pir-sensor-problem-after-restart-raspi/20?_=1672509926391 -
@sdetweil hi there, i still dont see a fix or alternative workaround. The commands themselves work i just cant get it to work with cronjon :(
-
@megagprime what user is cron executing them as?
what user do you use when testing?
cron is root by default unless u add another parm for the username
-
@sdetweil i use sudo for cron and root vcgencmd display_power for the command.
no idea if i am doing this right but like i said, i used to work lol
-
@sdetweil i use sudo for cron and have tried root and just the vcgencmd, neither work
-
@megagprime I think vcgencmd needs a DISPLAY env variable
-
@sdetweil yes i use vcgencmd DISPLAY_POWER 0 or 1, like i said those commands work just fine just not in cron
-
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