2014-08-20, 21:42
Hi,
I have been doing to some work to get XBMC Gotham and the cmyth pvr plugin to work the same way they used to work with my mythtv backend using Frodo.
My backend is configured for wake on lan and for automatic shutdown when idle. At Frodo I used the AdvancedWakeOnLan program add-on to wake the backend when xbmc started. Nothing else was required as the backend would not shutdown until all my clients had disconnected.
When I moved to Gotham I noticed that whilst AdvancedWakeOnLan brought the backend up as expected, it would soon shutdown again if the xbmc frontend was not actually interacting with the backend e.g. playback. In this situation the only way to get things going again was to rerun the AdvancedWakeOnLan add-on.
I had a look at the latest cmyth pvr stuff and discovered that there was some WOL stuff builtin. However I soon discovered that this would not wake the backend and was only designed to handle wakeup of the backend after a suspend and resume of the frontend.
I have made some code changes to make the cmyth pvr plugin also handle wakeup of the backend from cold, and from a backend idle shutdown.
You can find these minimal changes here
https://github.com/rogerjames99/xbmc-pvr...d62af0a9c2
I would really like to stop the backend doing an idle shutdown whilst xbmc was connected in the same way as it did in Frodo. However it looks like the version of cmyth used does not do this. A newer version of the cmyth library is in fact required to reinstate this functionality, that is too much work for me at the moment.
I would also like to point out the myth web services api is also not protected from a server idle shutdown so the same problem will exist web the new web service based mythtv plugin. I would suggest that easiest way to fix this in the new plugin is to open a cmyth connection (using the latest library) as well and issue a block shutdown command on it.
Feel free to clone my repo to try this out.
When I have run this for a while I will ask for this to be pulled into the main respository.
Roger
I have been doing to some work to get XBMC Gotham and the cmyth pvr plugin to work the same way they used to work with my mythtv backend using Frodo.
My backend is configured for wake on lan and for automatic shutdown when idle. At Frodo I used the AdvancedWakeOnLan program add-on to wake the backend when xbmc started. Nothing else was required as the backend would not shutdown until all my clients had disconnected.
When I moved to Gotham I noticed that whilst AdvancedWakeOnLan brought the backend up as expected, it would soon shutdown again if the xbmc frontend was not actually interacting with the backend e.g. playback. In this situation the only way to get things going again was to rerun the AdvancedWakeOnLan add-on.
I had a look at the latest cmyth pvr stuff and discovered that there was some WOL stuff builtin. However I soon discovered that this would not wake the backend and was only designed to handle wakeup of the backend after a suspend and resume of the frontend.
I have made some code changes to make the cmyth pvr plugin also handle wakeup of the backend from cold, and from a backend idle shutdown.
You can find these minimal changes here
https://github.com/rogerjames99/xbmc-pvr...d62af0a9c2
I would really like to stop the backend doing an idle shutdown whilst xbmc was connected in the same way as it did in Frodo. However it looks like the version of cmyth used does not do this. A newer version of the cmyth library is in fact required to reinstate this functionality, that is too much work for me at the moment.
I would also like to point out the myth web services api is also not protected from a server idle shutdown so the same problem will exist web the new web service based mythtv plugin. I would suggest that easiest way to fix this in the new plugin is to open a cmyth connection (using the latest library) as well and issue a block shutdown command on it.
Feel free to clone my repo to try this out.
When I have run this for a while I will ask for this to be pulled into the main respository.
Roger