Android CEC Screen Power On/Off with DSDevices

Android CEC Screen Power On/Off with DSDevices

If you are using a CMS earlier than v3.x please use this link

This guide will take you through how to use the DSDevices DSCS9X and DSCS9 to control the attached TV/screen via HDMI-CEC using a v3.x or higher CMS.

Modern TVs and signage panels offer the HDMI-CEC standard to accept power on/off Events via the HDMI cable.

The DSDevices DSCS9X and DSCS9 offers a method to send those CEC control signals so that you can turn the screen on and off via Commands Scheduled in Xibo or built into Layouts.

Please note: If you are using a DSCS9 device which shipped prior to 1st Jan 2019, you will need to first install the DSDCEC app which is further detailed here: Player Setup

Xibo Setup

From the CMS, create and define Commands to turn the screen power On and Off.

  • Select Commands located under the Displays section of the main menu.

Create 2 commands to use:

Screen Off: dsd_cec_off Screen On: dsd_cec_on

  • Click Add Command:

Repeat for a Screen Off Command.

If you are using V2 R216 through to v3 R301, 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"


Allow time for the Player to download the new Command definition. You can see when it last connected on the Displays page. Once that date changes, it should have the new Commands defined.

You can now try sending an instant screen on/off command from the Displays page.

  • Use the row menu for a selected Display and select Send Command:

  • Pick Screen Off and then Save.

The screen should receive an XMR message and turn off.

Non-Docker installations must have XMR up and running to send an instant screen/on/off command!

The same Commands can also be Scheduled as an Event Type (these don’t require XMR to work):

As in the example image above, the selected Start Time would cause the screen to turn off at 18:30 for the selected Display Group. You could then use a Repeat to cause that to happen every day for example.

A similar Schedule could be defined to turn the screen back on again!

It is also possible to embed the Commands required into a Layout.

Simply add the Shell Command Widget to your Layout and choose the Commands you defined earlier.

When that particular Layout is shown, the screen power state will change accordingly.