1CEC-FOLLOWER(1) User Commands CEC-FOLLOWER(1)
2
3
4
6 cec-follower - An application to emulate CEC followers
7
9 cec-follower [-h] [-d <dev>] [other options]
10
12 The cec-follower tool is used to emulate CEC followers. Based on the
13 configured logical address(es) of the CEC device it will emulate the
14 CEC behavior accordingly.
15
16 Configuring the CEC device is done using cec-ctl. Certain CEC function‐
17 alities are only emulated if the corresponding Device Features flag is
18 set (these are set when configuring with cec-ctl). These are:
19
20 - Audio Return Channel (RX and TX)
21 - Audio Rate Control
22 - Deck Control
23 - Record TV screen
24
25 cec-follower is basically a message loop, waiting for messages to
26 arrive and taking the appropriate action for each message (incoming
27 messages can be shown with the --show-msgs option). The follower main‐
28 tains an internal state with appropriate parameters such as volume,
29 current active source, power state and so on (state changes can be
30 shown with the --show-state option).
31
32 It also aims to be a reference implementation on how a follower should
33 behave.
34
35 cec-follower will keep track of incoming messages and look for viola‐
36 tions of the CEC specification with regards to timings. For example, it
37 will warn if it receives the same message again within 200ms after it
38 replied <Feature Abort> ["Unrecognized Opcode"] to that message, and it
39 will check that press and hold behavior is done properly.
40
41 cec-follower will periodically send out polling messages to discover
42 when a remote device is removed or a new one has appeared. When a
43 device is removed, the recorded information about it is cleared. Each
44 logical address is polled about once every 15 seconds. In between
45 polls, removing a remote device or replacing it with a new one is not
46 detected.
47
48 When running compliance tests with cec-compliance, cec-follower should
49 be run on the same device to act on incoming messages that are not
50 replies to messages sent by the compliance tool. Before each test-run
51 cec-follower should be restarted if it is running, to initialize the
52 emulated device with a clean and known initial state.
53
55 -d, --device <dev>
56 Use device <dev> as the CEC device. If <dev> is a number, then
57 /dev/cec<dev> is used.
58
59 -v, --verbose
60 Turn on verbose reporting.
61
62 -w, --wall-clock
63 Show timestamps as wall-clock time. This also turns on verbose
64 reporting.
65
66 -T, --trace
67 Trace all called ioctls. Useful for debugging.
68
69 -h, --help
70 Prints the help message.
71
72 -n, --no-warnings
73 Turn off warning messages.
74
75 -m, --show-msgs
76 Show received messages.
77
78 -s, --show-state
79 Show state changes from the emulated device.
80
82 On success, it returns 0. Otherwise, it will return the error code.
83
85 This manual page is a work in progress.
86
87 Bug reports or questions about this utility should be sent to the
88 linux-media@vger.kernel.org mailinglist.
89
91 cec-compliance(1), cec-ctl(1)
92
93
94
95v4l-utils 1.16.5 August 2016 CEC-FOLLOWER(1)