File: cec-poweroff-tv.service

package info (click to toggle)
libcec 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,372 kB
  • sloc: cpp: 20,697; ansic: 2,070; python: 1,362; sh: 42; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Use CEC to power off TV

[Service]
Type=oneshot
ExecStart=/bin/echo 'standby 0' | /usr/bin/cec-client -s
ExecStop=/bin/echo 'standby 0' | /usr/bin/cec-client -s

[Install]
WantedBy=poweroff.target