Read the statement by Michael Teeuw here.
{HowTo} turn on/off your monitor (Time based, PIR/Button, App)
- 
 @cruunnerr As many have said your patience and helpfulness is much appreciated. I did have the ground and the power swapped. I turned off the Pi swapped them and turned it back on and re-ran the test. Got the same thing. I grabbed another PIR and ensured I plugged it in properly. Hooray! (I guess I fried the other one by swapping PWR and GND) Your python test works and it activates MM for the proper amount of seconds after the time delay. Woohoo! Now I need to get it to go to a black screen instead of turning off since after the PIR Sensor stops sensing motion I then see the “NO SIGNAL” screensaver bounce around my TV. One step closer! 
- 
 :) thank you very much ^^ I am very glad u found out what went wrong. :) 
 So now u should be able to use the “screen_on/off” files instead of the monitor_onoffJust try out :) 
- 
 @cruunnerr I just redid step 2.2 with the alteration of screen_on/off.sh (instead of monitor) and the HDMI is still being disabled and giving me the “no signal” screensaver. How do I know that the chmod +x steps are actually making the script executable? 
- 
 try the shell scripts without the python script. sh monitor_off.shshould show a black screen (not turning HDMI off)
 sh monitor_on.shshould disable the black screen.if this is working for u, then your pir.py script seems not being correct. the chmod +x step is necessary for the python script execute the shell scripts. But first try the commands above. If this doesn’t work, then i have to think about and search for a solution. 
 But i tried it just a few seconds ago, and it works fine here
- 
 @cruunnerr for me $ sh monitor_off.sh returns the following 
 sh: 0: Can’t open monitor_off.sh
 I then inputted $ nano monitor_off.sh and it’s empty when I just inputted the commands from your instructions. ¯_(ツ)_/¯
- 
 again one step closer :D put in the content and save with “ctrl+x” and “y” try everything agin and report if u got trouble again :) edit: oh sorry. Aren’t we using “screen_on/off”?? :D so try sh screen_off.shshould show a black screen (not turning HDMI off)
 sh screen_on.shshould disable the black screen.
- 
 I GOT IT! I stepped back a few steps with the module removed from the config.js file and it wouldn’t blank anymore so it made me think I had something wrong with the pir.py file. I looked into Paviro’s files in the PIR-Sensor folder and found in the node_helper.js file a reference to tvservice -o/p. I found where my xscreensaver was located /usr/bin/ and I had the node_helper file execute the xscreensaver instead of the tvservice. Bingo! No more “No Signal” bouncing around when the PIR-Sensor module kicks in! Many thanks to Cruunnerr for the help. Definitely could not have figured this out without you! 
- 
 Good work, mate! I like it. :-) 
- 
 
- 
 hey all, im having a issue with my pir module. i have run the pir.py script and its constantly scrolling the … until i move and then it stops for a brief second, and when i load the module in my config file the screen just stays black. is this some kind of interference or do i just have it hooked up backwards or something? 
 
 
 
 
 



