.TH "CEC-CTL" "1" "August 2016" "v4l-utils @PACKAGE_VERSION@" "User Commands"
cec-ctl - An application to control cec devices
[\fI\-h\fR] [\fI\-d <dev>\fR] [many other options]
The cec-ctl tool is used to control cec devices. It is able to control almost
any aspect of such devices covering the full CEC API.
The easiest way to quickly test a CEC adapter of an HDMI output is:
cec-ctl -d/dev/cecX --playback -S
And for an HDMI input:
cec-ctl -d/dev/cecX --tv -S
Both commands configure the CEC adapter and show the CEC topology.
To put a display to standby use:
cec-ctl -d/dev/cecX --to 0 --standby
To wake up the display:
cec-ctl -d/dev/cecX --to 0 --image-view-on
Instead of '-d/dev/cecX' you can also write this as '-dX'.
And instead of '--to 0' you can also write this as '-t0'.
\fB\-d\fR, \fB\-\-device\fR \fI<dev>\fR
Use device <dev> as the CEC device. If <dev> is a number, then /dev/cec<dev> is used.
\fB\-D\fR, \fB\-\-driver\fR \fI<drv>\fR
Use a cec device that has driver name \fI<drv>\fR, as returned by the CEC_ADAP_G_CAPS ioctl.
This option can be combined with \fB\-a\fR to uniquely identify a CEC device without
having to rely on the device node number.
\fB\-a\fR, \fB\-\-adapter\fR \fI<adap-name>\fR
Use a cec device that has adapter name \fI<adap-name>\fR, as returned by the CEC_ADAP_G_CAPS ioctl.
This option can be combined with \fB\-D\fR to uniquely identify a CEC device without
having to rely on the device node number.
Turn on verbose reporting.
Show timestamps as wall-clock time. This also turns on verbose reporting.
Prints the help message.
\fB\-p\fR, \fB\-\-phys\-addr\fR \fI<addr>\fR
Use this physical address. The address can be a number (e.g. 0 or 0x11b1)
or formatted as a.b.c.d where each component is a hex value from 0-f
(e.g. 0.0.0.0 or 1.1.b.1).
\fB\-o\fR, \fB\-\-osd\-name\fR \fI<name>\fR
Use this OSD name. The maximum length is 14 characters.
\fB\-V\fR, \fB\-\-vendor\-id\fR \fI<id>\fR
Use this vendor ID. The vendor ID is a number from 0x0 to 0xffffff.
Show first configured logical address or nothing if the device is unconfigured.
Useful for scripts, e.g.: la=`cec-ctl -s -l`
Show all configured logical addresses or nothing if the device is unconfigured.
Useful for scripts, e.g.: las=`cec-ctl -s -L`
Clear all logical addresses, leaving the CEC device unconfigured.
By default when sending a CEC message that expects a reply this utility will
wait for that reply. With this option it will just send it without waiting
for the reply. This option applies to the messages following this option.
It acts as a toggle, so after you specify it a second time then the following
messages will wait for a reply again.
Transmit messages in non-blocking mode.
\fB\-t\fR, \fB\-\-to\fR \fI<la>\fR
Send the message to the given logical address (0-15).
\fB\-f\fR, \fB\-\-from\fR \fI<la>\fR
Send message from the given logical address. It is only necessary to use this
option if multiple logical addresses are claimed. By default the first assigned
logical address will be used.
Show the raw CEC message in hex.
Skip the Driver Info output section.
Show the CEC topology, detecting which other CEC devices are on the CEC bus.
Send a poll message.
Trace all called ioctls. Useful for debugging.
Use CEC Version 1.4 instead of 2.0 (the default).
Allow fallback to Unregistered if all logical addresses are claimed.
By default the adapter will remain unconfigured.
Disable the RC passthrough. By default remote control CEC messages are
passed on as input keystrokes (the \fBCEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU\fR
flag is set when calling the \fBCEC_ADAP_S_LOG_ADDRS\fR ioctl), but this
can be blocked by using this option.
The reply will be sent to followers as well. By default the reply will only
go to the follower that initiated the CEC message. But if you have other
followers running as well, then by giving this option they will also receive
Set the reply timeout in milliseconds (default is 1000 ms).
List all UI commands that can be used with option \fB\-\-control\-pressed\fR.
Configure the CEC adapter as a TV.
Configure the CEC adapter as a recording and playback device.
Configure the CEC adapter as a tuner device.
Configure the CEC adapter as a playback device.
Configure the CEC adapter as an audio system device.
Configure the CEC adapter as a processor device.
Configure the CEC adapter as a pure CEC switch.
Configure the CEC adapter as a CDC-only device.
Configure the CEC adapter as an unregistered device.
Signal the Record TV Screen feature.
Signal the Set OSD String feature.
Signal the Deck Control feature.
Signal the Set Audio Rate feature.
Signal the sink ARC Tx feature.
Signal the source ARC Rx feature.
Signal RC TV Profile 1.
Signal RC TV Profile 2.
Signal RC TV Profile 3.
Signal RC TV Profile 4.
Signal that the RC source has a Dev Root Menu.
Signal that the RC source has a Dev Setup Menu.
Signal that the RC source has a Contents Menu.
Signal that the RC source has a Media Top Menu.
Signal that the RC source has a Media Context Menu.
Start monitoring CEC traffic. This will monitor broadcast messages,
messages directed to this CEC adapter and messages transmitted by this
CEC adapter. Directed messages between other CEC devices are not
monitored. This option requires root.
Start monitoring all CEC traffic. This will monitor all CEC messages,
including directed messages between other CEC devices. This option requires root.
Not all CEC devices support this monitoring mode. It will fallback to regular
monitoring mode if it is not supported.
Start monitoring and analyzing the low-level CEC pin transitions. This is only
possible if the device has the CEC_CAP_MONITOR_PIN capability. This option requires root.
When in pin monitoring mode all 0->1 and 1->0 CEC pin transitions are monitored and
analysed. This is effectively a cheap CEC bus analyzer.
Monitor for the given number of seconds, then exit. The default (0) is to monitor
Ignore messages from logical address <la> and opcode <opcode> when monitoring.
"all" can be used for <la> or <opcode> to match all logical addresses or opcodes.
To ignore poll messages use "poll" as <opcode>.
Store the CEC pin events to the given file. This can be read and analyzed later
via the \fB\-\-analyze\-pin\fR option. Use \- to write to stdout instead of to a file.
Read and analyze the CEC pin events from the given file. Use \- to read from stdin
instead of from a file.
Prints the help message for all options.
Show help for the Audio Rate Control feature.
Show help for the Audio Return Channel Control feature.
Show help for the Capability Discovery and Control feature.
Show help for the Deck Control feature.
Show help for the Device Menu Control feature.
Show help for the Device OSD Transfer feature.
Show help for the Dynamic Audio Lipsync feature.
Show help for the Hospitality Profile Next Generation feature.
This is an optional CEC extension for Hotel displays and is not
generally available for regular displays. See http://www.htng.org
for more information.
Show help for the OSD Display feature.
Show help for the One Touch Play feature.
Show help for the One Touch Record feature.
Show help for the Power Status feature.
Show help for the Remote Control Passthrough feature.
Show help for the Routing Control feature.
Show help for the Standby feature.
Show help for the System Audio Control feature.
Show help for the System Information feature.
Show help for the Timer Programming feature.
Show help for the Tuner Control feature.
Show help for the Vendor Specific Commands feature.
.SH EXIT STATUS
On success, it returns 0. Otherwise, it will return the error code.
This manual page is a work in progress.
Bug reports or questions about this utility should be sent to the firstname.lastname@example.org