mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
627 B
Plaintext
35 lines
627 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|