Read the statement by Michael Teeuw here.
Cowboysdude's Mirror
-
@cowboysdude that’s exactly what i did all 3 files are located in Pi home directory as well as wiringPi.
sudo chmod there too & crontab too…
but not working… there should be something else.
i try to run your .sh file so the outcome is that monitor_off file works well but the monitor_on file displays the following message:
would you mind to share with me YOUR following files plssssss =>
thx you! -
@bibi go here:
https://github.com/cowboysdude/Pir-Sensor
download the monitor_on.sh and try running it again.
-
@cowboysdude Apperently i could get ride off this xset message now the monitor is turning on but the screen stays black… screensaver issue maybe.
-
@bibi said in Cowboysdude's Mirror:
@cowboysdude Apperently i could get ride off this xset message now the monitor is turning on but the screen stays black… screensaver issue maybe.
Yes that’s why I gave you the new one to try… I believe you’re having a screen saver issue.
The way I handled mine was to install xscreensaver and disable it :)
-
@cowboysdude aha ok I will check install xscreensaver this evening. Any specific options or settings that I should apply?
-
@bibi said in Cowboysdude's Mirror:
@cowboysdude aha ok I will check install xscreensaver this evening. Any specific options or settings that I should apply?
Yes “Disable” :)
-
-
@cowboysdude @bhepler Thx for spending time to help me. i understand if you can’t help anymore.
but here my update : i installed Xscreensaver and disabled it but it’s working. the monitor switches off with /opt/vc/bin/tvservice -o properly but with
/opt/vc/bin/tvservice -p the screen stays black (backlight)
just for info im doing all this via SSH… maybe something to do with X forwarding and this message : xset: unable to open display “”…Edit: i have found a command that allows to bring back the screen ! sudo chvt 9 && sudo chvt 7. :)))
i have to check out how to implement this in an elegant way -
@bibi said in Cowboysdude's Mirror:
sudo chvt 9 && sudo chvt 7
Open up the monitor_on.sh and delete everything add:
sudo chvt 9 && sudo chvt 7
Save it and that should work for you :)
-
@cowboysdude said in Cowboysdude's Mirror:
@bibi said in Cowboysdude's Mirror:
sudo chvt 9 && sudo chvt 7
Open up the monitor_on.sh and delete everything add:
sudo chvt 9 && sudo chvt 7
Save it and that should work for you :)
yep that’s exactly what i wanted to later today :))
nevertheless, I found on the forum another way to avoid using sudo… i assume it’s better practice but i am not able to confirm this.
fyi:
the link : https://forum.magicmirror.builders/topic/208/pir-sensor-put-your-mirror-to-sleep-if-not-used/64