Read the statement by Michael Teeuw here.
HDMI turns on without movement
-
Hi All,
I needed to re-setup my MagicMirror, now it runs on Raspi 4 and Debian Trixie 64-bit.
Everything works nicely as before, PIR is on PIN 22 and I use:
{
module: “MMM-Universal-Pir”,
position: “top_left”,
config: {
gpioCommand: “/usr/bin/gpiomon -e rising -c 0 22”,
//onCommand: “WAYLAND_DISPLAY=‘wayland-1’ wlr-randr --output HDMI-A-1 --on”,
//offCommand: “WAYLAND_DISPLAY=‘wayland-1’ wlr-randr --output HDMI-A-1 --off”,
onCommand: “wlr-randr --output HDMI-A-1 --on”,
offCommand: “wlr-randr --output HDMI-A-1 --off”,
deactivateDelay: 20 * 1000,
}
},
As you can see I experimented already with the commands, now it works fine with “wlr-randr --output HDMI-A-1 --on”, and the monitor turns off after 20 seconds if no movement, and turns back on when moving.Now comes the trick: when turned off, after ca. 1 minute the monitor goes back on and the MM shows “0 sec”. I.e., the HDMI activation did not come from the MM.
I tested the offCommand directly in the Terminal, the monitor goes off, and again after a minute or so goes back on. So this does not come from the MM.
I looked in the settings of the NT68676.2A Controller Board if there is an AutoDetect for HDMI or so, but did not find an entry.
Any idea what I can do? Thanks for your help!
Hobbes
-
@Hobbes-0 I would invest in direction of GPIO…
As I’ve experienced GPIO in bookworm was strongly different as in earlier version - may this applies to Trixie as well?
If monitor “awakes” suddenly this seem not to be a problem of HDMI-commands ?Sorry cannot advice more concrete - I#m still on bookwork, not Trixie.
Good luck!
Ralf
-
@karsten13 have you had a chance to test universal pir on Trixie yet?
-
@sdetweil said in HDMI turns on without movement:
@karsten13 have you had a chance to test universal pir on Trixie yet?
I’m on it …
@Hobbes-0 said in HDMI turns on without movement:
I tested the offCommand directly in the Terminal, the monitor goes off, and again after a minute or so goes back on. So this does not come from the MM.
@sdetweil so this problem is not related to universal pir or mm
I tested universal pir on mmos, which is on trixie but uses the os lite version, mm and labwc/wayland are started as containers.
I cannot reproduce the unexpected activation there.
(I found another permission problem which I will fix later)fixedOther difference between trixie and bookworm is a breaking version change of
gpiomon
so you have to use different commands:bookworm:
gpiomon -r -b gpiochip0 23
trixie:gpiomon -e rising -c 0 23
-
@karsten13 dang I hate breaking changes for no obvious value