Jump to content

HDMI CEC - switch your TV on and off

Recommended Posts

One would think that a media center / video game console can handle HDMI CEC. In other words the VCS is supposed to switch your TV on and off at startup and shutdown. I could not find any CEC-functionality and I assume it's not built in. So I bought an external HDMI-CEC adapter from here (yes...it is expensive) installed the cec-utils package in Linux Mint and realized that it is a bit more complicated than I thought ?


The adapter is made for Kodi, but I wanted my VCS to switch the TV at startup and shutdown. So I created two scripts in my home directory (subfolder scripts)...sh-files are attached.

A start_and_stop.service file I put in /etc/systemd/system...file is attached.

Then I activated the service as described here and here.


Now my VCS switches the TV on (HDMI 1) and switches it off automatically...and I can forget about my TV remote ?

TV-off.sh TV-on.sh start_and_stop.service

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...