Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDMI CEC on kodi #4613

Closed
satinebm opened this issue Aug 3, 2021 · 17 comments
Closed

HDMI CEC on kodi #4613

satinebm opened this issue Aug 3, 2021 · 17 comments
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done

Comments

@satinebm
Copy link

satinebm commented Aug 3, 2021

Creating a bug report/issue

Required Information

  • DietPi version | 7.4.2
  • Distro version | Debian Buster
  • Kernel version | Linux DietPiv2 5.10.52-v7l+ #1440 SMP Tue Jul 27 09:55:21 BST 2021 armv7l GNU/Linux
  • SBC model | `RPi 4 Model B (armv7l)
  • Power supply used | 5V 3A
  • SDcard used | SanDisk ultra

Additional Information (if applicable)

  • Software title | Kodi 18.7
  • Was the software title installed freshly or updated/migrated? The software was installed a long time ago
  • Can this issue be replicated on a fresh installation of DietPi? I don't no but in 7.3 no problem and with backup no problem

Steps to reproduce

  1. Update to 7.3 to 7.4.2
  2. Restart with kodi on autostart
  3. Kodi start on TV
  4. The TV does not detect the rpi4 as HDMI CEC and the remote control does not control the Kodi interface.

Expected behaviour

  • The remote control should control the interface of kodi
  • Before the update: OK
  • After update : no detection
  • Restore backup to 7.3 Ok The TV detect the rpi4 as HDMI CEC and the remote control control the Kodi interface.
@Joulinar
Copy link
Collaborator

Joulinar commented Aug 3, 2021

Hi,

Just to check if it might be related to some apt packages or kerne update, can you run apt update && apt upgrade while on 7.3 pls.

@ConallB
Copy link

ConallB commented Aug 3, 2021

Same issue here. Kodi CEC no longer works following dietpi-update from 7.3 to 7.4.2.

@MichaIng
Copy link
Owner

MichaIng commented Aug 3, 2021

Please both try the kernel upgrade suggested by Joulinar. Since the DietPi update did not imply anything that would affect CEC support, the recent kernel release from a few days ago are likely the reason. If so, we'd need to forward this to the RPi developers.

@ConallB
Copy link

ConallB commented Aug 3, 2021

Would love to but backup of my 7.3 install failed so I'm stuck on 7.4.2

Device itself runs several services that I cannot do without.

Will try a reinstall of Kodi to see if that is the issue.

@ConallB
Copy link

ConallB commented Aug 3, 2021

Would love to but backup of my 7.3 install failed so I'm stuck on 7.4.2

Device itself runs several services that I cannot do without.

Will try a reinstall of Kodi to see if that is the issue.

No luck. Happy to post logs etc. if needed.

@MichaIng
Copy link
Owner

MichaIng commented Aug 3, 2021

Does cec-client -l actually list the TV as CEC device? Probably you need to install that CLI client first:

apt install cec-utils

Please try to downgrade the kernel by manually downloading and installing the older packages:

cd /tmp
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi-bin_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi0_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20210527-1_armhf.deb
apt install ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb
rm ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb

@ConallB
Copy link

ConallB commented Aug 3, 2021

Does cec-client -l actually list the TV as CEC device?

libCEC version: 4.0.7, compiled on Linux-5.10.17-v8+ ... , features: P8_USB, DRM, P8_detect, randr, RPi, Exynos, Linux, AOCEC
Found devices: 1

device: 1
com port: RPI
vendor id: 2708
product id: 1001
firmware version: 1
type: Raspberry Pi

Please try to downgrade the kernel by manually downloading and installing the older packages:

cd /tmp
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi-bin_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi0_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20210527-1_armhf.deb
apt install ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb
rm ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb

@ConallB
Copy link

ConallB commented Aug 3, 2021

Does cec-client -l actually list the TV as CEC device?

libCEC version: 4.0.7, compiled on Linux-5.10.17-v8+ ... , features: P8_USB, DRM, P8_detect, randr, RPi, Exynos, Linux, AOCEC
Found devices: 1

device: 1
com port: RPI
vendor id: 2708
product id: 1001
firmware version: 1
type: Raspberry Pi

Please try to downgrade the kernel by manually downloading and installing the older packages:

cd /tmp
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi-bin_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi0_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20210527-1_armhf.deb
curl -sSfLO https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20210527-1_armhf.deb
apt install ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb
rm ./libraspberrypi-bin_1.20210527-1_armhf.deb ./libraspberrypi0_1.20210527-1_armhf.deb ./raspberrypi-bootloader_1.20210527-1_armhf.deb ./raspberrypi-kernel_1.20210527-1_armhf.deb

Downgraded the kernel as requested. CEC now working again.

@ConallB
Copy link

ConallB commented Aug 3, 2021

Thanks for the quick response @MichaIng

Can confirm system is working as before. Many thanks. Will wait for update before attempting further upgrade.

@MichaIng MichaIng added External bug 🐞 For bugs which are not caused by DietPi. Waiting for external fix ⏳ and removed Investigating 🤔 labels Aug 3, 2021
@MichaIng
Copy link
Owner

MichaIng commented Aug 3, 2021

I forgot to verify that you're running the 32-bit image, but since the packages got installed, it seems you do 😅. Which RPi model is it, RPi4 as well?

And another question, if there is time for doing another upgrade cycle: Does dmesg show any related kernel errors on the new kernel?

dmesg -l emerg,alert,crit,err

Reported at: raspberrypi/linux#4505
Would be good to collect all affected RPi models and add kernel logs, if present.

@satinebm
Copy link
Author

satinebm commented Aug 3, 2021 via email

@MichaIng
Copy link
Owner

MichaIng commented Aug 3, 2021

Okay, it was reported already on a different repository: Hexxeh/rpi-firmware#267
So next kernel release should fix it. If you want to test it as well, you can install the latest development version via rpi-update:

apt install rpi-update
rpi-update

@Joulinar
Copy link
Collaborator

Joulinar commented Aug 3, 2021

@MichaIng
You could have downgrade the kernel as well using rpi-update instead of downloading the different kernel packages 😉

@MichaIng
Copy link
Owner

MichaIng commented Aug 3, 2021

Generally I prefer to stay on packages, so it can be easily upgraded to current stable release again and no rpi-update is required. But indeed in this case it would have been easier, especially since a dietpi-update could have been preformed without breaking CEC again, since APT/DPkg do not know about the rpi-update file overwrites 😃.

@satinebm
Copy link
Author

satinebm commented Aug 3, 2021 via email

@Joulinar Joulinar added the Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. label Aug 3, 2021
@Joulinar
Copy link
Collaborator

Joulinar commented Aug 3, 2021

thx for confirmation. Keep in mind to go back to stable kernel once it has been released by RPi devs

@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. Waiting for external fix ⏳ labels Aug 6, 2021
@MichaIng
Copy link
Owner

MichaIng commented Aug 6, 2021

Solved in Hexxeh/rpi-firmware#267 and new package released today 🚀. I mark this as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

4 participants