Read the statement by Michael Teeuw here.
PIR sensor to turn monitor off. Nothing works :(
-
For those unsuccessfully trying to put the monitor to sleep and wake up with PIR, are you running MM on pi4 with Rapsberian?
I never managed to get this combination to work. Instead I did succeed with Lubuntu on pi4.Currently I have working PIR on pi3 with Rapsberian. No issue with this one.
Just the pi4 is so different and worse to configure sleep/wakeup. -
Honestly, I would resort to an out-of-MagicMirror experience. I whipped up some python code using GPIOZero to replace MMM-Buttons, for instance…
-
@wishmaster270 Can you help me out with this?
-
I dont know if this is helpful but I use
/usr/bin/vcgencmd display_power 0
monitor off/usr/bin/vcgencmd display_power 1
monitor on
works flawlessly
(ssh in pi and type the commands to try them)r
-
@rafhtl Can you give me more context on where to input this and where it should go?
-
ok
if u are using MMM-PIR-Sensor
it should already be in the module
please try from ssh (you have to log in to the pi) and then type
/usr/bin/vcgencmd display_power 0
you should first try this to see if monitor responds to command
so first log in from a pc to your pi using putty
r -
@rafhtl I was able to achieve this but my monitor stays off after a while and doesn’t come back on. Earlier in the thread I was suggested to just put the monitor to sleep but the code I used came back with errors. I needed help with those lines.
-
@elleclouds ok
You need to acces the monitor’s menu
I think I read you dont have a remote?
You need to access the energy saving menu
It musdt be something simple as that -
@rafhtl can’t access it. Stripped down the monitor in my build a while ago
-
wait, the code comes back with errors?
do us a favor.
DISABLE the pir-sensor module for this test.
SSH into the mirror when you’re gonna be away for a couple hours.
type:
vcgencmd display_power 0
- Monitor should shut off.Go do whatever for a while. Come back,
SSH back into the mirror, and type
vcgencmd display_power 1
Monitor should power on.If the monitor doesn’t power back up, there’s a good chance the monitor isn’t good for your use. If it does, then we need to look at how it’s interfacing with the PIR Sensor module.