Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
714 stars 287 forks source link

LibCEC is detecting the Linux framework - but the CEC-client is not working. #537

Open heitbaum opened 3 years ago

heitbaum commented 3 years ago

LibCEC is detecting the Linux framework - but the CEC-client is not working. Whilst cec-ctl is working.

cec-client -l

libCEC version: 4.0.7, compiled on 2020-10-31 10:22:27 by rudi@9ada9517320e on Linux 5.9.0 (x86_64), features: P8_USB, DRM, P8_detect, randr, Linux ERROR: [ 3536] error opening serial port '/dev/ttyACM0': Couldn't lock the serial port ERROR: [ 3536] could not open a connection (try 1) ERROR: [ 6370] error opening serial port '/dev/ttyACM0': Couldn't lock the serial port ERROR: [ 6370] could not open a connection (try 2) ERROR: [ 8259] error opening serial port '/dev/ttyACM0': Couldn't lock the serial port ERROR: [ 8259] could not open a connection (try 3) ERROR: [ 9518] error opening serial port '/dev/ttyACM0': Couldn't lock the serial port ERROR: [ 9518] could not open a connection (try 4) Found devices: 2

device: 1 com port: /dev/ttyACM0 vendor id: 2548 product id: 1002 firmware version: 65535

device: 2 com port: Linux vendor id: 0000 product id: 0000 firmware version: 0 type: Linux

cec-client -t p Linux

== using device type 'playback device' CEC Parser created - libCEC version 4.0.7 opening a connection to the CEC adapter... DEBUG: [ 1] Broadcast (F): osd name set to 'Broadcast' DEBUG: [ 1] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 1] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 1] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 1] could not open a connection (try 1) DEBUG: [ 1] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 1001] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 1001] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 1001] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 1001] could not open a connection (try 2) DEBUG: [ 1001] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 2002] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 2002] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 2002] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 2002] could not open a connection (try 3) DEBUG: [ 2002] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 3002] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 3002] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 3002] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 3002] could not open a connection (try 4) DEBUG: [ 3002] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 4002] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 4002] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 4002] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 4002] could not open a connection (try 5) DEBUG: [ 4002] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 5003] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 5003] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 5003] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 5003] could not open a connection (try 6) DEBUG: [ 5003] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 6003] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 6003] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 6003] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 6003] could not open a connection (try 7) DEBUG: [ 6003] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 7003] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 7003] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 7003] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 7003] could not open a connection (try 8) DEBUG: [ 7003] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 8003] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 8004] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 8004] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 8004] could not open a connection (try 9) DEBUG: [ 8004] CLinuxCECAdapterCommunication::Close - m_fd=-1 DEBUG: [ 9004] CLinuxCECAdapterCommunication::Open - m_fd=3 bStartListening=1 ERROR: [ 9004] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16 DEBUG: [ 9004] CLinuxCECAdapterCommunication::Close - m_fd=3 ERROR: [ 9004] could not open a connection (try 10) DEBUG: [ 9004] CLinuxCECAdapterCommunication::Close - m_fd=-1 unable to open the device on port Linux NOTICE: [ 10004] connection opened ERROR: [ 10004] could not start CEC communications

cec-ctl -S

Driver Info: Driver Name : pulse8-cec Adapter Name : serio0 Capabilities : 0x0000002f Physical Address Logical Addresses Transmit Passthrough Monitor All Driver version : 5.9.0 Available Logical Addresses: 1 Connector Info : None Physical Address : 0.0.0.0 Logical Address Mask : 0x0100 CEC Version : 1.4 Vendor ID : 0x001582 (Pulse-Eight) OSD Name : '' Logical Addresses : 1 (Allow Fallback to Unregistered)

      Logical Address          : 8 (Playback Device 2)
        Primary Device Type    : Playback
        Logical Address Type   : Playback

    System Information for device 0 (TV) from device 8 (Playback Device 2):
            CEC Version                : Tx, OK, Rx, OK, Feature Abort
            Physical Address           : 0.0.0.0
            Primary Device Type        : TV
            Vendor ID                  : 0x008045 (Panasonic)
            OSD Name                   : Tx, OK, Rx, OK, Feature Abort
            Menu Language              : eng
            Power Status               : On
    System Information for device 3 (Tuner 1) from device 8 (Playback Device 2):
            CEC Version                : 1.4
            Physical Address           : 1.0.0.0
            Primary Device Type        : Tuner
            Vendor ID                  : 0x080046 (Sony)
            OSD Name                   : 'AV AMP'
            Power Status               : On
    System Information for device 4 (Playback Device 1) from device 8 (Playback Device 2):
            CEC Version                : 2.0
            Physical Address           : 1.1.0.0
            Primary Device Type        : Playback
            Vendor ID                  : 0x0010fa 
            OSD Name                   : 'Living Room 4K'
            Power Status               : Standby
            Features                   :
                CEC Version            : 2.0
                All Device Types       : Playback
                RC Source Profile      :
                    Source Has Device Root Menu
                    Source Has Media Top Menu
                Device Features        :
                    Supports Deck Control
    System Information for device 5 (Audio System) from device 8 (Playback Device 2):
            CEC Version                : 1.4
            Physical Address           : 1.0.0.0
            Primary Device Type        : Audio System
            Vendor ID                  : 0x080046 (Sony)
            OSD Name                   : 'AV AMP'
            Power Status               : On

    Topology:

    0.0.0.0: TV
    0.0.0.0: Playback Device 2
        1.0.0.0: Tuner 1
        1.0.0.0: Audio System
            1.1.0.0: Playback Device 1