bramp / libcec-daemon

A Linux daemon for connecting libcec to uinput. That is, using your TV to control your PC!
BSD 2-Clause "Simplified" License
65 stars 26 forks source link

Running on a Pi #1

Closed bramp closed 11 years ago

bramp commented 11 years ago

Bug reported by Zoolander06 (on bramp.net)

root@XBian:~/libcec-daemon# ./libcec-daemon –list
INFO – Opened /dev/uinput
INFO – Created uinput device
[0] port:RPI path:Raspberry Pi
Failed to open

I’ve tried with -v option, it does that (4 times) :

DEBUG – Main::onCecLogMessage(1167 [D]unregistering all CEC clients
)
DEBUG – Main::onCecLogMessage(1174 [D]Broadcast (F): osd name set to ‘Broadcast’
)
DEBUG – Main::onCecLogMessage(1178 [D]InitHostCEC – vchiq_initialise succeeded
)
DEBUG – Main::onCecLogMessage(1181 [D]InitHostCEC – vchi_initialise succeeded
)
DEBUG – Main::onCecLogMessage(1183 [D]InitHostCEC – vchi_connect succeeded
)
DEBUG – Main::onCecLogMessage(4512 [E]failed to release the previous LA
)
DEBUG – Main::onCecLogMessage(4516 [E]could not open a connection (try 1)

I think the line “failed to release the previous GA” is relevant, isn’t it ?

kuki21 commented 11 years ago

I have the same issue. 2.0.3 libcec is used.

eht16 commented 11 years ago

Same here :(.

eth0izzle commented 11 years ago

I managed to fix this by adding this:

else {
    cec->InitVideoStandalone();
}

to line 133 of src/libcec.cpp.

./libcec-daemon --list now gives:

INFO - Opened /dev/uinput
INFO - Created uinput device
[0] port:RPI path:Raspberry Pi
        TV@0x0 TV (Samsung)
        Playback 1@0x2000 linux PC (Unknown)

EDIT: just fired off a Pull Request :)

bramp commented 11 years ago

Looks good eth0izzle, thanks! I want to read up on this newer API, to understand what calling InitVideoStandalone does, but if all is well I will accept shortly.

bramp commented 11 years ago

Fixed by cb086865869402fdabe3b9142ea7e6ea3c699c1b