Howto reset EPG database after wakeup from suspend
#1
Hi,

I'm using xbmc frodo with PVR enabled and tvheadend backend. Everything is working nice, but there are problems with EPG data after wakeup from suspend.

After wakeup the EPG data are not correct, sometimes the tv channels are mixed too.

One thing which helps is to reset EPG database or channels. Is there some possibility to do this reset remotely by JSON-RPC or so?

Regards

Tomas
Reply
#2
I tried to find away around this, I just ended up solving it by restarting XBMC on wakeup. There may be a more elegant solution out there but that is what works for me now.
Reply
#3
And how do you do this restart XBMC after wakeup please?
Reply
#4
Hi,

this is my solution running on Xubuntu 12.04, XBMC Frodo RC1, tvheadend

When I power of my HTPC I'm doing it in XBMC -> Power off -> Suspend

in /etc/pm/sleep.d/ I have script 20_services.

In this script in suspend case is this command:

Code:
curl -su user:pass -H "Content-type: application/json" -X POST -d'{"jsonrpc":"2.0","method":"Application.Quit","id":"1"}' http://localhost:8080/jsonrpc

replace user and pass with yours. you have to enable web remote control in XBMC and insert the user and pass here. And if you don't have curl install it with
Code:
sudo apt-get install curl

in resume case there is this command:

Code:
env DISPLAY=:0 XAUTHORITY=/home/$HOME/.Xauthority HOME=/home/$HOME xbmc &
replace $HOME with the user which is normaly running XBMC

First command quits XBMC before sleep and the second starts it again after wakeup and then XBMC will reload the EPG informations.

[tp]
Reply
#5
Same issue for win7 frodo rc3. Running dvblink grabbing epg data from xmltv file

Anyone know how to shut down Xbmc at suspend and resume at wake up?

Edit: found Xbmc launcher that might solve the issue. Will try it later
http://forum.xbmc.org/showthread.php?tid=136798
Reply

Logout Mark Read Team Forum Stats Members Help
Howto reset EPG database after wakeup from suspend0