interrupt the "idle shutdown" by addon or external application

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pgoeri Offline
Member
Posts: 94
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #1
There should be a possibility to interrupt the "idle shutdown" by a external application. e.g. When there are still active downloads running (with JDownloader or uTorrent) the shutdown should not by executed.

It seems there is also a need to run a script just before the idle shutdown.

So CApplication::CheckShutdown() should be improved. Maybe it could execute a external script in a specific folder, which will return 1 or 0 if the computer is idle or not. Or there could be a service addon with a specific method (e.g. "isIdle()")

It should definitly be possible to have more than one external application that prevents the shutdown.

JDownloader Plugin - Handle JDownloader from within xbmc
IRFree Plugin - Add links from irfree.com to JDownloader
RlsBB Plugin - Add links from rlsbb.me to JDownloader
find quote
deadbabylon Offline
Junior Member
Posts: 8
Joined: Jul 2009
Reputation: 0
Post: #2
I'll second this.
With the new PVR options in Frodo I (and maybe someone else) will need this to use an equivalent of the shutdown scripts in VDR.
In my shutdown script I check for different use cases:
- Am I logged in via NX?
- Is MPD playing music?
- Am I watching videos with UPNP?
- Am I updating the EPG (with an external script)?

Only if the script returns 0 vdr will shutdown my system.

For now I'm starting to XBMC, exiting XBMC after 15 minutes of idle time, automatically starting vdr-sxfe and wait for the shutdown.

To define an (additional) script for the idle shutdown would be very helpful.
find quote