HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cec-client — Manage serial bus CEC connections. See also: `cec-ctl`. More information: <https://manned.org/cec-cl

Submitted by: @import:tldr-pages··
0
Viewed 0 times
cec-clientbuscommandmanagecliserialcecconnections
linux

Problem

How to use the cec-client command: Manage serial bus CEC connections. See also: cec-ctl. More information: <https://manned.org/cec-client>.

Solution

cec-client — Manage serial bus CEC connections. See also: cec-ctl. More information: <https://manned.org/cec-client>.

List all CEC adapters:
cec-client {{[-l|--list-devices]}}


Start an interactive CEC session:
sudo cec-client


Set the On-Screen Display name:
sudo cec-client {{[-o|--osd-name]}} {{name}}


Send a single command:
echo {{on 0}} | sudo cec-client {{[-s|--single-command]}}


Set a device to standby in interactive mode:
standby {{0}}


Turn a device on in interactive mode:
on {{0}}

Code Snippets

List all CEC adapters

cec-client {{[-l|--list-devices]}}

Start an interactive CEC session

sudo cec-client

Set the On-Screen Display name

sudo cec-client {{[-o|--osd-name]}} {{name}}

Send a single command

echo {{on 0}} | sudo cec-client {{[-s|--single-command]}}

Set a device to standby in interactive mode

standby {{0}}

Context

tldr-pages: linux/cec-client

Revisions (0)

No revisions yet.