| 1 |
.TH "CEC-FOLLOWER" "1" "August 2016" "v4l-utils @MAN_PACKAGE_VERSION@" "User Commands" |
| 2 |
.SH NAME |
| 3 |
cec-follower - An application to emulate CEC followers |
| 4 |
.SH SYNOPSIS |
| 5 |
.B cec-follower |
| 6 |
[\fI-h\fR] [\fI-d <dev>\fR] [other options] |
| 7 |
.SH DESCRIPTION |
| 8 |
The \fBcec-follower\fR tool is used to emulate CEC followers. Based on the configured |
| 9 |
logical address(es) of the CEC device it will emulate the CEC behavior |
| 10 |
accordingly. |
| 11 |
|
| 12 |
Configuring the CEC device is done using \fBcec-ctl\fR. Certain CEC functionalities |
| 13 |
are only emulated if the corresponding Device Features flag is set (these are set |
| 14 |
when configuring with \fBcec-ctl\fR). These are: |
| 15 |
|
| 16 |
- Audio Return Channel (RX and TX) |
| 17 |
- Audio Rate Control |
| 18 |
- Deck Control |
| 19 |
- Record TV screen |
| 20 |
|
| 21 |
\fBcec-follower\fR is basically a message loop, waiting for messages to arrive |
| 22 |
and taking the appropriate action for each message (incoming messages can be |
| 23 |
shown with the \fI--show-msgs\fR option). The follower maintains an internal |
| 24 |
state with appropriate parameters such as volume, current active source, power |
| 25 |
state and so on (state changes can be shown with the \fI--show-state\fR option). |
| 26 |
|
| 27 |
It also aims to be a reference implementation on how a follower should behave. |
| 28 |
|
| 29 |
\fBcec-follower\fR will keep track of incoming messages and look for violations |
| 30 |
of the CEC specification with regards to timings. For example, it will warn if |
| 31 |
it receives the same message again within 200ms after it replied <Feature Abort> |
| 32 |
["Unrecognized Opcode"] to that message, and it will check that press and hold |
| 33 |
behavior is done properly. |
| 34 |
|
| 35 |
\fBcec-follower\fR will periodically send out polling messages to discover when |
| 36 |
a remote device is removed or a new one has appeared. When a device is removed, |
| 37 |
the recorded information about it is cleared. Each logical address is polled |
| 38 |
about once every 15 seconds. In between polls, removing a remote device or |
| 39 |
replacing it with a new one is not detected. |
| 40 |
|
| 41 |
When running compliance tests with \fBcec-compliance\fR, \fBcec-follower\fR |
| 42 |
should be run on the same device to act on incoming messages that are not replies |
| 43 |
to messages sent by the compliance tool. Before each test-run \fBcec-follower\fR |
| 44 |
should be restarted if it is running, to initialize the emulated device with a |
| 45 |
clean and known initial state. |
| 46 |
.SH OPTIONS |
| 47 |
.TP |
| 48 |
\fB\-d\fR, \fB\-\-device\fR \fI<dev>\fR |
| 49 |
Use device <dev> as the CEC device. If <dev> is a number, then /dev/cec<dev> is used. |
| 50 |
.TP |
| 51 |
\fB\-D\fR, \fB\-\-driver\fR \fI<drv>\fR |
| 52 |
Use a cec device that has driver name \fI<drv>\fR, as returned by the CEC_ADAP_G_CAPS ioctl. |
| 53 |
This option can be combined with \fB\-a\fR to uniquely identify a CEC device without |
| 54 |
having to rely on the device node number. |
| 55 |
.TP |
| 56 |
\fB\-a\fR, \fB\-\-adapter\fR \fI<adap-name>\fR |
| 57 |
Use a cec device that has adapter name \fI<adap-name>\fR, as returned by the CEC_ADAP_G_CAPS ioctl. |
| 58 |
This option can be combined with \fB\-D\fR to uniquely identify a CEC device without |
| 59 |
having to rely on the device node number. |
| 60 |
.TP |
| 61 |
\fB\-v\fR, \fB\-\-verbose\fR |
| 62 |
Turn on verbose reporting. |
| 63 |
.TP |
| 64 |
\fB\-\-version\fR |
| 65 |
Show version information. |
| 66 |
.TP |
| 67 |
\fB\-w\fR, \fB\-\-wall\-clock\fR |
| 68 |
Show timestamps as wall-clock time. This also turns on verbose reporting. |
| 69 |
.TP |
| 70 |
\fB\-T\fR, \fB\-\-trace\fR |
| 71 |
Trace all called ioctls. Useful for debugging. |
| 72 |
.TP |
| 73 |
\fB\-h\fR, \fB\-\-help\fR |
| 74 |
Prints the help message. |
| 75 |
.TP |
| 76 |
\fB\-n\fR, \fB\-\-no\-warnings\fR |
| 77 |
Turn off warning messages. |
| 78 |
.TP |
| 79 |
\fB\-e\fR, \fB\-\-exclusive\fR |
| 80 |
If specified, then the follower uses exclusive mode (CEC_MODE_EXCL_FOLLOWER). |
| 81 |
.TP |
| 82 |
\fB\-m\fR, \fB\-\-show\-msgs\fR |
| 83 |
Show received messages. |
| 84 |
.TP |
| 85 |
\fB\-s\fR, \fB\-\-show\-state\fR |
| 86 |
Show state changes from the emulated device. |
| 87 |
.TP |
| 88 |
\fB\-\-service\-by\-dig\-id\fR |
| 89 |
Report digital services by digital ID instead of by channel. |
| 90 |
.TP |
| 91 |
\fB\-\-standby\fR |
| 92 |
Start the follower in the Standby status. |
| 93 |
.TP |
| 94 |
\fB\-\-toggle\-power\-status\fR \fI<secs>\fR |
| 95 |
Toggle the power status every <secs> seconds. Only supported if the follower |
| 96 |
is emulating a TV. |
| 97 |
.TP |
| 98 |
\fB\-i\fR, \fB\-\-ignore\fR \fI<la>,<opcode>\fR |
| 99 |
Ignore messages from logical address \fI<la>\fR and opcode |
| 100 |
\fI<opcode>\fR. 'all' can be used for \fI<la>\fR or \fI<opcode>\fR to match |
| 101 |
all logical addresses or opcodes. |
| 102 |
.TP |
| 103 |
\fB\-\-ignore\-standby\fR \fI<n>\fR |
| 104 |
Ignore every <n>th received Standby message. |
| 105 |
.TP |
| 106 |
\fB\-\-ignore\-view\-on\fR \fI<n>\fR |
| 107 |
Ignore every <n>th received Image/Text View On message. |
| 108 |
|
| 109 |
.SH EXIT STATUS |
| 110 |
On success, it returns 0. Otherwise, it will return the error code. |
| 111 |
.SH BUGS |
| 112 |
This manual page is a work in progress. |
| 113 |
|
| 114 |
Bug reports or questions about this utility should be sent to the [email protected] |
| 115 |
mailinglist. |
| 116 |
.SH SEE ALSO |
| 117 |
\fBcec-compliance\fR(1), \fBcec-ctl\fR(1) |