How to enable HDMI-CEC

Post Reply
enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

How to enable HDMI-CEC

Unread post by enflamed » Thu Jun 13, 2019 4:37 am

Hi guys,

I am looking how to enable HDMI-CEC on Odroid N2 using freshly installed ubuntu-18.04.2-4.9-mate-odroid-n2-20190325.
In particular, my device is connected to an LG C8 OLED tv and I would like to read basic remote button presses (e.g. volume up, down) on the N2.
Does anyone have any experience with this?

Thanks!

deuteragenie
Posts: 23
Joined: Fri Jun 07, 2019 4:56 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: How to enable HDMI-CEC

Unread post by deuteragenie » Thu Jun 13, 2019 4:46 am

Look at cec-utils / cec-client

enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How to enable HDMI-CEC

Unread post by enflamed » Thu Jun 13, 2019 4:59 am

I have installed cec-utils using
sudo apt-get install cec-utils

However I have 'found devices: NONE' when running
cec-client -l

Not sure if the issue with my HDMI cable or the actual installation... Is there any special procedure I should follow with the N2?

deuteragenie
Posts: 23
Joined: Fri Jun 07, 2019 4:56 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: How to enable HDMI-CEC

Unread post by deuteragenie » Thu Jun 13, 2019 4:40 pm

Interesting. I thought it should work out of the box. No clue why this is not the case.
Just to be sure... your HDMI cable is connected to ... your TV ?
And ... HDMI-CEC is activated in your TV: https://www.tomsguide.com/us/lg-tv-sett ... 24-14.html ?

enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How to enable HDMI-CEC

Unread post by enflamed » Thu Jun 13, 2019 9:14 pm

Yes, I have an HDMI cable going directly to my TV HDMI input port (1).
The TV supports CEC and it is enabled properly.

Reading different forums, sometimes it might be the issue that not all ports on the TV support CEC, so I might try to play around with that.
Also, apparently some HDMI cables do not support CEC, so I might need to invest in buying a new cable.

However, before I do that just wanted to check with the forum (to avoid unnecessary work / additional costs) if indeed CEC should work out of the box or if there is a special configuration for the N2 that I am missing.

nurikodd
Posts: 17
Joined: Mon Apr 01, 2019 1:11 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: How to enable HDMI-CEC

Unread post by nurikodd » Thu Jun 13, 2019 10:18 pm

same with my n2+ubuntu minimal. however when I launch CoreELEC everything works out of the box on same hardware, so this is 100% software issue

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

Re: How to enable HDMI-CEC

Unread post by odroid » Fri Jun 14, 2019 12:15 pm

We will check the CEC functionality with Kodi on our minimal Ubuntu image next week.

enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How to enable HDMI-CEC

Unread post by enflamed » Thu Jun 27, 2019 7:32 pm

Any success with the cec functionality?

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

Re: How to enable HDMI-CEC

Unread post by odroid » Fri Jun 28, 2019 9:18 am

Sorry.
We've spent our resources to fix the Android CEC issues and it has been done today. viewtopic.php?f=178&t=33856

We will improve the Linux/Ubuntu Kernel drivers to support the Kodi more effectively for a couple of week.

mmmm12mm
Posts: 2
Joined: Sun Jul 14, 2019 4:06 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to enable HDMI-CEC

Unread post by mmmm12mm » Sun Jul 14, 2019 4:21 am

I have similar issue.
TV LG CEC capable,
Working configuration Raspberry PI -> HDMI cable -> TV LG.
Works cec-client, cec in kodi

I have switched RPI to Odroid n2,
Fresh ubuntu installation with Odroid n2.
CEC is not working (both in cec-client & cec in kodi)

Code: Select all

odroid@odroid:~$ cec-client -l
libCEC version: 4.0.2, compiled on Linux-4.4.0-142-generic ... , features: P8_USB, DRM, P8_detect, randr
Found devices: NONE

dmesg:

Code: Select all

odroid@odroid:~$ sudo dmesg |grep -i cec  | head -30
[    4.589454] cectx ff80023c.aocec: cec driver date:Ver 2019/1/7
[    4.596749] input: cec_input as /devices/virtual/input/input0
[    4.602342] cectx ff80023c.aocec: not find 'port_num'
[    4.607363] cectx ff80023c.aocec: using cec:1
[    4.611874] cectx ff80023c.aocec: no hdmirx regs
[    4.616606] cectx ff80023c.aocec: no hhi regs
[    4.621221] cectx ff80023c.aocec: not find 'output'
[    4.626146] cec: wake up flag:0
[    4.630872] cectx ff80023c.aocec: irq cnt:2
[    4.633899] cectx ff80023c.aocec: wakeup_reason:0x0
[    4.638845] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[    4.644337] cectx ff80023c.aocec: aml_cec_probe success end
[   15.768286] cectx ff80023c.aocec: bad iniator with self:CEC RX len 5: 0f 87 00 e0 91
[   30.767698] cectx ff80023c.aocec: bad iniator with self:CEC RX len 5: 0f 87 00 e0 91
[   45.766972] cectx ff80023c.aocec: bad iniator with self:CEC RX len 5: 0f 87 00 e0 91
Any suggestion what am I doing wrong?

User avatar
meveric
Posts: 10544
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 17 times
Been thanked: 156 times
Contact:

Re: How to enable HDMI-CEC

Unread post by meveric » Sun Jul 14, 2019 7:24 am

hmm that's odd.
For me CEC worked right out of the box.
I haven't had to change or configure anything on my Debian images (especially with the new Debian Buster image).
In fact the default settings from Kodi was a pain in the ass, as every time I exited Kodi, which I did quite often when I tested hardware decoding, Kodi tuned off my TV as that's the default setting of Kodi.
It was one of the things I had to deactivate as it's quite annoying.
But Kodi and CEC is working fine for me, just by using default Kernel and CEC drivers.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
rooted
Posts: 6792
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 230 times
Been thanked: 42 times
Contact:

Re: How to enable HDMI-CEC

Unread post by rooted » Sun Jul 14, 2019 8:31 am

Perhaps it's a permission issue in /dev?

phaseshifter
Posts: 3504
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 40 times
Been thanked: 43 times
Contact:

Re: How to enable HDMI-CEC

Unread post by phaseshifter » Sun Jul 14, 2019 8:57 am

try just running one input to the screen only so N-2====>>screen

dont have any other devices attached run the N-2 only..
also one hdmi input may have a priority over the others ..
if you have the manual for the set this may be of help..if it tells screen details of resolutions and hdmi input data..
or browse for the tech manual via the web...
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

phaseshifter
Posts: 3504
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 40 times
Been thanked: 43 times
Contact:

Re: How to enable HDMI-CEC

Unread post by phaseshifter » Sun Jul 14, 2019 9:01 am

i have seen this or similar issues before....
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How to enable HDMI-CEC

Unread post by enflamed » Sun Jul 14, 2019 6:43 pm

its software issue on ubuntu; I have downloaded the android image and CEC worked straight away.
hoping new ubundu image is coming soon with a fix; i really am waiting to just use kodi with CEC on my N2...

mmmm12mm
Posts: 2
Joined: Sun Jul 14, 2019 4:06 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to enable HDMI-CEC

Unread post by mmmm12mm » Tue Jul 16, 2019 5:03 am

I have only one hdmi device connected (TV)
With RPI setup works, so TV & HDMI cable is fine.
RPI cec-client output:

Code: Select all

libCEC version: 4.0.4, git revision: libcec-4.0.4, compiled on Fri Feb  1 01:48:47 UTC 2019 by root@hostname: Name or service not known on Linux 4.15.0-44-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
Found devices: 1

device:              1
com port:            RPI
vendor id:           2708
product id:          1001
firmware version:    1
type:                Raspberry Pi
I need something more to debug.
How to increase debug level and/or where are driver source files?

enflamed
Posts: 8
Joined: Thu Jun 13, 2019 4:27 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How to enable HDMI-CEC

Unread post by enflamed » Tue Aug 20, 2019 11:29 pm

With the release of new OS images, I was wondering if anyone got to make the HDMI-CEC to work?

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: How to enable HDMI-CEC

Unread post by OverSun » Wed Aug 21, 2019 1:02 am

cec is broken on the latest kernel, but this is known and is going to be fixed

wallyz21
Posts: 104
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 9 times
Been thanked: 12 times
Contact:

Re: How to enable HDMI-CEC

Unread post by wallyz21 » Wed Aug 21, 2019 11:46 am

A few weeks ago HDMI-CEC was working with my Ubuntu N2 Mate Desktop install.

I know it was working because I was going to implement the N2 button project mentioned in the wiki until I discovered the N2 was turning on whenever I turned on my Playstation IV. They are both plugged into the same receiver/amp.

However a few kernel updates ago CEC stopped working.

So I suspect software as well!

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 7 guests