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

[BUG] CEC initialization failed RPI4 #7990

Closed
DerGary opened this issue Jul 16, 2023 · 2 comments
Closed

[BUG] CEC initialization failed RPI4 #7990

DerGary opened this issue Jul 16, 2023 · 2 comments

Comments

@DerGary
Copy link

DerGary commented Jul 16, 2023

Describe the bug

I installed a clean new version of libreelec. CEC was working at the beginning but after a few restarts it is now broken. Everytime Kodi starts it shows the message "The CEC Adapter could not be initialized. Please check your settings". Therefore I can not use my remote control from the TV to control Kodi.

To Reproduce

Steps to reproduce the behavior:
I don't really know how to reproduce it. I installed Libreelec 2 times and configured everything as I would and after some restarts on both installation CEC broke down and was not able to work again even after trying different cables and so on.
On both installations I additionally installed Hyperion.ng and the Arctic Horizon 2 Skin. But I don't think that it has to do with that. As this didn't immediately break CEC.

It immediately broke after I put the SD Card into my windows machine and made a backup with Win32DiskImager, but I don't know if that has something to do with it, as I think it should not.

Informations

  • LE Version: 11.0.1
  • Hardware Platform: RPI4

Log file

http://ix.io/4AJJ

Additional context

cec-ctl device list:

LibreELEC:~ # cec-ctl --list-devices
vc4_hdmi (vc4-hdmi-0):
        /dev/cec0

vc4_hdmi (vc4-hdmi-1):
        /dev/cec1

Driver Info:
        Driver Name                : vc4_hdmi
        Adapter Name               : vc4-hdmi-0
        Capabilities               : 0x0000010e
                Logical Addresses
                Transmit
                Passthrough
                Connector Info
        Driver version             : 6.1.19
        Available Logical Addresses: 1
        DRM Connector Info         : card 0, connector 32
        Physical Address           : 4.1.0.0
        Logical Address Mask       : 0x0002
        CEC Version                : 1.4
        Vendor ID                  : 0x001582 (Pulse-Eight)
        OSD Name                   : ''
        Logical Addresses          : 1 (Allow Fallback to Unregistered)

          Logical Address          : 1 (Recording Device 1)
            Primary Device Type    : Record
            Logical Address Type   : Record
            All Device Types       : Record
            RC TV Profile          : None
            Device Features        :
                None

When I use cec-ctl -m to monitor the cec stream than I can watch the keys pressed on my remote to be registered by linux. Altough kodi won't register them

LibreELEC:~ # cec-ctl -m
Driver Info:
        Driver Name                : vc4_hdmi
        Adapter Name               : vc4-hdmi-0
        Capabilities               : 0x0000010e
                Logical Addresses
                Transmit
                Passthrough
                Connector Info
        Driver version             : 6.1.19
        Available Logical Addresses: 1
        DRM Connector Info         : card 0, connector 32
        Physical Address           : 4.1.0.0
        Logical Address Mask       : 0x0002
        CEC Version                : 1.4
        Vendor ID                  : 0x001582 (Pulse-Eight)
        OSD Name                   : ''
        Logical Addresses          : 1 (Allow Fallback to Unregistered)

          Logical Address          : 1 (Recording Device 1)
            Primary Device Type    : Record
            Logical Address Type   : Record
            All Device Types       : Record
            RC TV Profile          : None
            Device Features        :
                None



Initial Event: State Change: PA: 4.1.0.0, LA mask: 0x0002, Conn Info: yes
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: down (0x02)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: left (0x03)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: right (0x04)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: right (0x04)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: right (0x04)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: up (0x01)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_PRESSED (0x44):
        ui-cmd: up (0x01)
Received from TV to Recording Device 1 (0 to 1): USER_CONTROL_RELEASED (0x45)

trying cec-client results into the following errors:

LibreELEC:~ # cec-client
No device type given. Using 'recording device'
CEC Parser created - libCEC version 4.0.7
no serial port given. trying autodetect:
 path:     /dev/cec0
 com port: Linux

opening a connection to the CEC adapter...
DEBUG:   [              76]     Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [              76]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [              76]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [              76]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [              76]     could not open a connection (try 1)
DEBUG:   [              76]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            1076]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            1076]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            1076]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            1076]     could not open a connection (try 2)
DEBUG:   [            1076]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            2076]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            2076]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            2077]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            2077]     could not open a connection (try 3)
DEBUG:   [            2077]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            3077]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            3077]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            3077]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            3077]     could not open a connection (try 4)
DEBUG:   [            3077]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            4077]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            4077]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            4077]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            4077]     could not open a connection (try 5)
DEBUG:   [            4077]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            5077]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            5078]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            5078]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            5078]     could not open a connection (try 6)
DEBUG:   [            5078]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            6078]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            6078]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            6078]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            6078]     could not open a connection (try 7)
DEBUG:   [            6078]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            7078]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            7078]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            7078]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            7079]     could not open a connection (try 8)
DEBUG:   [            7079]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            8079]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            8079]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            8079]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            8079]     could not open a connection (try 9)
DEBUG:   [            8079]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            9080]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            9080]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            9080]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            9080]     could not open a connection (try 10)
DEBUG:   [            9080]     CLinuxCECAdapterCommunication::Close - m_fd=-1
unable to open the device on port Linux
NOTICE:  [           10081]     connection opened

when I stop Kodi with systemctl and try cec-client again I got mostly the same output but the last line changes:

LibreELEC:~ # cec-client
No device type given. Using 'recording device'
CEC Parser created - libCEC version 4.0.7
no serial port given. trying autodetect:
 path:     /dev/cec0
 com port: Linux

opening a connection to the CEC adapter...
DEBUG:   [              39]     Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [              39]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [              39]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [              39]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [              39]     could not open a connection (try 1)
DEBUG:   [              39]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            1040]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            1040]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            1040]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            1040]     could not open a connection (try 2)
DEBUG:   [            1040]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            2040]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            2040]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            2040]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            2040]     could not open a connection (try 3)
DEBUG:   [            2040]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            3040]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            3040]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            3040]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            3040]     could not open a connection (try 4)
DEBUG:   [            3040]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            4040]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            4040]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            4040]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            4041]     could not open a connection (try 5)
DEBUG:   [            4041]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            5041]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            5041]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            5041]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            5041]     could not open a connection (try 6)
DEBUG:   [            5041]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            6041]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            6041]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            6041]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            6041]     could not open a connection (try 7)
DEBUG:   [            6041]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            7041]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            7041]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            7041]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            7041]     could not open a connection (try 8)
DEBUG:   [            7041]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            8042]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            8042]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            8042]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            8042]     could not open a connection (try 9)
DEBUG:   [            8042]     CLinuxCECAdapterCommunication::Close - m_fd=-1
DEBUG:   [            9042]     CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1
ERROR:   [            9042]     CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
DEBUG:   [            9042]     CLinuxCECAdapterCommunication::Close - m_fd=3
ERROR:   [            9042]     could not open a connection (try 10)
DEBUG:   [            9042]     CLinuxCECAdapterCommunication::Close - m_fd=-1
unable to open the device on port Linux
NOTICE:  [           10042]     connection opened
ERROR:   [           10042]     could not start CEC communications
@DerGary
Copy link
Author

DerGary commented Aug 4, 2023

nothing?

@heitbaum
Copy link
Contributor

heitbaum commented Sep 4, 2023

Many are / have been on summer holidays, Please use the forums for support. Please try with the latest LE11 nightly image. There have been updates since LE11.0.1. Issue can be reopened if issue identified at the forums. Thanks.

@heitbaum heitbaum closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants