Turn off TV after X minutes idle instead of sleep/standby

  • TV/Amp/Pi all connected via HDMI with CEC. When I turn on TV, the Amp also turns on; turn TV off, amp goes off. Pi stays on all the time, which is fine. I can use TV remote for 99% of viewing activity.

    Now, if I leave LE alone, after 10 minutes the display "sleeps" which keeps the TV/Amp on, but just a black screen. This still uses quite a lot of watts to run TV/Amp doing nothing. How can I simply turn those two off instead of sleeping the display?

    If there's no direct LE setting for this, I envision some cron job that checks every 10m if something is currently playing. If nothing playing since last check, send a CEC command to turn off TV/amp.

    Is this possible? If so, how would I send such a CEC command from CLI?