[mythtv-users] Backend no longer shutdowns when idle on 0.22 upgrade.

Bryan Bennetts bryan.bennetts at gmail.com
Fri Mar 19 14:41:04 UTC 2010


On 16 March 2010 14:39, Bryan Bennetts <bryan.bennetts at gmail.com> wrote:

> Hi all,
>
> I'm running a system with separate FE and BE machines (using gentoo).
>  Prior to upgrading to 0.22, I could shutdown or hibernate the frontend and
> after the usual idle time the backend would shut itself down also.  With the
> hibernate I needed to stick a 'sleep 5' in the hibernate script to give the
> frontend a chance to exit prior to actually hibernating.
>
> I've upgraded to 0.22 and now the backend no longer shuts down when the
> frontend machine has shutdown.  What *appears* to be happening is that the
> frontend machine is powering down before the frontend exits,  I've stuck a
> long timeout in the hibernate script and the frontend just doesn't seem to
> be exiting.  Has anyone seen an issue like this?  Is it expected behaviour
> and I need to change my configuration somehow?  Of course I could be barking
> up the wrong tree...
>
>
Hmm, on the face of it (and I've only done a very small amount of digging)
it would appear that my problem stems from changeset
#19398<http://svn.mythtv.org/trac/changeset/19398>,
prior to this the code would loop thus :


        qApp->exec();
} while (!(exitstatus = handleExit()));

Then when the user chose to exit the code would call the halt/reboot is
required and proceed to teardown the networkControl, kill the mainwindow
etc.  This is why I needed the sleep in my hibernate script - to give the
application chance to exit cleanly before hibernating.



More information about the mythtv-users mailing list