New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement] Run process when idle #87
Comments
Seems like a great function to build, looking forward to the pull request :) |
Hahaha, currently I am in the process of speeding up browsing in large |
I can try patching XBMC so it executes a command when it goes out and in to 'screensaver mode'. |
This should be done as a service and not by patching the |
It already exist, as i talk with curlymo before, could do it in a next version of xbian-config-python, and set a 'runmode' for each service (always, screensaver on, video off) |
+1 |
Why not just create a cron job that checks if xbmc is idle using JSON Example: # Check if XBMC is in idle mode
isIdle=`curl -H "Content-Type: application/json" -i -X POST -d '{"jsonrpc": "2.0", "method": "XBMC.GetInfoBooleans", "params": { "booleans": ["System.ScreenSaverActive "] }, "id": 1}' http://xbmc:8080/jsonrpc | grep result | awk '{print $2}' | sed 's/"\|:\|}//g'`
# If XBMC is idle send a keypress to wake it so Advanced Launcher can issue the maximize command
if $isIdle ; then
#Take action
fi |
Because that requires additional resources while a service inside XBMC does not. |
this functionality is now package xbian-xbmc-bridge |
It would be great when we could set one or more proces(ses) that runs when XBMC is inactive. For exampe transmission-daemon. This can be done multiple ways, but I guess the next ideas would be the easiest:
Idea 1:
Maybe some sort of 'average value in 10 seconds' would be nice.
Idea 2:
Maybe usefull info: http://forum.xbmc.org/showthread.php?tid=141078
Regards,
Bart
The text was updated successfully, but these errors were encountered: