Read the statement by Michael Teeuw here.
MMM-Universal-Pir - Desparately seeking right command
-
Good eveneing, all.
My mirror is working fine, I was able to configure a Raspi5 with bookworm and all migrated modules are working in this version.
Because I have to keep in mind that my favourite MMM-Pir ( :-) ) won’t run that much in future I try to investigate alternatives.
The most current module for PIR detection seems to be MMM-Universal-Pir.
Unfortunately I’m not able to figure out the right commands (or the module doesn’t work - but I’ve seen some success messages).For some strange reason my Mirror-Autostart is configured with a X11 start, so on my bookworm instance I have disabled wayland to run MagicMirror in this mode, so “default” commands of module won’t definitely not work.
I’ve found here around :
“vcgencmd display_power 1” / “vcgencmd display_power 0” - on bookworm vgencmd doesn’t have this “display_power” option.
“echo on | sudo tee /sys/class/drm/card1-HDMI-A-1/status” / “echo off | sudo tee /sys/class/drm/card1-HDMI-A-1/status” – this doesn’t do anything on my system - neither on terminal command-line nor in module.
“DISPLAY=:0.0 xrandr --output HDMI-1 --off” / “DISPLAY=:0.0 xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left” are the most promising candidates - they at least are working on command-line in terminal
But xrandr doesn’t work with MMM-Universal-Pir.
(I’ve also tried to use these xrandr commands without display-reference
(“xrandr --output HDMI-1 --off” / “xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left”* ) . Doesn’t work, either (from module).Is anybody out there with Pi5/bookworm/X11 with a working configuration / Command pair?
And an additional question to those who are uing this module successfully: Is it true, that the countdown is not interrupted if a motion is detected ? (this is my impression when looking at the countdown - but may 1 Minute is too short) …
Many thanks for any hint!
Regards,
Ralf -
@rkorell said in MMM-Universal-Pir - Desparately seeking right command:
“DISPLAY=:0.0 xrandr --output HDMI-1 --off” / “DISPLAY=:0.0 xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left”
these are the right commands and are working now!
(If one was not too blonde to switch the commands …)
My fault - I’ve entered the on comand to the off parameter …
Sorry!Regards,
Ralf -
-
I am trying to get this to work after no longer being able to use MMM-Pir. When the countdown hits 0 the screen goes black like it should . But, then it immediately turns back on even without motion.
What am i missing?
I’m using the DISPLAY=0.0 xrandr --output HDMI-2 --off
It works fine from the command line but not within MM.