libcec for fkms

Problems with packages? Post here, using [tags] of the package name.

libcec for fkms

Postby grandcanyon » Wed Nov 29, 2023 2:31 am

I am trying to compile libcec for fkms. Kms flickers really bad when navigating and changing channels. It also disconnects my cec connection and sometime my vpn.

I have the PKGBUILD but I am not sure what to set the RPI_INCLUDE_DIR & the RPI_LIB_DIR. Obviously the files are not in the /opt/vc directory so when I try to compile with the have_rpi_api=1. I get an error. I have tried

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \
-DHAVE_EXYNOS_API=0 \
-DHAVE_RPI_API=1 \
-DRPI_INCLUDE_DIR=/opt/vc/include \
-DRPI_LIB_DIR=/opt/vc/lib
make

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
RPI_BCM_HOST

Looking for bcm_host_init in bcm_host
-- Looking for bcm_host_init in bcm_host - not found
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found

Also, I am getting these not found errors. For the PKGBUILD I changed the dep to firmware-raspberrypi.

Can someone point me in the right direction?
grandcanyon
 
Posts: 49
Joined: Tue Jan 18, 2022 1:46 am

Re: libcec for fkms

Postby graysky » Wed Nov 29, 2023 8:26 pm

Firstly, why are using fkms? I believe that has been deprecated upstream.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: libcec for fkms

Postby grandcanyon » Wed Nov 29, 2023 10:31 pm

With kms, the screen flickers really bad and/or it goes black when I am navigating or changing a channel. Sometimes when it does this, I lose my CEC connection as well as my vpn.

I figured it out. I was able to download the /opt/vc headers since they will work on any arch. I also had to download the raspbian-firmware package source file on Ubuntu's website and then compile the libs so it created a proper libbccm_host.so. I started Kodi manually as I had to move some additional libs to the /usr/lib. My Libcec now works with fkms.
grandcanyon
 
Posts: 49
Joined: Tue Jan 18, 2022 1:46 am

Re: libcec for fkms

Postby graysky » Thu Nov 30, 2023 11:47 am

Sounds hacky AF. I would try to figure out why kms isn't working for you and keep the packages vanilla which will make your life easier long term. Are you using kodi-rpi and linux-rpi? Post your /boot/kodi.config.txt and your /boot/config.txt
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: libcec for fkms

Postby solskogen » Thu Nov 30, 2023 1:28 pm

Is this on a Pi5?
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: libcec for fkms

Postby grandcanyon » Fri Dec 01, 2023 12:06 am

I ended up going back to kms. The fkms had its own issues and they were worse. I changed back to kms and for unknown reasons it's not flickering as bad. I was just using the stock config.tx and the stock kodi.txt on a RPI3+.

Getting libcec on fkms really wasn't very hacky as I was just using the headers and then compiled the raspberry pi firmware libs and then moved over the ones needed from /opt/lib as it needed three. The PKGBUILD was one that was on your github. Maybe that fixed my flickering but I doubt it. :lol:

I don't have a RPI5. If I had to do it over I'd by a used thin client on ebay for 50 bucks and get more ram and powerful CPU with wifi and bluetooth. I did that for my home PC with Manjaroo and it runs great.
grandcanyon
 
Posts: 49
Joined: Tue Jan 18, 2022 1:46 am

Re: libcec for fkms

Postby grandcanyon » Fri Dec 01, 2023 12:09 am

I did get rid of pipewire and went to pulseaudio as I needed to for fkms and I just stayed with it for kms. Pipewire volume was very soft.

Could have pipewire and wireplubmer caused my flickering?
grandcanyon
 
Posts: 49
Joined: Tue Jan 18, 2022 1:46 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 15 guests