Post subject: RaspberryPI cec-client with Samsung TV
Player (71)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Hey folks, I'm trying to poke around my RaspberryPI which is connected to a Samsung UE46ES6305U TV by HDMI. The RaspberryPI is installed with Xbian and libcec. What I'm trying to do is to use the RaspberryPI to control the TV as much as possible. Right now for example I can use the cec-client to turn the TV on and off by evoking the commands
echo 'on 0' | cec-client -s
echo 'standby 0' | cec-client -s
or to switch between the HDMI sources by
echo "tx 4F 82 10 00" | cec-client -s
echo "tx 4F 82 20 00" | cec-client -s
echo "tx 4F 82 30 00" | cec-client -s
What I have been unsuccessful about is the ability to change between other AV sources, such as SCART and component for example. Also I've tried to change the volume up and down without luck. Did not get mute to work either. I've tried the cec-o-matic site but did not manage to have anything working from those codes, probably because I did something wrong by my self. Could you guys give a hint (or full solution) on how to get on track with getting more control through cec? For example vol+ / vol-, change between other sources, left, right, up, down, enter, menu etc. If possible I would like most functions from my normal remote control to be working through cec-client. Thanks!
Post subject: Perhaps Raspbmc distribution has examples?
Moderator, Senior Ambassador, Experienced player (908)
Joined: 9/14/2008
Posts: 1014
Hello, fellow Raspberry Pi owner! I don't have a compatible TV to test this with so I can't directly help you, but you might want to take a look at the Raspbmc distribution which has added CEC support inside of XBMC. There might be some examples there which are of use to you. I use Raspbmc as my primary OS when I'm not using the GPIO pins for TASBot purposes. I need to get another Pi... :) Best of luck and sorry I can't be of more help, A.C. ******
I was laid off in May 2023 and became too ill to work this year and could use support via Patreon or onetime donations as work on TASBot Re: and TASBot HD is stalled. I'm dwangoAC, TASVideos Senior Ambassador and BDFL of the TASBot community; when healthy, I post TAS content on YouTube.com/dwangoAC based on livestreams from Twitch.tv/dwangoAC.
Editor, Player (69)
Joined: 1/18/2008
Posts: 663
Those ES series Samsung TVs look nice. What kind of control are you using? What is the use case? I hate CEC. I work with this stuff everyday. I always turn CEC off and use other methods. There is no guarantee of non-HDMI input capability with CEC. Likely you cannot use CEC to change these inputs. Volume on TV is not supported by CEC spec and isn't implemented by TV vendors. You can do volume on a receiver though. You may be able to mimic an AVR and send volume commands somehow... was reading that could work but I never dealt with it. However, you may be able to use CEC to control power, and connect to this model via IP to change sources (cannot power on via IP). You could also potentially use EX-Link if you can't figure out the IP protocol. Neither is particularly well documented nor supported. Worst case, you can do an IR driver via GPIO.
true on twitch - lsnes windows builds 20230425 - the date this site is buried
Player (71)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Thanks for the input guys! dwangoAC - I'll check out the cec features of XBMC if something can be used perhaps. True - The original remote control that ships with the TV (or at least with mine) is AA59-00581A if thats what you mean. If you mean the control from the RaspberryPI it is just the HDMI output I use. Nothing between that and the TV. The case is that I want as many features as possible available through my RaspberryPI via SSH (preferably). When you said it was not supported to control the internal volume of the TV via HDMI I based it on this, which I might have misunderstood: "System Audio Control allows the volume of an AV receiver, integrated amplifier or pre-amplifier to be controlled using any remote control from a suitably equipped device(s) in the system". I thought that the integrated amplifier suggested the one in the TV. The power control through cec is already fixed. I can turn the TV on/off and switch HDMI source without problems. How possibly do I connect to the TV via IP? Did not portscan or check connections on it yet. I only know that I can use Samsung's app for my smart phone in order to control it fully. Yet I don't want to reach into my pocket every time I want to control the TV when I already have my hands on the keyboard. What an unnecessary movement of the arm when the hands are perfectly comfy as they are at the keyboard. ;) EX-Link looks a bit interesting. Just need to solder a cable (unless it is possible to buy them from somewhere) and then figure out how to control the TV via that. I've been thinking of an IR-blaster as well, but right now I want to see where I can get without using it.
Editor, Player (69)
Joined: 1/18/2008
Posts: 663
Remote, yes, you said "I would like most functions from my normal remote control to be working through cec-client." I wanted to know what kind of remote you were using / how you were integrating it using cec-client. I don't care about the Samsung IR remote. I believe your TV has Bluetooth capability but I don't know what it would take to emulate a Samsung Bluetooth remote, haven't gone there at all. "Integrated amplifier" is not the TV built in amp, no. It is always an external AVR or pre. But there is a way to act like an AVR sending a volume command back to a TV which sometimes works, just no guarantee. You can't be type 1 though bascally. Try being the type that an AVR is "The power control through cec is already fixed" - what? you said it was working, did it break? Re: connect from IP, that is an exercise for you. I haven't done it yet. You cannot power on over IP though so CEC power would still be helpful for that. Wireshark and look at protocol... I don't know if there are discrete input commands via IP control though. There probably is but would require investigation or google.
true on twitch - lsnes windows builds 20230425 - the date this site is buried