Read the statement by Michael Teeuw here.
VGA (not a HDMI) sleep via PIR-Sensor
-
Hi AxLED,
may I ask you for help please?I did connect a PIR to my Rpi to PIN 40 / BCM 21
git clone https://github.com/mboskamp/MMM-PIR.git cd MMM-PIR npm install
Added the the config in the verry first line within the modules chapter
{ module: 'MMM-PIR', position: 'top_center', config: { sensorPin: 21, delay: 10000, turnOffDisplay: true, showCountdown: true, // callbackScripts: ["callback.py" } },
Nothing happen. No countdown starts. No Disply turn off.
Wiring was inslalled already:
pi@MagicMirror:~ $ gpio -v gpio version: 2.50 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty Raspberry Pi Details: Type: Pi 3, Revision: 02, Memory: 1024MB, Maker: Sony * Device tree is enabled. *--> Raspberry Pi 3 Model B Rev 1.2 * This Raspberry Pi supports user-level GPIO access.
And I tried this command an a reboot:
sudo usermod -a -G gpio pi
Have you got any hints for me please?
-
no idea what to do getting display off while noone is infront of it using PIR-Sensor?
Cheers, bdream
-
@bdream
There are two Pir Sensor Modules. I use MMM-PIR-Sensor. Maybe this helps.
AxLED -
@bdream
MMM-PIR uses the tvservice command (see MMM-PIR/callbackscripts/default for the two scripts)MMM-PIR-Sensor uses the /usr/bin/vcgencmd command
YOU have to make sure the different approaches work
my TV does NOT respond to ANY command…
-
Good Info!
Will play next days with MMM-PIR and MMM-PIR-Sensor investigating about needed scripts vs. /usr/bin/vcgencmd commandIf I can’t get it run mayby I will add an relais to turn off the display…
At the moment I have to understand the both approaches and what my display is able to handle.
Could be no way is possible as it’s an verry old one.Cheers, bdream