Turn on/off TV via HDMI CEC

Post Reply
Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Fri Mar 02, 2018 4:42 am

I'm thinking about buying this remote and I want to turn on my TV with it. Since my TV remote doesn't work(no CEC control if I don't turn on the Guide Menu) if I turn on something in the settings everytime when I need to control the Odroid(C2). The OS is Rasplex.

User avatar
odroid
Site Admin
Posts: 32362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by odroid » Fri Mar 02, 2018 9:55 am

Where is the Rasplex OS image for ODROID-C2?

Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Fri Mar 02, 2018 10:21 pm

odroid wrote:Where is the Rasplex OS image for ODROID-C2?
Here is the link. It has seperate Odroid C2 release.

User avatar
odroid
Site Admin
Posts: 32362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by odroid » Fri Mar 02, 2018 10:51 pm

I didn't know about the Rasplex. Thank you for the link.
I believe if the OS image included the libcec and cec-client, you can control your TV from C2.

Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Fri Mar 02, 2018 11:23 pm

odroid wrote:I didn't know about the Rasplex. Thank you for the link.
I believe if the OS image included the libcec and cec-client, you can control your TV from C2.
Thank you for the quick reply.

Yes, it includes all of them. But the problem is I can't controll the Odroid with the TV remote. It shows "Pulse Eight" CEC connected to the Odroid but nothing works, unless if I turn on the "Guide menu" this little remote shows up and everthing works fine.

BTW the TV is this.

User avatar
odroid
Site Admin
Posts: 32362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by odroid » Fri Mar 02, 2018 11:32 pm

What happens if you run "cec-client -l" command?

Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Fri Mar 02, 2018 11:43 pm

odroid wrote:What happens if you run "cec-client -l" command?

Code: Select all

OpenPHT-Embedded:~ # cec-client -l
libCEC version: 4.0.1, git revision: 7.90.005+1703-2a63fd1, compiled on Mon Feb 27 03:23:33 UTC 2017 by docker@652dd5c41880 on Linux 4.4.0-64-generic (x86_64), features: P8_USB, DRM, P8_detect, AOCEC
Found devices: 1

device:              1
com port:            AOCEC
vendor id:           0000
product id:          0000
firmware version:    5
type:                unknown

User avatar
odroid
Site Admin
Posts: 32362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by odroid » Sat Mar 03, 2018 7:30 am

Try to control TV power.
Turning your monitor off:

Code: Select all

$ echo 'standby 0' | cec-client -s -d 1
Turning your monitor on:

Code: Select all

$ echo 'on 0' | cec-client -s -d 1

Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Sat Mar 03, 2018 10:30 pm

odroid wrote:Try to control TV power.
Turning your monitor off:

Code: Select all

$ echo 'standby 0' | cec-client -s -d 1
Turning your monitor on:

Code: Select all

$ echo 'on 0' | cec-client -s -d 1
Monitor didn't turned off.

Code: Select all

OpenPHT-Embedded:~ # echo 'standby 0' | cec-client -s -d 1
opening a connection to the CEC adapter...
OpenPHT-Embedded:~ # echo 'on 0' | cec-client -s -d 1
opening a connection to the CEC adapter...

User avatar
odroid
Site Admin
Posts: 32362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by odroid » Sun Mar 04, 2018 12:29 am

I have no idea anymore since we have no such issue in our official Ubuntu OS image.
Report the issue to the author of Rasplex image.

Bootyrepe
Posts: 11
Joined: Fri Mar 02, 2018 4:18 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Turn on/off TV via HDMI CEC

Unread post by Bootyrepe » Sun Mar 04, 2018 4:26 am

odroid wrote:I have no idea anymore since we have no such issue in our official Ubuntu OS image.
Report the issue to the author of Rasplex image.
If I run turn off code on Odroid TV turns off.

Code: Select all

echo standby 0 | cec-client -s -d 1
But if I run turn on code TV doesn't turn ON. Just connecting to the CEC message on the terminal.

Code: Select all

echo 'on 0' | cec-client -s -d 1

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests