Posts: 226
Joined: Mar 2004
Reputation:
0
Hi All,
Apologies if there is another thread on this (I looked, but couldn't find).
I'd like to be able to configure CEC so that when the TV is turned off, PVR playback is stopped. It's not unusual for other members of the family, or guests to just turn off the TV, but leaving the PVR playing live TV. This leaves my tvheadend server busier than it should be and also keeps the stream open and occupied.
I know there is an option for "Pause playback" - but that's almost worse, right.. leaves the stream open but keeps it recording the live stream.
Is there any way to do this, am I missing something silly, or is it a feature request?
Thanks!
Posts: 11
Joined: Jan 2014
Reputation:
0
2015-11-02, 18:17
(This post was last modified: 2015-11-02, 18:17 by tdecurtins.)
If this is a windows pc you could use event ghost to detect when your tv is turned off/disconnected and then send the stop command.
Posts: 226
Joined: Mar 2004
Reputation:
0
No, not a windows PC. I have 3 Raspberry Pi's, 1 Cubox and 1 Ubuntu based PC... All connected to my various TV's in the house.
So this needs to be something within Kodi I guess.
Posts: 11
Joined: Jan 2014
Reputation:
0
In that case I would use an IR sensor so anytime the power button is pressed on the remote then stop is sent to kodi. There are some good IR sensor tutorials for the Pi. I dont think Raspberry pi supports cec.
Posts: 226
Joined: Mar 2004
Reputation:
0
Raspberry Pi supports CEC, as does Cubox and my PC through use of the CEC Adapter. So building an IR sensor doesn't seem like an elegant solution. (In fact, the fact that Pi supports CEC is one of the reason's it's such an ideal device for Kodi connected to a TV)
Am I the only person that thinks this is a real requirement? :-)
Posts: 226
Joined: Mar 2004
Reputation:
0
I've had issues with the Pi shutting down too early when using a TV's USB, so just leave them running now.
I too suspect it wouldn't be too difficult of an option to enable the option in the CEC setting you mention of "Stop Playback"
That would really apply to any content, not just live TV really, because the database holds the current position, when you turn the telly back on, you can just resume anyway.
Actually, I downloaded the source myself yesterday to see if I could figure out where the settings are for the CEC input, but I couldn't find it yet...
Posts: 293
Joined: May 2015
Reputation:
10
I have identically configured RPIs connected to different TV brands. In the case of the Sony, turning off the TV or switching away from the PI's HDMI port will stop playback. On the Hitachi it doesn't stop playback. I don't know why this happens other than it being a difference in the way CEC is implemented on the TVs. Is there anything that can be done to make playback stop on the Hitachi TV?
Posts: 226
Joined: Mar 2004
Reputation:
0
I'm pretty sure that's because it has paused playback, not stopped it. I've seen similar lock ups too, making me think it's a memory leak.
The key issue though is by pausing, your PVR back end is still recording the live TV unnecessarily.