HDMI CEC and XBMC


98 posts   Page 3 of 4   1, 2, 3, 4
by grw » Tue Jun 26, 2012 3:20 pm
Hey, I have the same TV (Samsung UE40D5000), but it doesn't detect the RPi as a CEC device..

Do I have to plug it into a certain HDMI port? I thought I tried all of them. Anynet+ is definitely enabled in the config, but when I open the tools menu and search for devices it just says 'No Devices Found'
Posts: 2
Joined: Tue Jun 26, 2012 3:19 pm
by Max » Tue Jun 26, 2012 4:02 pm
grw wrote:Hey, I have the same TV (Samsung UE40D5000), but it doesn't detect the RPi as a CEC device..

Do I have to plug it into a certain HDMI port? I thought I tried all of them. Anynet+ is definitely enabled in the config, but when I open the tools menu and search for devices it just says 'No Devices Found'


Perhaps your cable is the problem (cec pin may not be connected)?

Am using HDMI-2 and it detects the Pi fine in "tools" -> "anynet", even when XMBC is not loaded:

Image
by rpi2000 » Tue Jun 26, 2012 8:54 pm
Okay, one step further:

If I use another cable AND disconnect all other devices from HDMI ports (doesn't matter whether they are turned on or not) the TV finds a CEC device at least (called: "player").

But now: if I want to connect to this Anynet+ device it says. "device not connected. check and try again" Any ideas?
Posts: 2
Joined: Sun Jun 24, 2012 8:26 am
by harmjan » Sun Jul 01, 2012 8:06 pm
I have managed to create a rpi-cecd compatible with the Samsung (e.g. pause/play/stop working)
Check: http://forum.stmlabs.com/showthread.php?tid=443&page=10
Posts: 1
Joined: Sun Jul 01, 2012 8:04 pm
by precious_pony » Mon Jul 02, 2012 1:07 am
I have managed to create a rpi-cecd compatible with the Samsung (e.g. pause/play/stop working)
Check: http://forum.stmlabs.com/showthread.php?tid=443&page=10


This is excellent news. Any chance of an full SD image with the patch applied?
Posts: 28
Joined: Tue May 22, 2012 11:09 pm
by grw » Mon Jul 02, 2012 2:04 pm
Max wrote:
grw wrote:Hey, I have the same TV (Samsung UE40D5000), but it doesn't detect the RPi as a CEC device..

Do I have to plug it into a certain HDMI port? I thought I tried all of them. Anynet+ is definitely enabled in the config, but when I open the tools menu and search for devices it just says 'No Devices Found'


Perhaps your cable is the problem (cec pin may not be connected)?

Am using HDMI-2 and it detects the Pi fine in "tools" -> "anynet", even when XMBC is not loaded:

Image


Yep, bought a new cable and it works now. Thanks everyone!
Posts: 2
Joined: Tue Jun 26, 2012 3:19 pm
by joeka » Thu Jul 05, 2012 7:38 pm
olajep wrote:I've written a quick hack which enables me to control OpenElec/XBMC with a TV remote control.


Thank you! Works on arch.
Posts: 6
Joined: Tue Jul 03, 2012 9:12 am
by Paul Webster » Fri Jul 06, 2012 6:43 pm
Nice update floating around ....
No longer using http to talk to XBMC (using UDP instead) meaning no need to remember to enable the built-in web server) and this also external key mapping making it easier to tailor.
User avatar
Posts: 447
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
by sbuhaian » Sun Jul 08, 2012 7:55 am
From ashwinkp.

"You might be interested in this managed to get 5 basic keys working for me. read more
https://github.com/olajep/rpi-cecd/issues/7

Not sure if there is any special setting required to be able to use navigation keys.
Without navigation working i do not think its if much use :( "

Thanks ashwinkp
https://www.youtube.com/watch?v=YqIHh1bMxJI
Posts: 13
Joined: Mon Mar 12, 2012 12:52 pm
by Coxeroni » Fri Jul 20, 2012 6:23 pm
@Paul Webster:

Great stuff Paul! Made cec work like a charm with raspbian on my Samsung TV. Thank you very much.
Posts: 7
Joined: Fri Jul 20, 2012 6:18 pm
by BigEndian » Tue Jul 24, 2012 7:43 pm
Thank you for the great work, it works like a charm with Raspbian and XBMC compiled from source. Now I am looking for a way to execute custom commands by pressing unused buttons. For example the "RED" Button for executing XBMC.

Background: I want to use Raspbian for a few more things than just XBMC so it would be nice to start it on demand via pressing a button on the remote control.

Is there any way to achieve that?
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany
by worm » Thu Jul 26, 2012 10:31 pm
Can't get this to work with my Sony TV. Seems to detect the Pi ok, and there's an entry in the rpi-cecd.log

Code: Select all
cec_callback: debug: reason=0x0002, length=0x02, retVal=0x00, initiator=0x0, follower=0x4, opcode=0x8f, operand1=0x0, operand2=0x0
cec_callback: received power status query
cec_callback: sent powerstatus on
cec_callback: debug: reason=0x0002, length=0x04, retVal=0x00, initiator=0x0, follower=0xf, opcode=0x86, operand1=0x10, operand2=0x0
SetStreamPath: reason=0x0002, length=0x04, retVal=0x00, initiator=0x0, follower=0xf, opcode=0x86, operand1=0x10, operand2=0x0
cec_callback: debug: reason=0x0002, length=0x04, retVal=0x00, initiator=0x0, follower=0x4, opcode=0x0, operand1=0x8e, operand2=0x0
cec_callback: unknown event: reason=0x0002, length=0x04, retVal=0x00, initiator=0x0, follower=0x4, opcode=0x0, operand1=0x8e, operand2=0x0


But no keys on the remote seem to do anything. Maybe I need a more fancy remote?
Posts: 32
Joined: Wed Jul 11, 2012 12:31 pm
by Penetratore » Tue Jul 31, 2012 1:09 pm
so what XBMC compilation works with CEC on samsung TV ?

Please paste a link if possible.
Posts: 31
Joined: Thu Jul 26, 2012 8:33 pm
by nadnerb » Wed Aug 01, 2012 10:05 am
http://www.raspbmc.com works with CEC out of the box.
Not all buttons are working correctly, but Play, Pause, Stop, Back etc work ok on my Samsung and also LG TV.

Raspbmc RC4 is due for release any day soon and this should have better CEC support.
User avatar
Posts: 175
Joined: Sun May 13, 2012 11:22 am
by IsSuE » Wed Aug 01, 2012 10:12 am
openelec works fine for me with a LG TV
Posts: 11
Joined: Tue Jun 05, 2012 10:56 am
by Malard » Fri Aug 03, 2012 8:08 pm
This has been fixed fully now, libCEC supports the r-pi and so all the quirks for the various TV vendors are now supported. Enjoy for Pulse-Eight!
Posts: 3
Joined: Fri Aug 03, 2012 8:07 pm
by tpires » Fri Aug 03, 2012 10:45 pm
Tried today on my Sony Bravia and it worked flawless! Menu, info, return, play, pause, stop, fw, rw, directionals.

It's an excellent feature!
_____________________
Tiago Pires
Geek for a day - http://tpires.pt
User avatar
Posts: 24
Joined: Mon May 21, 2012 6:42 pm
Location: Águeda, Portugal
by Penetratore » Wed Aug 15, 2012 6:13 am
When powering up the RPI the TV starts also and it switched to the hdmi where the RPi is pluged in.
For me this is not realy comfortable and I think the CEC commands are not properly defined.
I don`t have the same situation when starting AV-amplituner althought it is also connected with CEC.

Is there a way to fix it?
Posts: 31
Joined: Thu Jul 26, 2012 8:33 pm
by LetHopeItsSnowing » Wed Aug 15, 2012 7:52 am
Penetratore wrote:so what XBMC compilation works with CEC on samsung TV ?

Please paste a link if possible.


I use Raspbmc with my samsung TV and CEC (or anynet as samsung call it) works perfectly.
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"
User avatar
Posts: 212
Joined: Sat May 26, 2012 6:40 am
Location: UK
by Paul Webster » Wed Aug 15, 2012 10:25 am
Penetratore wrote:When powering up the RPI the TV starts also and it switched to the hdmi where the RPi is pluged in.
For me this is not realy comfortable and I think the CEC commands are not properly defined.
I don`t have the same situation when starting AV-amplituner althought it is also connected with CEC.

Is there a way to fix it?


I am away from my XBMC for a while - but assuming that you are using a build of XBMC that has Pulse8 libCEC installed (e.g. raspbmc RC4) then you should be able to configure this behaviour.

From the libCEC FAQ:

Where can I find the CEC adapter's settings in XBMC? Go to System -> Input -> Peripherals -> Pulse-Eight CEC Adapter.
What's the meaning of the CEC adapter's settings in XBMC?
Enabled: use the CEC adapter within XBMC. Default: Enabled.
HDMI port number: the HDMI port number that you connected the CEC adapter to on your TV or AVR.
Default: 1.
Connected to HDMI device: the logical address of the HDMI device that you connected the CEC adapter to. 0 for TV, 5 for an AVR.
Default: 0.
Use the TV's language setting: requests the GUI language of the TV and tries to set the same language in XBMC when enabled.
Default: enabled.
Power on the TV when starting XBMC: sends a "power on" command to the TV when starting XBMC.
Default: enabled.
Power off devices when stopping XBMC: sends a "standby/power off" command to all devices when stopping XBMC. When this is disabled, an "inactive source" command will be sent instead.
Default: enabled.
Put devices in standby mode when activating screensaver: sends a "standby/power off" command to all devices when the screensaver becomes active, and wakes up the TV when the screensaver is deactivated.
Default: enabled.
Put this PC in standby mode when the TV is switched off: put the PC in standby mode when the TV is put in standby mode.
Default: enabled.
Port: the path to the COM port that is used to communicate with the CEC adapter. Only needed on platforms on which autodetection isn't working (e.g. Ubuntu Hardy).
Default: [empty]
User avatar
Posts: 447
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
by Penetratore » Fri Aug 17, 2012 10:09 am
I played a little bit with this setup but without any effect.

Which option is responsible for this behaviour (automatic "source" switch after RPI is lunched) ?
Posts: 31
Joined: Thu Jul 26, 2012 8:33 pm
by Paul Webster » Fri Aug 17, 2012 10:41 am
First step I would try would be to disable CEC in XBMC and see what happens. If the doesn't change the behaviour then I suspect that the other settings will not work either. There is a similar report in the RaspBMC forum - so adding to that one might get more traction.
I presume that the first switch to the TV is done by the RPi firmware rather than XBMC.
User avatar
Posts: 447
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
by welshblob » Fri Aug 17, 2012 12:07 pm
Paul Webster wrote:I presume that the first switch to the TV is done by the RPi firmware rather than XBMC.


I get that impression as well as it happens far too quickly to have even started booting the OS yet. Fortunately I have the option to disable it from the TV side so I don't come home to a TV that has magically turned itself on whilst I've been out (assuming either the Pi is rebooting itself or raspbmc has crashed and respawned and turned the TV on).

All my controls are working great on my Sony Bravia. I just need to understand whether there is some more config I can do to add a few other buttons. Some say these can be added to one of the xml config files. Am I correct to assume the device itself, xbmc in this case, determines what buttons are mapped from the main remote and these should be configurable rather than hard coded?

Rob
Posts: 131
Joined: Sat Jan 21, 2012 9:31 am
by dom » Fri Aug 17, 2012 12:34 pm
I've added a config.txt option:
hdmi_ignore_cec_init=1

which will avoid senting the initail active source cec message (the one that brings TV out of standby and onto correct channel).

I'll push out the firmware this evening.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4108
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by welshblob » Fri Aug 17, 2012 2:03 pm
dom wrote:I've added a config.txt option:
hdmi_ignore_cec_init=1

which will avoid senting the initail active source cec message (the one that brings TV out of standby and onto correct channel).

I'll push out the firmware this evening.


Cheers Dom
Posts: 131
Joined: Sat Jan 21, 2012 9:31 am