Skip to content

cec-client as command only redirect to hdmi 1 #656

@albfan

Description

@albfan

as (activatesource) do not accept parameters so always activate hdmi1

$ sudo cec-client 
No device type given. Using 'recording device'
CEC Parser created - libCEC version 6.0.2
no serial port given. trying autodetect: 
 path:     /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
 com port: /dev/ttyACM0

opening a connection to the CEC adapter...
DEBUG:   [              12]	Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [              12]	connection opened, clearing any previous input and waiting for active transmissions to end before starting
DEBUG:   [              18]	communication thread started
DEBUG:   [             129]	usbcec: enabling controlled mode
NOTICE:  [             300]	connection opened
DEBUG:   [             301]	<< Broadcast (F) -> TV (0): POLL
DEBUG:   [             301]	processor thread started
TRAFFIC: [             301]	<< f0
DEBUG:   [             301]	usbcec: updating line timeout: 3
DEBUG:   [             442]	>> POLL sent
DEBUG:   [             442]	TV (0): device status changed into 'present'
DEBUG:   [             442]	<< requesting vendor ID of 'TV' (0)
TRAFFIC: [             442]	<< f0:8c
TRAFFIC: [             690]	>> 0f:87:00:00:f0
DEBUG:   [             690]	TV (0): vendor = Samsung (0000f0)
DEBUG:   [             690]	expected response received (87: device vendor id)
DEBUG:   [             690]	>> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG:   [             690]	replacing the command handler for device 'TV' (0)
DEBUG:   [             690]	registering new CEC client - v6.0.2
DEBUG:   [             745]	usbcec: autonomous mode = disabled
DEBUG:   [             801]	usbcec: logical address = Recorder 1
DEBUG:   [             856]	usbcec: device type = recording device
DEBUG:   [             861]	usbcec: logical address mask = 206
DEBUG:   [             932]	usbcec: physical address = 1000
DEBUG:   [             987]	usbcec: auto power on = disabled
DEBUG:   [             987]	SetClientVersion - using client version '6.0.2'
NOTICE:  [             987]	setting HDMI port to 1 on device TV (0)
DEBUG:   [             987]	SetConfiguration: double tap timeout = 200ms, repeat rate = 0ms, release delay = 500ms
DEBUG:   [             987]	detecting logical address for type 'recording device'
DEBUG:   [             987]	trying logical address 'Recorder 1'
DEBUG:   [             987]	<< Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             987]	<< 11
DEBUG:   [            1072]	CEC transmission - received response - TRANSMIT_FAILED_ACK
TRAFFIC: [            1072]	<< 11
DEBUG:   [            1157]	CEC transmission - received response - TRANSMIT_FAILED_ACK
DEBUG:   [            1157]	>> POLL not sent
DEBUG:   [            1157]	using logical address 'Recorder 1'
DEBUG:   [            1157]	Recorder 1 (1): device status changed into 'handled by libCEC'
DEBUG:   [            1157]	Recorder 1 (1): power status changed from 'unknown' to 'on'
DEBUG:   [            1157]	Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [            1157]	Recorder 1 (1): CEC version 1.4
DEBUG:   [            1157]	AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
DEBUG:   [            1157]	usbcec: updating ackmask: 0002
DEBUG:   [            1213]	Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [            1213]	Recorder 1 (1): menu language set to 'eng'
DEBUG:   [            1213]	GetPhysicalAddress - trying to get the physical address via ADL
DEBUG:   [            1213]	GetPhysicalAddress - ADL returned physical address 0000
DEBUG:   [            1213]	GetPhysicalAddress - trying to get the physical address via nvidia driver
DEBUG:   [            1213]	GetPhysicalAddress - nvidia driver returned physical address 0000
DEBUG:   [            1213]	GetPhysicalAddress - trying to get the physical address via drm files
DEBUG:   [            1213]	GetPhysicalAddress - drm files returned physical address 0000
DEBUG:   [            1213]	GetPhysicalAddress - trying to get the physical address from the OS
DEBUG:   [            1215]	GetPhysicalAddress - OS returned physical address 0000
NOTICE:  [            1215]	setting HDMI port to 1 on device TV (0)
DEBUG:   [            1215]	Recorder 1 (1): physical address changed from ffff to 1000
DEBUG:   [            1215]	<< Recorder 1 (1) -> broadcast (F): physical address 1000
TRAFFIC: [            1215]	<< 1f:84:10:00:01
DEBUG:   [            1437]	usbcec: updated OSD name: python-cec -> CECTester
DEBUG:   [            1437]	using device/input physical address 0000
NOTICE:  [            1437]	CEC client registered: libCEC version = 6.0.2, client version = 6.0.2, firmware version = 12, firmware build date: Tue Apr 28 14:20:49 2020 +0000, logical address(es) = Recorder 1 (1) , base device: TV (0), HDMI port number: 1, physical address: 1.0.0.0,  compiled on 2023-01-19 00:00:00 by mockbuild on Linux 6.1.5-200.fc37.x86_64 (x86_64), features: P8_USB, DRM, P8_detect, randr, Linux
DEBUG:   [            1437]	<< Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            1438]	<< 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1764]	<< requesting power status of 'TV' (0)
TRAFFIC: [            1764]	<< 10:8f
TRAFFIC: [            1964]	>> 01:90:00
waiting for input
DEBUG:   [            1965]	TV (0): power status changed from 'unknown' to 'on'
DEBUG:   [            1965]	expected response received (90: report power status)
DEBUG:   [            1965]	>> TV (0) -> Recorder 1 (1): report power status (90)
as
DEBUG:   [            7590]	making Recorder 1 (1) the active source
DEBUG:   [            7590]	usbcec: updating active source status: active
NOTICE:  [            7674]	>> source activated: Recorder 1 (1)
DEBUG:   [            7674]	sending active source message for 'Recorder 1'
NOTICE:  [            7674]	<< powering on 'TV' (0)
TRAFFIC: [            7674]	<< 10:04
NOTICE:  [            7729]	<< Recorder 1 (1) -> broadcast (F): active source (1000)
TRAFFIC: [            7729]	<< 1f:82:10:00
DEBUG:   [            7844]	<< Recorder 1 (1) -> TV (0): menu state 'activated'
TRAFFIC: [            7844]	<< 10:8e:00
TRAFFIC: [            8069]	>> 01:8d:02
DEBUG:   [            8069]	<< Recorder 1 (1) -> TV (0): menu state 'activated'
TRAFFIC: [            8069]	<< 10:8e:00
DEBUG:   [            8069]	>> TV (0) -> Recorder 1 (1): menu request (8D

As it activate the current logical address, I try with:

la 2000
la TUNER2

but nothing modifies it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleAutomatically closed stale issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions