Read the statement by Michael Teeuw here.
Scheduling a blackscreen?
-
Your monitor should handle the cec-signal (Consumer Electronics Control).
I use very successfull the following crontrabStopp und reboot at 8 am
59 7 * * 1-5 sudo pm2 stop all >/dev/null 2>&1
0 8 * * 1-5 sudo reboot now >/dev/null 2>&129 9 * * 0,6 sudo pm2 stop all >/dev/null 2>&1
30 9 * * 0,6 sudo reboot now >/dev/null 2>&1Anschalten des Monitors Wochentags um 8 Uhr
turn on monitor weekdays at 8 am
0 8 * * 1-5 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1
Anschalten des Monitors am Wochenende um 9.30 Uhr
#turn on monitor on weekend at 9.30 am
30 9 * * 0,6 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1Ausschalten des Monitors täglich um 20.30 Uhr
#turn off monitor daily at 8.30 pm
30 20 * * * echo ‘standby 0’ | cec-client -s -d 1 >/dev/null 2>&1best regards Michael
-
When u use a RPI… use a relay for power if nothing helps. So you can set the time like described.
2nd possibility - use a Tasmota device and define rules.
-
@oberfragger STRONGLY recommended NEVER to power off pi as a solution instead of shutdown cleanly…
-
@sdetweil I agree. But - I said not turn off the RPI. I said- rurn of the monitor with the help of a relay!
-
@oberfragger ah… got it…