Closed naps62 closed 7 months ago
Apparently changing the PKGBUILD
of libcec-rpi
to include -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib
seems to fix it on libcec's side (still testing Kodi)
can anyone confirm if this is an appropiate fix? in which case I guess the published pkgbuild is wrong (which I know is not this repo's responsibility)
If you want to build cec to use the firmware cec driver then those defines are needed: https://github.com/Pulse-Eight/libcec/blob/master/docs/README.raspberrypi.md
When using the linux driver for cec (i.e. using dtoverlay=vc4-kms-v3d
), those options aren't needed.
I'm not sure what your first sentence means, to be honest. I'm not very familiar with how these libraries work
Are you saying the PKGBUILD from libcec-rpi
is indeed wrong? (given that it's intended to target Raspberry Pi)
I think these are questions for Manjaro.
I'm just saying you can build libcec for the rpi firmware cec driver using instructions here.
Or you can build it using the linux cec framework (available when using dtoverlay=vc4-kms-v3d
) by following instructions here.
I don't know know which Manjaro considers the default.
manjaro uses no defaults. It just compiles from this file, which defines the flags in the build() function explicitly
Indeed, I have dtoverlay=vc4-fkms-v3d
on my system (added by kodi I believe?). Would this cause the compilation to run with Raspberry pi support: NO
? (which is what was happening)
Or should it still say YES
in that case?
Thanks @naps62 for opening this thread, I recently set up a RPI4 with Manjaro and was banging my head against a wall, and thanks @popcornmix for the instructions.
I had compiled libcec myself to troubleshoot the issue, but I missed the key line:
-- Raspberry Pi support: yes
-- Linux support: yes
Even though I have dtoverlay=vc4-fkms-v3d
, I still needed to add the RPI lib/include directories in /opt/vc
for RPI support to show up. I recompiled with both,
cmake -DHAVE_LINUX_API=1 -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
And my cec-client finally detects my LG TV!
Looking at the PKGBUILD that @naps62 posted, I'd wager the similar missing RPIINCLUDE* is the source of the problem.
Correction, that PKGBUILD file had the RPI_INCLUDE_
options included in a previous commit. The maintainers removed it, referencing this in the commit: https://github.com/raspberrypi/linux/issues/4103
I have an LG C1 tv, a Raspberry Pi 4B on which I installed Manjaro and Kodi
On Kodi's settings, CEC does not even show as an option (in previous attempts that I had before settling on Manjaro, there was an option on Input -> Peripherals, even though I never got it to work)
I have installed
kodi-rpi
, which depends onlibcec-rpi
cec-client
gives me the following output (while connected to the TV):I've tried a couple of different HDMI cables, tried all 4 of the tv's input ports, and tried disconnecting other HDMI devices (as I saw in another thread). Kodi's debug logs have no mention of CEC at all
I'm running out of ideas, and need help