Found the error - xrandr needs a sudo in front, otherwise it doesn’t execute.
Read the statement by Michael Teeuw here.
Best posts made by djlagaffe
-
RE: MMM-PIR-Sensor-Lite not switching off
Latest posts made by djlagaffe
-
RE: MMM-PIR-Sensor-Lite not switching off
Found the error - xrandr needs a sudo in front, otherwise it doesn’t execute.
-
RE: MMM-PIR-Sensor-Lite not switching off
@sdetweil Sorry, one add-on no debug messages either in the logs, nor via npm run start:dev
-
RE: MMM-PIR-Sensor-Lite not switching off
@sdetweil : yes, however no luck or any log entry at all in pm2 logs mm - am I looking in the wrong place?
-
RE: MMM-PIR-Sensor-Lite not switching off
@sdetweil : I did check with the scripts and the PIR itself works. I have also activated the countdown timer, thus the communication between the PIR, the script and MM in general works. What I do not see is that the command to switch off the screen is executed (or even sent).
I have verified the script and the command to check whether the command itself works on my installation, and yes, it does.
So it should be something not triggering the switch-off / on command. However I have not been able to put my finger on it yet… -
MMM-PIR-Sensor-Lite not switching off
Hi guys,
I installed my PIR incl. the aforementioned module.
I have configured the module to xrandr on HDMI-1 and verified whether it works on the command line, which it does.
Test of the sensor works fine too, module also sees movement and restarts the countdown.
However, when it reaches 0, the screen doesn’t turn off. I don’t see any log that it would want to turn off, neither when doing npm run start:dev nor through the pm2 logs.Just updated to v2.22.0, just in case - but no luck.
Any ideas or pointers?Thanks