Read the statement by Michael Teeuw here.
White screen after screen resumes from PIR, or sometimes randomly - can still access via ssh, requires restart sometimes
-
Im all of a sudden (no changes made I dont think, except updating ProfileSwitcher) getting a fully white blank screen when the pir detects motion and brings the screen back on. Sometimes it stays white for 15 mins and comes back to normal, other times it requires me to restart.
When the white screen happens I can still access via ssh. Also I’m not using PIR module, just a simple script on start that monitors the PIR sensor and send the monitor off/on request. I havent had any issues before and its been on for over a week at a time.
Update:
So when the mirror comes back from the white screen after xx minutes this is the error in the log:
0|mm | ** Message: console message: http://localhost:8080/ @0: WebSocket network error: Error sending data: Connection reset by peer
So seems like the PIR script I have running is still working fine but shutting and resuming the screen…just not sure why the white screen started happening all of a sudden. With the white screen I can still issue the screen off command:
/opt/vc/bin/tvservice -o
but issuing the on command brings me back to the white screen.
-
White screen happens when the PIR sensor does this command, then after a few mins the MM comes back:
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2
Im not sure if theres something wrong with the Pi and when I do:
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 1
it shows the terminal on the screen, then doing the command with 2 brings back the white screen on the MM. -
@Mar
/opt/vc/bin/tvservice -p && sudo chvt 6 && sudo chvt 7
works for me -
@strawberry-3.141 I went through 1-10 on that second chvt LOL. no difference.
After a bit of searching the following seemed to work to turn my screen on and off but im hesitant to change my monitor on/off script to these as Ive never had an issue with the commands above that everyone seems to use. (from: https://forum.magicmirror.builders/topic/52/pir-sensor-put-your-mirror-to-sleep-if-not-used/21)
vcgencmd display_power 0
vcgencmd display_power 1
The original commands have worked for a long time so not sure why they’ve stopped working? can anyone explain the difference between the above and below? And why the below would start displaying a white screen when turned back on?
/opt/vc/bin/tvservice -o
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2
-
@Mar I don’t know the concrete differences between these commands. I guess you will have to look at the man pages, or search for some documentation. I would just use the commands, which work (best) for your Pi. Also why is it a
2
and not a7
in your last command?Which of these commands works best for a Pi is probably depending on model, firmware, and maybe other things.