CEC HDMI Monitor (Check if Screen is On or Off + Turn On and Off Commands) - Android | Linux

NOTE: From v2 R216 and earlier and v3 R301 and earlier, the following commands should be used instead:

Screen Off: /system/bin/am start -n com.microcontrollerbg.dsdcec/.dsdcec --es "ceccommand" "off"

Screen On: /system/bin/am start -n com.microcontrollerbg.dsdcec/.dsdcec --es "ceccommand" "on"

this cant be put on the same space i put dsd_cec-off, when i click save, i get an error. i have LG 49” and 65” commercial signage screens. they both turn off when there is not video and they power on when the connected pc powers up. i hopping this dsd_cec_off / on commands will work.

I found a simple, yet effective solution. I use windows players and I just setup task scheduler to execute 4 commands via batch scripts

as Dan suggested in an old post…recommending the use of RTC option in the BIOS of the computer to wake the pc up from shutdown

not all computers have proper RTC options in the BIOS. Lenovo mini computers like the M73 has a better RTC options to power on the computer from shutdown with flexibility to set days and times

I have Asus EB1033 mini pcs and they have an ugly RTC options so i have setup batch scripts that does the job in windows 10.

  1. script turns off the screen (TV will display the regular NO INPUT message)

  2. script hibernates the computer

  3. script restarts the computer (using task scheduler)

NOTE: Once the computer is put to sleep / hibernates, you need to set task scheduler to wakeup the pc with another batch script…but, when the pc wakes up from sleep, it will stay blank until you touch the mouse or keyboard to see the desktop again….this is why I use a restart script to wakeup reboot the pc (no need for human interruption)

  1. the 4th script is just to rest the wifi adapter because, in windows, the wifi mostly disconnect with a YELLOW ICON and you need to either reboot the pc or disable and re-enable the wifi adapter to get back online

i use a blank batch script to wakeup the Asus but then, i still need to touch the mouse / keyboard to get to the desktop regardless if xibo is still running. The Lenovo pc cant be awaken from sleep with task scheduler…i will dig deep into it. but the RTC in the bios does work perfect

My solution is only for those who use WINDOWS for xibo player