A question about cec-ctl use? How to sent raw CEC codes?
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
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 1Select HDMI 2...
Quoted 8 lines
/bin/echo'tx 4F:82:20:00' |/usr/bin/cec-client-s -d 1So 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