Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] How to connect two Raspberry's to one TV and control them via CEC
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: How to connect two Raspberry's to one TV and control them via CEC
16th Dec, 2014, 09:51 AM
Post: #1
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
How to connect two Raspberry's to one TV and control them via CEC
Hi,

is it possible to connect two Raspberry Pi's to one TV via HDMI and control them alternatively via CEC?

For test purposes i want to connect a second Raspberry to my TV in living room. However, if both are connected, I can not control either the first nor the second one.

Btw, if only one of my Raspberry's is connected, control via CEC works very well.

Thanks for your help
Find all posts by this user
Quote this message in a reply
16th Dec, 2014, 03:42 PM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to connect two Raspberry's to one TV and control them via CEC
@Nachteule

of course, CEC allows 15+1 devices on one BUS (attached to one master(TV) device).

what you describe looks like very old (like 1y) bug which was making specifically RPI on CEC taking address of the other so effectively making CEC not working, but again, very long ago fixed.

before I had my 2x RPIs, I had connected to TV 2xRPI and 3ximx6 devices - 3 of them to HDMI in TV, into 4th hdmi was AVR attached and 2 more devices via AVR.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
16th Dec, 2014, 04:07 PM
Post: #3
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: How to connect two Raspberry's to one TV and control them via CEC
agreed with @mk01
I have 2 RPis connected via ONKYO AVR

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 12:12 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to connect two Raspberry's to one TV and control them via CEC
Hmm, so what can I do? I'm using XBian RC3 with all currently available updates - on the 1st on runs XBMC 13.2 conected to TV's HDMI3 Port, on the second one KODI 14.0 RC3 connected to TV's HDMI4 Port (both selfcompiled based on this tutorial https://github.com/xbianonpi/xbian/wiki/Building-XBian-packages). The TV is a one year old Grundig 42 VLE 922 BL
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 12:17 AM
Post: #5
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to connect two Raspberry's to one TV and control them via CEC
@Nachteule

and you also use libcec from XBian repos ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 01:46 AM
Post: #6
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to connect two Raspberry's to one TV and control them via CEC
yes, of course

Code:
root@kmxbilr ~ # dpkg -l  | grep cec
ii  xbian-package-cec                 1.1-1a                        armhf        cec for XBian.
root@kmxbilr /usr # dpkg -L xbian-package-cec
/.
/usr
/usr/local
/usr/local/include
/usr/local/include/libcec
/usr/local/include/libcec/cecc.h
/usr/local/include/libcec/cectypes.h
/usr/local/include/libcec/cecloader.h
/usr/local/include/libcec/cec.h
/usr/local/bin
/usr/local/bin/cec-client
/usr/local/lib
/usr/local/lib/libcec.so.2.0.1
/usr/local/lib/libcec.a
/usr/local/lib/libcec.la
/usr/local/lib/pkgconfig
/usr/local/lib/pkgconfig/libcec.pc
/usr/local/lib/libcec.so
/usr/local/lib/libcec.so.2
root@kmxbilr /usr # find -name libcec*
./local/include/libcec
./local/lib/pkgconfig/libcec.pc
./local/lib/libcec.so
./local/lib/libcec.so.2
./local/lib/libcec.a
./local/lib/libcec.la
./local/lib/libcec.so.2.0.1
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 06:24 PM
Post: #7
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to connect two Raspberry's to one TV and control them via CEC
@Nachteule

this is from May-2013.

all that kind of bugs have been solved for RPI early-2014.

Code:
root@rpi ~ # apt-cache policy xbian-package-cec
xbian-package-cec:
  Installed: 9.2.2.0-1-1416753800
  Candidate: 9.2.2.0-1-1416753800
  Version table:
*** 9.2.2.0-1-1416753800 0
        500 mirror://apt.xbian.org/mirror.txt/ stable/rpi-wheezy armhf Packages
        100 /var/lib/dpkg/status

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 11:53 PM
Post: #8
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to connect two Raspberry's to one TV and control them via CEC
Ah, I'm really confused which apt repository I have to use.

I always used "http://apt.xbian.org stable main", but this seems outdated.
Now I changed to "http://apt.xbian.org wheezy rpi-wheezy", and I can get new versions of xbian-package-cec and xbian-package-firmware.

But I get an key error
Code:
W: GPG-Fehler: http://apt.xbian.org wheezy Release: Die folgenden Signaturen waren ungültig: BADSIG 5D3294C2529968ED CurlyMo <development@xbian.org>
How can I fix this?
Code:
wget -O - http://apt.xbian.org/xbian.gpg.key | sudo apt-key add -
does'nt solve this.

But, I can see a tiny light at the end of the tunnel Rolleyes

Thany you for your help
Find all posts by this user
Quote this message in a reply
17th Dec, 2014, 11:57 PM
Post: #9
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to connect two Raspberry's to one TV and control them via CEC
there is no confusion. http://www.xbian.org/faq

apt.xbian.org stable main is needed minimum for xbian-package-repo update and that will handle correct sources automatically

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
19th Dec, 2014, 03:19 AM
Post: #10
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to connect two Raspberry's to one TV and control them via CEC
Sorry for my late response.

I've modified both apt folders and made all available updates on both Raspberry's and then -
It works perfect now

Thanks for your help
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 05:34 AM Powered By MyBB, © 2002-2025 MyBB Group.