PDA

View Full Version : Any way of doing this?



MadScientist
2008-02-14, 07:14
Is there any way I can get SqueezeCenter to run a script when its starts up? It would need to do this when it starts up again each time my server comes out of standby. My server being a Dell PC running XP pro.

The reason for this rather unusual request is that I want to have the server in standby mode when not being used and to be able to control the time between SB3 ceasing activity and the machine going back into standby (several good reasons for this which I won’t bore you with).

At the moment this is not possible since the PC goes back to standby 2 min after SB3 activity ceases and it does not appear possible to change this. If I can run a script to simulate a key press on SqueezeCenter start, then the time to standby should come under control of the Windows power management settings which I can modify to suit.

Any help appreciated

MS

danco
2008-02-14, 09:38
There is the Execute Script plugin, which lets you run scripts from the Squeezebox, rather than from SqueezeCenter. I think you could do what you want with it.

I don't use a PC, so I have no idea what the actual script should be.

On my Mac, I use a little program that keeps it alive and I run a script to start that program and another to quit it.

pichonCalavera
2008-02-14, 10:33
Since the software is open-source, I\'ve done something similar (executing a script at shutdown of Squeezecenter), adding some lines of code to the stop process, but I use Debian Etch and I modify /etc/init.d/squeezecenter (the startup script in Debian), not sure if on Windows XP this can be acomplished, as maybe this is done a bit different. Right now I\\\'m not at reach of my server, so I\\\'m going to check when I get home.

Honva
2008-02-14, 10:48
Is there any way I can get SqueezeCenter to run a script when its starts up? It would need to do this when it starts up again each time my server comes out of standby. My server being a Dell PC running XP pro.

The reason for this rather unusual request is that I want to have the server in standby mode when not being used and to be able to control the time between SB3 ceasing activity and the machine going back into standby (several good reasons for this which I won’t bore you with).

At the moment this is not possible since the PC goes back to standby 2 min after SB3 activity ceases and it does not appear possible to change this. If I can run a script to simulate a key press on SqueezeCenter start, then the time to standby should come under control of the Windows power management settings which I can modify to suit.

Any help appreciated

MS

Just curious. The time interval you described could easily be adjusted with the Windows Power management setting in control panel. Why do you need a plugin to do that?

MadScientist
2008-02-14, 10:59
Just curious. The time interval you described could easily be adjusted with the Windows Power management setting in control panel. Why do you need a plugin to do that?

No, that's the problem. The time to sleep after a wake-on-lan can't be controlled by XP power management. It's 2 minutes - like it or not. Once a key is pressed then it does come under my control and this is waht I want to emulate

pichonCalavera, Thanks, although I'm not sure I'm in the modifying SC code league.

MS

radish
2008-02-14, 11:35
I don't think you really want to run the script when SS starts up, you want to run it when the machine comes out of sleep. SS remains "running" even when the machine is asleep, it doesn't really know when it's woken up. What you want is something which can hook into windows' power management states and trigger the script (or whatever) on a state change.

MadScientist
2008-02-14, 14:24
I don't think you really want to run the script when SS starts up, you want to run it when the machine comes out of sleep. SS remains "running" even when the machine is asleep, it doesn't really know when it's woken up. What you want is something which can hook into windows' power management states and trigger the script (or whatever) on a state change.

Agreed, Any suggestions on a utility that could achieve this aim?

MS

radish
2008-02-14, 14:52
Agreed, Any suggestions on a utility that could achieve this aim?

MS

A quick google found these possibilities:

http://www.filedudes.com/WakeUp-screenshot-14916.html
http://www.nncron.ru/ (look at the plugins on the download page, specifically "rstimer.spf")

MadScientist
2008-02-15, 00:59
A quick google found these possibilities:

http://www.filedudes.com/WakeUp-screenshot-14916.html
http://www.nncron.ru/ (look at the plugins on the download page, specifically "rstimer.spf")

Many thanks. I found Arksoft Hibernator which is supposed to run tasks etc. on wake. I played with it for a couple of hours last night - completely useless! I'll give your finds a go. Thanks again.

MS