Read the statement by Michael Teeuw here.
MMM-PIR-Sensor black screen
-
Hello everyone,
i just found out about this module - didn’t even know this exists - and i hat to try it!
I’m planning on saving some energy by powering off the Monitor.The install worked fine and the PIR Sensor is working (i have a litte .py script that’s prints a message in the shell if a movement is dedected) BUT the screen stays black!
The Monitor is powerd on - i even see the desktop seconds bevor MM boots up, but the screens stays black and nothing is displayed.
I noticed this before when i was trying to turn my monitor on and off again with
tvservice --off
/tvservice --preferred
.
If i usevcgencmd display_power 1
/vcgencmd display_power 0
my Monitor perfectly switches on and off again.But, i checked the “node_helper.js” on github and the helper file is using the “vcgencmd script”
What is going here? Any ideas how i can solve this?
-
@Stef with the black screen and a keyboard, press ctrl-shift-i (letter I),
to open the developers console, select the console tab, and scroll up to find errors, red text -
@sdetweil thanks for the headsup - but this does not work… i see the mous coursor though, but that’s it.
I even can’t “cancel” the fullscreen mode of the magic mirror by pressing F11 (usually this brings me back to the desktop) :/ -
I did a little research and stumbled over severall issues on the github page - this one catched my eye, but didn’t brought me any luck…
So, what did i do excatly?
- Install:
cd ~/MagicMirror/modules/ git clone https://github.com/paviro/MMM-PIR-Sensor.git npm install sudo usermod -a -G gpio pi sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt sudo reboot
- New wiringPI version:
sudo apt-get purge wiringpi hash -r sudo apt-get install git-core cd git clone git://git.drogon.net/wiringPi cd ~/wiringPi git pull origin ./build sudo reboot
- reinstall EPOLL:
cd ~/MagicMirror/modules/ sudo npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
- recompile Electron:
npm list | grep electron cd ~/MagicMirror/modules/MMM-PIR-Sensor npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50 sudo reboot
Expectation: It Works now…
Reality: It does not…my Config is:
{ module: 'MMM-PIR-Sensor', config: { sensorPin: 23, powerSaving: true, powerSavingDelay: 120 // 2 Minutes } },
I just excluded this part of my config - and my mirror displays everything again…
Andy ideas left? :)
-
Hey all,
turns out, that the MMM-PIR-Sensor Module is buggy - well, at least for me.
Can’t get it to work, but i found an alternative: MagicMirror-Display-ControllerWorks like a Charme!
Case closed :)
Have a nice weekend!
-
@Stef Hi, yesterday i added two Modules to the Showcase Area. On that monitors GPIO Pins and one which controls the Monitor.
My usecase is exactly like yours. I use an PIR sensor to detect user presence and want the screen to be turned off after a configurable timeout.
If you want to try them:
MMM-Screen-Powersave-Notification
and
MMM-GPIO-Notifications