MythTV Frontend shuts off TV

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
ricks03
Junior
Posts: 67
Joined: Thu Oct 01, 2015 8:59 pm
United States of America

MythTV Frontend shuts off TV

Post by ricks03 »

Currently running the MythTV .28 frontend on the Raspberry Pi (on Raspberian).

Everything is working fine, until I exit. When I exit I get several options (Exit, Exit and Shutdown, Exit and Reboot). When I simply select "Exit", the TV gets turned off, but the Raspberry stays up. I want "Exit" to return me to the main Raspberian screen without turning off the TV. Possible?
User avatar
pgbennett
Developer
Posts: 503
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythTV Frontend shuts off TV

Post by pgbennett »

See the answer in the topic in this forum "Border on Playback"
viewtopic.php?f=46&t=1626#p7907
ricks03
Junior
Posts: 67
Joined: Thu Oct 01, 2015 8:59 pm
United States of America

Re: MythTV Frontend shuts off TV

Post by ricks03 »

Thanks!

For others, I updated: /usr/share/applications/mythtv.desktop and added
-O PowerOffTVOnExit=0
to the Exec line:
Exec=/usr/bin/mythfrontend -O PowerOffTVOnExit=0 --logpath /tmp
ricks03
Junior
Posts: 67
Joined: Thu Oct 01, 2015 8:59 pm
United States of America

Re: MythTV Frontend shuts off TV

Post by ricks03 »

Hmm. If I select "Shutdown" instead of "Exit" then this will prevent the Pi from shutting down and turning off the TV at the same time. I'd like to be able to Exit (back to the OS) or Shutdown (and turn off the TV)
User avatar
pgbennett
Developer
Posts: 503
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythTV Frontend shuts off TV

Post by pgbennett »

Option 1:

You can assign keys on your remote to TV power on and TV power off so that your MythTV remote can power off the TV.

Option 2:

You can install cec-utils and then use commands like this

Power off TV:

Code: Select all

echo 'standby 0' | cec-client -s
Power on TV:

Code: Select all

echo 'on 0' | cec-client -s
There is information at http://blog.endpoint.com/2012/11/using- ... vices.html or search for CEC.

You will have to figure out some way to get the power off to run during shutdown. One possibility is to modify the shutdown command in MythTV frontend setup to invoke a script that runs this before shutdown.
Post Reply