Closed spectrokid closed 7 years ago
the firmware is rejecting vc_cec_set_logical_address(E)
for some reason. perhaps @popcornmix has an idea why? haven't seen that happening for address E before
Same issue for me (...address(E) also shows up in my logs: #186
Ping, just hit this same issue.
voltagex@kiwi:/opt/vc/bin$ cec-client -i
libCEC version: 3.1.0, compiled on Linux-4.1.17-v7+ ... , features: P8_USB, DRM, P8_detect, randr, RPi
Upgraded to 4.4.19-v7+ and it worked. I'm going to guess that the libraries/headers I built against were "too new" for the rest of the system.
Nope:`` sudo cec-client -i
libCEC version: 3.1.0, git revision: libcec-3.1.0+25-62b8520, compiled on Sat 10 Sep 13:21:22 UTC 2016 by pi@raspberrypi on Linux 4.4.20-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi`
Still getting same error:
ERROR: [ 9060] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
@voltagex : would you be willing to dropbox me a complete drive image of your Raspberry? This issue has been bugging me for 6 months now...
I'm also running in the same issue ...
libCEC version: 3.1.0, git revision: libcec-3.1.0+25-62b8520, compiled on Sat 8 Oct 10:25:51 UTC 2016 by pi@raspberrypi on Linux 4.4.13-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
Can anyone help?
Yeah, what does cec-client -s say?
cec-client -s opening a connection to the CEC adapter... DEBUG: [ 81] Broadcast (F): osd name set to 'Broadcast' DEBUG: [ 82] InitHostCEC - vchiq_initialise succeeded DEBUG: [ 82] InitHostCEC - vchi_initialise succeeded DEBUG: [ 82] InitHostCEC - vchi_connect succeeded ERROR: [ 83] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8) ERROR: [ 83] Open - vc_cec could not be initialised ERROR: [ 83] could not open a connection (try 1) DEBUG: [ 1084] InitHostCEC - vchiq_initialise succeeded DEBUG: [ 1084] InitHostCEC - vchi_initialise succeeded DEBUG: [ 1084] InitHostCEC - vchi_connect succeeded ERROR: [ 1085] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8) ERROR: [ 1085] Open - vc_cec could not be initialised ERROR: [ 1085] could not open a connection (try 2)
Don't know if this is helpful:(
yup, same here:
pi@raspberrypi:~ $ cec-client -s
opening a connection to the CEC adapter...
DEBUG: [ 79] Broadcast (F): osd name set to 'Broadcast'
DEBUG: [ 79] InitHostCEC - vchiq_initialise succeeded
DEBUG: [ 79] InitHostCEC - vchi_initialise succeeded
DEBUG: [ 79] InitHostCEC - vchi_connect succeeded
ERROR: [ 80] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
ERROR: [ 80] Open - vc_cec could not be initialised
ERROR: [ 80] could not open a connection (try 1)
DEBUG: [ 1081] InitHostCEC - vchiq_initialise succeeded
DEBUG: [ 1081] InitHostCEC - vchi_initialise succeeded
DEBUG: [ 1081] InitHostCEC - vchi_connect succeeded
ERROR: [ 1081] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
Same here.... Same output as pantomicio.
My output of cec-client -i
is:
pi@pithy:/opt/vc/bin$ cec-client -i
libCEC version: 3.1.0, git revision: libcec-3.1.0+25-62b8520, compiled on Fri Oct 14 17:58:22 UTC 2016 by pi@pithy on Linux 4.4.21-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi
pi@pithy:/opt/vc/bin$
I suspect you all need to do a kernel+firmware upgrade.
Nope, this was right after an rpi-update followed by an apt-get upgrade.
I cannot reproduce this when downloading the latest Raspbian Jessie from https://www.raspberrypi.org/downloads/raspbian/ and following the instructions from https://github.com/Pulse-Eight/libcec/blob/master/README.md to the letter.
Perhaps you're trying to use cec-client while another program (Kodi?) is using it, which won't work. As this doesn't happen when using a clean installation and following the instructions, I'm closing this issue.
Right, let's re-open this one. Can one of you who's having this issue try to compile it with commit https://github.com/Pulse-Eight/libcec/commit/9ddb93b91a9e5dc7d89cccd6c593c64cf57a6d92 reverted and report back.
@MilhouseVH was kind enough to do an openelec build without 9ddb93b in: http://milhouse.libreelec.tv/builds/testing/RPi2/LibreELEC-RPi2.arm-8.0-Milhouse-20161018174530-%231018y-gdc3b078.tar
LibreELEC, but close enough... :smile:
I'm a complete newby at Git, so I don't know how to do this automatically. I went through the source and removed the offending lines by hand. I (believe it or not) got it to compile, but when I ran the client, I got precisely the same eror message as before. All this on Raspbian Jessie
Ok, the plot is thickening. I had to buy a new memory card so I bought one with Raspbian preinstalled. From a fresh install, I got it to work. One thing I thought about is that I configured it to start a graphical desktop, where I previously was set up to start in CLI. Could this make the difference?
I did get these compilation warnings:
[ 21%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.cpp.o In file included from /home/pi/libcec/src/libcec/adapter/RPi/RPiCECAdapterCommunication.cpp:37:0: /home/pi/libcec/src/libcec/adapter/RPi/RPiCECAdapterCommunication.h: In constructor ‘CEC::CRPiCECAdapterCommunication::CRPiCECAdapterCommunication(CEC::IAdapterCommunicationCallback*)’: /home/pi/libcec/src/libcec/adapter/RPi/RPiCECAdapterCommunication.h:118:35: warning: ‘CEC::CRPiCECAdapterCommunication::m_bDisableCallbacks’ will be initialized after [-Wreorder] bool m_bDisableCallbacks; ^ /home/pi/libcec/src/libcec/adapter/RPi/RPiCECAdapterCommunication.h:105:10: warning: ‘bool CEC::CRPiCECAdapterCommunication::m_bInitialised’ [-Wreorder] bool m_bInitialised; /**< true when the connection is initialised, false otherwise */ ^ /home/pi/libcec/src/libcec/adapter/RPi/RPiCECAdapterCommunication.cpp:68:1: warning: when initialized here [-Wreorder] CRPiCECAdapterCommunication::CRPiCECAdapterCommunication(IAdapterCommunicationCallback *callback) : ^ [ 24%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterMessage.cpp.o
I'm having the same issue here. Vanilla Raspbian cli version, libcec compiled from master.
To add some more information, the Pi+libcec work just fine with an Onkyo receiver but not with a Denon AVR-X4000.
Update: Forcing the Pi to use HDMI for audio did the trick, and it just works. Interesting the different behaviours depending on the receiver...
Having the same issue on Jessie on a Pi B model; libCEC version: 4.0.1, git revision: libcec-4.0.1, compiled on Wed 4 Jan 12:49:31 UTC 2017 by pi@raspberrypi-tv on Linux 4.4.38+ (armv6l), features: P8_USB, DRM, P8_detect, randr, RPi
@chrisbward have you tried to force HDMI output via raspi-config
? I did so and the problem went away.
also done that - this is from a blank Jessie install, however my kernel was at 4.1.x before - tried an rpi-update and then make install on-top of the original
I tried this with a clean installation, on a blank SD card, a while ago and couldn't reproduce it.
The symptoms suggest that the kernel checks for HPD of the connected sink and will return an error if it doesn't detect this. I've seen other hardware that does similar things, but when I spoke to the engineer who works on the Pi's firmware yesterday, he told me that he didn't think that it was the case for the Pi, but wasn't sure. He said that he'll take a look at it once he's back from travelling.
It's not a problem with libCEC or something that libCEC can address. Just keeping this ticket open for now, until I've heard back about the firmware.
I will wipe the SD and follow the instructions again; https://github.com/Pulse-Eight/libcec/blob/master/docs/README.raspberrypi.md
okay... seems to be working now...!
biggest differences in this instance;
thanks guys, will start testing now
I was able to fix this problem for myself by doing: tvservice --off
. This will power down the HDMI and open it up for connections again if something you can't identify has taken over.
Thanks sterilng, "tvservice - off" was also my solution. I have summarized the most important here. Control your LG Smart TV with Linux http://www.pedaltreter.at/jsan/lgtv/LG_Smart_TV_CEC_en.html
I've added a warning in libCEC, when it detects this. Thanks
On raspberry II , I followed the compile instructions (fresh raspbian copy) and didn't get any error messages during compile/make. Version:
result