Posts: 4
Joined: Jul 2011
Reputation:
0
Hi, i have my own custom suspend script. How can I use it in XBMC when:
- clicking suspend from menu
- timeout/screensaver
thanx
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
XBMC only signals system to do a suspend or shutdown, if you want to use your custom script you need to make the system we signal to use it. i.e. check UPower/DeviceKit.Power
On screensaver we only switch active window, there is no hook to run a specific script on that. We are contemplating adding a notification from json-rpc however which gives this information.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."