2013-09-05, 09:29
I currently have problems with automatic idle shutdown in XBMC
I set the timer in xbmc to shutdown after 15 min.
Additionally I run a cron-script every 5 min to check if
or
My problem is, that xbmc-send seems to reset the idle time. I have an addon service.watchedlist that becomes active if it detects user action (idle timer decreases, checking xbmc.getGlobalIdleTime() ).
Is there any workaround other than setting the cron-script-intervall greater than the xbmc shutdown idle timer?
Setting both timers to 5min worked, but I want timeouts like mentioned above.
There seem to be two opinions on how to call xbmc-send with idleshutdown: with true/false argument (http://forum.xbmc.org/showthread.php?tid=171659) or without (http://wiki.xbmc.org/index.php?title=Lis..._functions).
I set the timer in xbmc to shutdown after 15 min.
Additionally I run a cron-script every 5 min to check if
- smb/nfs shares are used
- PVR (mythtv) is active
- SSH-users are logged on
- packets are being installed (synaptic).
Code:
xbmc-send --action="XBMC.AllowIdleShutdown"
Code:
xbmc-send --action="XBMC.InhibitIdleShutdown"
Is there any workaround other than setting the cron-script-intervall greater than the xbmc shutdown idle timer?
Setting both timers to 5min worked, but I want timeouts like mentioned above.
There seem to be two opinions on how to call xbmc-send with idleshutdown: with true/false argument (http://forum.xbmc.org/showthread.php?tid=171659) or without (http://wiki.xbmc.org/index.php?title=Lis..._functions).