Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: A simple sleep timer? (Read 16606 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A simple sleep timer?

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!

A simple sleep timer?

Reply #1
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:

A simple sleep timer?

Reply #2
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.
If age or weaknes doe prohibyte bloudletting you must use boxing

A simple sleep timer?

Reply #3
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 [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)

A simple sleep timer?

Reply #4
download foo_schedule

edit: sorry didnt read whole post

A simple sleep timer?

Reply #5
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.

If age or weaknes doe prohibyte bloudletting you must use boxing


A simple sleep timer?

Reply #7
foo_scheduler is the plugin you're looking for.

A simple sleep timer?

Reply #8
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: [Select]
-t xx Set timeout for shutdown to xx seconds


READ my first post in this thread.

A simple sleep timer?

Reply #9
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.
If age or weaknes doe prohibyte bloudletting you must use boxing

A simple sleep timer?

Reply #10
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  )

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.).

A simple sleep timer?

Reply #11
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!

A simple sleep timer?

Reply #12
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.

A simple sleep timer?

Reply #13
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!

A simple sleep timer?

Reply #14

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!