Posts: 14
Joined: Oct 2010
Reputation:
1
dtweb
Junior Member
Posts: 14
Can I add a "stop" option in System/Power Saving/Shutdown Function?
I wish that "shutdown function timer" don't shutdown but stops XBMC from any playback
Can someone help me?
Thanks
Posts: 6,339
Joined: Jul 2010
Reputation:
116
artrafael
Team-XBMC Forum Moderator
Posts: 6,339
Welcome to the XBMC forums.
The "Shutdown function timer" only applies if XBMC is idle for the specified period of time. If XBMC is playing media, then it is not idle and the corresponding "Shutdown function" (Quit, Minimize, Suspend, Shutdown, or your proposed/hypothetical "Stop playback" option) will not be invoked. There is the "Custom shutdown timer" that will shutdown the system after the specified number of minutes regardless of activity, but this won't satisfy your requirement either since you don't want to shutdown the system.
Posts: 14
Joined: Oct 2010
Reputation:
1
dtweb
Junior Member
Posts: 14
But "Custom shutdown timer" depends from "Shutdown function". If I set "suspend" in "Shutdown function" when "Custom shutdown timer" acts the computer will go in suspend. Am I right?
Posts: 6,339
Joined: Jul 2010
Reputation:
116
artrafael
Team-XBMC Forum Moderator
Posts: 6,339
No, "Custom shutdown timer" is absolute... the countdown starts immediately when this is set and it will shutdown (power-off) the system when the set time has elapsed regardless of what XBMC may or may not be doing at the time (e.g., right in the middle of watching a video). On the other hand, the "Shutdown function timer" will not start counting down until XBMC is idle. When the specified amount of idle time has elapsed, then the user-specified "Shutdown function" (Quit, Suspend, Shutdown, etc.) will be invoked. If you're listening to music or watching a video, the shutdown function timer doesn't start.
Posts: 14
Joined: Oct 2010
Reputation:
1
dtweb
Junior Member
Posts: 14
I understand.
I change my question: can I change the "Custom shutdown timer" action?
Thanks
Posts: 14
Joined: Oct 2010
Reputation:
1
dtweb
Junior Member
Posts: 14
It was very simple:
1. Open C:\Program Files\XBMC\addons\skin.confluence\720p\DialogButtonMenu.xml
2. In button id=4 change command after "shutdowntimer"
<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.PlayerControl(Stop))</onclick>
Posts: 6,339
Joined: Jul 2010
Reputation:
116
artrafael
Team-XBMC Forum Moderator
Posts: 6,339
Nice. I've never used the AlarmClock function before, but your implementation has piqued my curiosity about using this function in my setup somehow.
Posts: 1
Joined: Aug 2014
Reputation:
0
Hi
I use XBMC on my raspberry pi. Do you know if this is possible on there as well? And if so how do i set it up?
Note: i know very basic commands so any help is very helpful
Cheers