Skip to contentSkip to conversation

A question about cec-ctl use? How to sent raw CEC codes?

DISCUSSION Jibun no Kage . 2 participants 2 messages Jun 19, 2022 – Jun 20, 2022 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

A question about cec-ctl use?  How to sent raw CEC codes?  I want to send via cec-ctl switching from HDMI1 to HDMI2, using cec-client I would just transmit a raw control code, for example...

For my TV...

Select HDMI 1...

/bin/echo 'tx 4F:82:10:00' | /usr/bin/cec-client -s -d 1

Select HDMI 2...

/bin/echo 'tx 4F:82:20:00' | /usr/bin/cec-client -s -d 1

So now I am trying to convert from cec-utils/cec-client to cec-ctl use.  How do I mirror the above functionality?  Can cec-ctl be used to send raw CEC commands?  Or some other way to achieve the same result?

Thanks,

-JnK

#1 lore raw
Quoted 10 lines · Jibun no Kage .

A question about cec-ctl use?  How to sent raw CEC codes?  I want to send via cec-ctl switching from HDMI1 to HDMI2, using cec-client I would just transmit a raw control code, for example...

For my TV...

Select HDMI 1...

/bin/echo 'tx 4F:82:10:00' | /usr/bin/cec-client -s -d 1

Select HDMI 2...

Quoted 8 lines

/bin/echo 'tx 4F:82:20:00' | /usr/bin/cec-client -s -d 1

So now I am trying to convert from cec-utils/cec-client to cec-ctl use.  How do I mirror the above functionality?  Can cec-ctl be used to send raw CEC commands?  Or some other way to achieve the same result?

Thanks,

-JnK

cec-ctl -d /dev/cecX --active-source phys-addr=1.0.0.0

See also: cec-ctl --help-one-touch-play

Since cec-ctl supports all known CEC commands, you generally do not use raw CEC codes. You can with --custom-command, but that's almost never used.

Regards.

Hans