Help - Search - Members - Calendar
Full Version: A simple sleep timer?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
krawnight
So I was really hoping to find a nice, simple sleep timer option for foobar. I love listening to music while I go to sleep, but it is a waste of electricity to have the computer run all night. I know this is not the first thread to ask for it, but I would love to have some simple addon that just lets me specify a number of minutes to play music, and then say an option for Close Foobar/Hibernate/Shutdown Windows, etc.

Or a more complex addon if need be.

I tried using Foobar Scheduler, but it just doesn't work for me. I can't select any actions (do I actually have to type them all in manually?) and even when I do, it just doesn't seem to work. Furthermore, the project seems abandoned anyway.

Any suggestions people have would be great, thanks!
bimbel
What I'm doing to is this:

Download this little collection of windows command line utilities: http://www.microsoft.com/technet/sysintern...psshutdown.mspx

Copy the files to a executable path (C:\Programme\Misc\ or whatever) and then you can call it via commandline!

Go to Start -> Run
and put the following in:

C:\Programme\Misc\psshutdown.exe -f -k -c -t 3600

Will give you this window:
IPB Image

Then turn off your monitor and go to bed! smile.gif
eevan
I'm using Switch Off 2.3, nice small free utillitiy (63KB installer) which even has an embedded mini http server, so you can control the utillity, for example, via mobile phone's WAP browser.

But I cannot find it on the web or ftp servers anymore, so if you are interested, send me an PM and I can e-mail the installer to you.
cristox
shutdown.exe is included in xp.
no need to download anything.


Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m computername] [-t xx] [-c "comment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
2Pacalypse
download foo_schedule

edit: sorry didnt read whole post
eevan
QUOTE(cristox @ Sep 23 2007, 14:37) *
shutdown.exe is included in xp.
no need to download anything.

shutdown.exe is ok for immediate shutdown or restart.

Switch Off has the countdown mode, no need to use task scheduler to run the shutdown.exe.

IPB Image
s33m33
DShutdown. i can't imagine life without it smile.gif
Its small, standalone, freeware.

Get it here:
http://dimio.altervista.org/eng/

IPB Image
kanak
foo_scheduler is the plugin you're looking for.
cristox
QUOTE(eevan @ Sep 23 2007, 18:12) *


shutdown.exe is ok for immediate shutdown or restart.

Switch Off has the countdown mode, no need to use task scheduler to run the shutdown.exe.



Shutdown.exe has a countdown, too.

CODE

-t xx Set timeout for shutdown to xx seconds


READ my first post in this thread.
eevan
I've been using shutdown.exe before I found Switch Off, but I hated to convert time to seconds. That's why I said that it's good for immediate action.

I should've explained a little more... Sorry

Anyway, s33m33 suggested a program with even more capabilities, it's worth looking at.
LXtreme
Before i add further suggestions, let's sum up what we found out so far:

1.) Like cristox said, there is no need to download anything, if you want to work with the commandline.
The shutdown.exe shipped with windows does it all

2.) If you (like me) are to lazy to use the commandline, there are a lot of UI-tools, which might be more convenient to use.
DShutdown, Switch Off, PowerOff and ShutdownPro are just a few of them.
Besides providing a GUI for the shutdown they add further possibilities like shutting down at a certain time.
(You can also do this via commandline, but you would have to calculate the seconds left until the wanted shutdown-time by yourself tongue.gif)

other suggestions:

3.) As i do not want dozens of small programms to start with windows, i use my ir-remote-cotrol-software which autostarts anyway.
i predefined a few commandlines (60mins, 30mins, immediatly, ...) using the shutdown.exe and just have to activate them with my remote.

4.) Similar to this you could predefine commandlines for the shutdown.exe in foo_run
to activate them from within foobar.
Additionally you can add buttons to your foobar-layout which use these foo_run-commands.

an idea/suggest/request that just came to my mind:
a shutdown-plugin for foobar (using the shutdown.exe) which offers possibilities like "shutting down after finishing the current playlist". i have no idea if the effort doing this is in any relation to the use of such a plugin...just an idea....
Edit: another feature for a sleep-timer-plugin would be to decreasingly fade down the volume after a certain time to a specific volume before shutting down (like it is possible in mediamonkey e.g.).
kanak
QUOTE(LXtreme @ Sep 23 2007, 16:17) *

Before i add further suggestions, let's sum up what we found out so far:
<snip>


You guys are totally overlooking foo_scheduler. It does what you want!
krawnight
QUOTE(kanak @ Sep 23 2007, 14:54) *

You guys are totally overlooking foo_scheduler. It does what you want!



It looked like exactly what I wanted, but like I said, I was having issues. I couldn't find a list of actions and apparently had to enter all the actions manually. Even when I did, the timer still wasn't working.

Also, like I said, it seems like it's been abandoned.
kanak
QUOTE(krawnight @ Sep 23 2007, 22:10) *

It looked like exactly what I wanted, but like I said, I was having issues. I couldn't find a list of actions and apparently had to enter all the actions manually. Even when I did, the timer still wasn't working.

Also, like I said, it seems like it's been abandoned.


Strange... it's working perfectly fine for me. Here's how i use it:

1. From the "events list", click add "date time event", enter the date and time when i want it to shut down
2. From the "actions list", click add, enter a name for the event e.g. "turn off pc"
3. right click the newly created action ("turn off pc"), under "add action" -> "shutdown" and select "hibernate" (or shutdown if you prefer).

works like a charm!
krawnight
QUOTE(kanak @ Sep 23 2007, 18:30) *

QUOTE(krawnight @ Sep 23 2007, 22:10) *

It looked like exactly what I wanted, but like I said, I was having issues. I couldn't find a list of actions and apparently had to enter all the actions manually. Even when I did, the timer still wasn't working.

Also, like I said, it seems like it's been abandoned.


Strange... it's working perfectly fine for me. Here's how i use it:

1. From the "events list", click add "date time event", enter the date and time when i want it to shut down
2. From the "actions list", click add, enter a name for the event e.g. "turn off pc"
3. right click the newly created action ("turn off pc"), under "add action" -> "shutdown" and select "hibernate" (or shutdown if you prefer).

works like a charm!



Damn. I wish I found clear instructions like this when I got the plugin. Thanks a bunch!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.