[mythtv-users] Problems with mythbackend idle shutdown

Martin Ginkel martin.ginkel at googlemail.com
Mon May 7 11:35:37 UTC 2012


Dear Mythtv Developers,

I'm currently facing some problems with the idle shutdown of my
backend, this used to work with 0.23 but
now it stopped working.

My shutdown process is as follows:

I have a script to program the RTC for a wakeup time.
But my computer hardware does only allow wakeup from S3 suspend state.
Therefore myhtbackend
starts a process that finally ends up in pm-suspend.

The problem is though that during this suspend some scripts have to
shut down the DVB hardware
(unload the modules) because otherwise these are dysfunctional after wakeup.
I have configured mythbackend to only use the hardware if needed, but
apparently when executing
the idle shutdown, there is still EIT scanning going on at the same
time, so the modules are still in use.

If my suspend script tries to kill mythbackend to free the devices,
then it somehow kills itself because mythbackend
is it's parent process. I tried to avoid this with forking a
background process, but for some reason this doesn't work.
If mythbackend (the caller of the script) goes down, the suspend
process is immediately terminated.

Would it be possible with reasonable effort to shut down the
operations of mythbackend (scheduler loop, EIT)
before launching the idle shutdown script?

            Best regards
            Martin


More information about the mythtv-users mailing list