[mythtv-users] MythBackend will not idle with MythFrontend connected

Thomas Boehm mythtv-users at lists.boehmi.net
Tue Jan 31 18:27:42 UTC 2012


Ray Kinsella wrote:
> Hi all,
> 
> Using mythtv .23 on mythubuntu.
> I have a problem where the Mythtbackend will not idle while the Frontend
> is connected.
> Both frontend and backend are on the same machine.
> 
> I have been closely montoring the backend log ... and I only get the
> idle message when the Frontend disconnects
> ...
> You will see while PVR01 is connected (the Frontend on the same
> machine), the Backend will not idle!
> Have tried switching on and off "Block shutdown before client
> connected", it seems to have no effect.

I asked the same question here some time ago and found a solution in a
little perl script, which needs to be executed by the user running the
frontend at login
------------------------
#!/usr/bin/perl
my $cmd = "dbus-monitor --session
\"type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'\"";

open (IN, "$cmd |");

while (<IN>) {
    if (m/^\s+boolean true/) {
        system('killall mythfrontend.real');
        system('echo "kill frontend" >> /var/log/mythtv/mythfrontend.log');
    }
}
----------------------

This kills the frontend when the screensaver kicks in.

HTH
Thomas


More information about the mythtv-users mailing list