[mythtv-users] restarting frontend after resume

mythtv.t.wuuza at xoxy.net mythtv.t.wuuza at xoxy.net
Mon Jan 31 20:56:55 UTC 2011


Since the motherboard in my combined backend/frontend doesn't support 
RTC/clock wakeup from off, I am forced to use S3 sleep for power savings 
while idle.  After quite a bit of trial and error and a lot of sleep 
cycles, I have gotten it to resume reliably with all hardware working 
using some custom scripts in /etc/pm/sleep.d.  One thing I had to do on 
resume was kill any existing frontend/welcome instances and restart 
because otherwise (if I remember correctly) it didn't recognize the 
PVR-150 remote.  (I now have a different remote, and might no longer 
need to restart the frontend, but I want to figure this out to satisfy 
my curiosity.)

My problem is this: even though the PM resume script is running, 
mythwelcome never starts.  I have echo statements before and after in 
the script and they print, so it's not leaving early.  I tried 
redirecting output of the line that starts mythwelcome, but never got 
anything.  I figure it has something to do with the PM script not 
running as the myth user or not being able to find X for some reason, 
but I'm not sure.  Here are two of the many variations I tried at some 
point:

sudo -u myth mythwelcome --logfile /var/log/mythtv/mythwelcome.log &

sudo -H -u myth sh -c 'mythfrontend --service' &

There's probably something dumb I'm missing but I haven't been able to 
find it yet.  Any ideas or items to try?  I'm using Mythbuntu 10.04 0.23.1.

John



More information about the mythtv-users mailing list