trejan wrote: ↑
Wed Apr 08, 2020 4:57 pm
procount wrote: ↑
Wed Apr 08, 2020 4:03 pm
Can you just set 2 entries in cron, one for 7am, the other for 7pm, that respectively call "tvservice -p" and "tvservice -o" ?
It is better to use "vcgencmd display_power 0/1" as that only turns on/off the HDMI PHY. Using tvservice will shutdown the entire pipeline and you need to refresh the display when turning it back on or it'll only show a black screen.
Also note that depending on your monitors brand, model and OSD settings. The vcgencmd display_power 1
command may not wake the monitor from standby.
In my case issuing vcgencmd display_power 0
shuts off the HDMI output as expected. Then the monitor displays a "No Signal" banner for about 20 min. then goes into standby. So when in standby and after issuing vcgencmd display_power 1
, I must also press the physical power button on the monitor or remote.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.