[mythtv-users] Suspend to RAM almost working, but not quite
Enno Middelberg
enno.middelberg at gmail.com
Thu Oct 10 17:03:38 UTC 2013
Hello,
> However, I believe there is a deadlock when doing this automagically:
> mythbackend decides it wants to suspend, and calls pm-suspend, which
> then calls /etc/pm/sleep.d/6767_stop_mythtv_rmmod_ddbridge, which
> executes a
>
> /etc/init.d/mythtv-backend stop
> rmmod ddbridge
>
> and this script (I think) waits for the backend to stop, which never
> happens because pm-suspend has been called by the backend...
I think I've found a working solution to the problem: the backend issues
echo sudo /usr/sbin/pm-suspend | at now+1minute
as a shutdown command, and then the hooks in /etc/pm/sleep.d take care
of stopping mythtv-backend and unloading the driver. This seems to
work well so far.
Enno
More information about the mythtv-users
mailing list