Old 25th July 2012, 18:30   #1
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Stop PC Sleep when Winamp Playing

I am sure the setting is in there somewhere, but I can't find it at the moment.

Is there a setting in Winamp to stop my PC falling asleep when playing tunes? I spotted the option to kill the screensaver for video playback, but can't spot the "no sleep if audio playback" option.

I know this is probably right under my nose, so feel free to abuse me when giving me an answer.

Trying to cook with Winamp on in the background means having to keep kicking the keyboard to bring it back to life.
Batter Pudding is offline   Reply With Quote
Old 25th July 2012, 20:40   #2
Aminifu
Forum King
 
Aminifu's Avatar
 
Join Date: Aug 2011
Location: Chicago, IL
Posts: 4,564
I don't think WA has that option. I suggest temporarily disabling sleep in the Windows power options when you don't want your system to sleep.

If I'm wrong about there being a WA option, this will at-least get the job done until the option is found.

Winamp Pro 5.666.3516 fully-patched - Komodo X Touchscreen by Victhor skin
Windows 10 Home 64-bit desktop - Logitech Z906 5.1 speaker system
Aminifu is offline   Reply With Quote
Old 25th July 2012, 20:56   #3
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Yeah - I can temporarily turn off sleep at OS level. Could even do it as a script when starting Winamp. Just would have been easier if it was an option like with video playback. When I saw that video option, I assumed there was an Audio one I had missed.

I usually play all my audio\video on a different PC where Sleep is permanently off. So not thought about this one before.

I'll just keep swearing and kicking the mouse until I get the main AV machine back up and running. That one needs a brutal upgrade to match the new TV screen.
Batter Pudding is offline   Reply With Quote
Old 25th July 2012, 21:28   #4
Aminifu
Forum King
 
Aminifu's Avatar
 
Join Date: Aug 2011
Location: Chicago, IL
Posts: 4,564
Ok, try using an alternating foot. We all need to get our exercise in, one way or another.

Winamp Pro 5.666.3516 fully-patched - Komodo X Touchscreen by Victhor skin
Windows 10 Home 64-bit desktop - Logitech Z906 5.1 speaker system
Aminifu is offline   Reply With Quote
Old 14th August 2012, 14:35   #5
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Anyone else who is having this problem may want to try this trick:

Make a custom power profile with the relevant "Don't Sleep when I play Music" options selected as required.

Then dump shortcuts to it onto your desktop. Simples as the Meerkat would say.

http://www.sevenforums.com/tutorials...ower-plan.html
Batter Pudding is offline   Reply With Quote
Old 15th August 2012, 08:23   #6
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Does the attached solve your ails?

Last edited by thinktink; 15th August 2012 at 23:22.
thinktink is offline   Reply With Quote
Old 15th August 2012, 19:50   #7
MrSinatra
Forum King
 
MrSinatra's Avatar
 
Join Date: Dec 2004
Location: WKPS, State College
Posts: 5,185
Send a message via AIM to MrSinatra
it is something that should be built in, WMP has such a thing i think, (altho it might only cover video). preventing screensaver should prevent sleeping.

PENN STATE Radio or http://www.LION-Radio.org/
--
BUG #1 = Winamp skips short tracks
Wish #1 = Multiple Column Sorting
Wish #2 = Add TCMP/Compilation editing
MrSinatra is offline   Reply With Quote
Old 15th August 2012, 22:09   #8
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by MrSinatra View Post
it is something that should be built in, WMP has such a thing i think, (altho it might only cover video). preventing screensaver should prevent sleeping.
...but did it work? I need to know that so I know whether or not to develop it further or throw the source code into the eternal bit bucket in the sky.
thinktink is offline   Reply With Quote
Old 15th August 2012, 22:37   #9
DrO
 
Join Date: Sep 2003
Posts: 27,880
(note: i've not tried it as i'm in the middle of something else and cannot afford the machine to shutdown)

i know the way used to be to check for one of the globally broadcast power messages and then return a specific value which makes the OS abort it from happening - at least that's what i remember having to do in the autofs plug-in (but people keep saying that doesn't work so i don't know if Vista / Win 7 do it differently or not now).

-daz
DrO is offline   Reply With Quote
Old 15th August 2012, 23:21   #10
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
I've introduced new code to handle Vista/7. Updated plugin attached.

Last edited by thinktink; 16th August 2012 at 05:18.
thinktink is offline   Reply With Quote
Old 16th August 2012, 05:16   #11
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
So one of my friends with a Win7 laptop visited me. I tested the plugin with her machine and it didn't work when you have the setting for it to ask for a password for screensavers set. This next version worked on the Win7 machine, even with maximum power saving settings paranoia active. Attached.

Last edited by thinktink; 26th January 2013 at 20:43.
thinktink is offline   Reply With Quote
Old 3rd April 2013, 15:30   #12
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
For those of you interested in this plugin, it is, at the moment, still on the plugin review queue.

This post is in response to a recent PM.
thinktink is offline   Reply With Quote
Old 3rd April 2013, 15:46   #13
MrSinatra
Forum King
 
MrSinatra's Avatar
 
Join Date: Dec 2004
Location: WKPS, State College
Posts: 5,185
Send a message via AIM to MrSinatra
i'll def give your plugin a shot when next available. til then, here is a lil useful utility I have used in the past for all kinds of times when I needed to be sure the machine was up and available:

http://forums.winamp.com/showthread.php?t=354151

PENN STATE Radio or http://www.LION-Radio.org/
--
BUG #1 = Winamp skips short tracks
Wish #1 = Multiple Column Sorting
Wish #2 = Add TCMP/Compilation editing
MrSinatra is offline   Reply With Quote
Old 3rd April 2013, 17:38   #14
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Eh? Weird. I started a thread, subscribed, lots of people started talking... including someone building me a plugin - but I didn't get the notifications. I think my Google's spam box must be eating these messages as this goes to my ISP account.

thinktank: as the OP of this thread I'll test any plugin you have. Thanks for trying to create one. I just wish I had seen the emails about it. Trouble is now I am so late back to this thread I can't see any attachments. Have got a freshly built Win7 PC on the go which also helps throw up unexpected issues.
Batter Pudding is offline   Reply With Quote
Old 3rd April 2013, 19:17   #15
MrSinatra
Forum King
 
MrSinatra's Avatar
 
Join Date: Dec 2004
Location: WKPS, State College
Posts: 5,185
Send a message via AIM to MrSinatra
in my exp, email notification from this forum is spotty at best, it might not be your setup.

PENN STATE Radio or http://www.LION-Radio.org/
--
BUG #1 = Winamp skips short tracks
Wish #1 = Multiple Column Sorting
Wish #2 = Add TCMP/Compilation editing
MrSinatra is offline   Reply With Quote
Old 9th May 2013, 04:19   #16
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Found another request for this plugin so I'm attaching the same version that's currently been on the review queue for 6+ months now.




Last edited by thinktink; 18th May 2013 at 17:46.
thinktink is offline   Reply With Quote
Old 9th May 2013, 08:33   #17
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Oooo - toys. I'll download and go play with it. Thanks Thinktink
Batter Pudding is offline   Reply With Quote
Old 9th May 2013, 11:43   #18
DrO
 
Join Date: Sep 2003
Posts: 27,880
and it's going to remain in the queue as i stopped doing it (i know i said i'd try to before giving up doing it but that never happened due to paid work needing to be done) and i don't have access to the review queue anymore.
DrO is offline   Reply With Quote
Old 9th May 2013, 11:49   #19
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Hi DrO: No need for any fancy special tool for me. I'd rather you keep your sanity and have some free time away freom this madness.

I have found one trick round this - kick in a full screen visualisation and Winamp keeps the PC alive. A simple answer.

I will play with this BogProgAwake thing of thinktank's and see what it is. If the phones ever stop ringing today....
Batter Pudding is offline   Reply With Quote
Old 9th May 2013, 11:54   #20
DrO
 
Join Date: Sep 2003
Posts: 27,880
i lost my sanity too long ago
DrO is offline   Reply With Quote
Old 9th May 2013, 12:07   #21
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Quote:
Originally Posted by DrO View Post
i lost my sanity too long ago
Doesn't surprise me. I had assumed that is why you are here, on this forum for the mentally unstable. The Media Player is just a cover, really this is a Care in the Community scheme. Keeping the mad, paranoid and insane away from the general public.
Batter Pudding is offline   Reply With Quote
Old 14th May 2013, 13:20   #22
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Batter Pudding View Post
...

I will play with this BogProgAwake thing of thinktank's and see what it is. If the phones ever stop ringing today....
Had a chance to play with it yet?

Very minor point of note: You misspelled my handle.
thinktink is offline   Reply With Quote
Old 14th May 2013, 16:48   #23
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Quote:
Originally Posted by thinktink View Post
Had a chance to play with it yet?

Very minor point of note: You misspelled my handle.
Ah - sorry thinktink, my brain clearly failed that day. I even remember reading your handle twice to check the spelling. I was getting lost in thinking about thanking and tanked the typing.

Have not had much spare time lately. So I am going to go and install it NOW and fiddle with it. Fire some tunes up while I cook dinner I think.

Installed - and just noticed you clearly were time travelling on 7/10/2012 as you name the DLL after me - gen_bpawake.dll - I assume BP is Batter Pudding...
Batter Pudding is offline   Reply With Quote
Old 14th May 2013, 20:18   #24
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
All of my plugins start with "[typename]_bp" infront of the plugin name. Makes it easier to find them in the folders and what-not.

in_bpxfade.dll
dsp_bplivewire.dll
out_bpzeropointer.dll
dsp_bpzeropointer.dll
gen_bpwebjockey.dll
bpembededart.w5s
gen_bpembededart.dll
gen_bpthinktink.dll
gen_bpkeepalive.dll
in_bpopus.dll
gen_bpclocker.dll
out_bpdiskwrite.dll
in_bplivein.dll
gen_bpsamsend.dll

(I think that's all of them...)
thinktink is offline   Reply With Quote
Old 18th May 2013, 13:38   #25
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
A quick bit of feedback on BogProgAwake.

Great little tool. Thanks. It certainly works on this Win7 PC. When Winamp is running, the PC stays awake. Close Winamp and sleep mode kicks back in. Nicely done. No more having tracks suddenly cut out while I am cooking dinner.

The only thought I have had is it would be nice to be able to have it stay awake when playing a track. And fall asleep when paused \ stopped. If there is a simple "Is Winamp playing music\video?" test it would be nice to make use of this.

Great little plug-in. Thanks again.
Batter Pudding is offline   Reply With Quote
Old 18th May 2013, 15:10   #26
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Batter Pudding View Post
...

The only thought I have had is it would be nice to be able to have it stay awake when playing a track. And fall asleep when paused \ stopped. If there is a simple "Is Winamp playing music\video?" test it would be nice to make use of this.

...
That's odd as I'm doing the test to see if Winamp is playing. I'll have another look at the source.
thinktink is offline   Reply With Quote
Old 18th May 2013, 15:16   #27
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Quote:
Originally Posted by thinktink View Post
That's odd as I'm doing the test to see if Winamp is playing. I'll have another look at the source.
I have been watching this carefully. Generally I have Winamp open a lot in the day time as I also download podcasts with it. That is why I spotted that even when stopped Winamp was holding the PC awake. The moment I killed Winamp the sleep timer would kick back in.

(My PC is comically noticeable as it falls asleep. The Subwoofer make a loud "wompf" sound as it the power is cut as it falls asleep...)
Batter Pudding is offline   Reply With Quote
Old 18th May 2013, 17:45   #28
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Batter Pudding View Post
...The Subwoofer make a loud "wompf" sound as it the power is cut as it falls asleep...
Generally that's not good if it's loud enough to cause the Sub to rip and become damaged.

Anyways, try the new attached. I didn't change alot of anything, just some changes based on some theoretical guess work that doesn't functionally change anything. The structure of the internals are still the same. So I don't know if this will actually resolve the issue or not but try it anyways. Sometimes my guesses are correct.

Last edited by thinktink; 21st June 2013 at 22:04.
thinktink is offline   Reply With Quote
Old 22nd May 2013, 14:42   #29
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
My whomfing woofer has been whomfing away merrily for ten years or so now. It is not a "max volume" type noise, just noticeable as it falls asleep. The speakers are Yamaha made and doing decent service still over the years.


I am back from a long weekend and I'll sling your new Awake plugin into Winamp later this afternoon and give you some feedback. If I spot no obvious difference with the sleepy code, I am happy to have message boxes or stuff like that put in for testing. Thanks for looking at the code.
Batter Pudding is offline   Reply With Quote
Old 23rd May 2013, 11:43   #30
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Your theoretical guesswork that didn't change anything did the trick. The changes you didn't do combined with the guesses that were implemented combined to create a different result.

Now - music playing the PC stays awake. Music not playing - PC falls asleep.

Perfection I thank you.

Now... back to The Smiths while I get some work done. Thanks to your fix I can now walk away for half an hour and still have the music playing. Ideal.
Batter Pudding is offline   Reply With Quote
Old 23rd May 2013, 13:16   #31
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
That was a little unexpected. I'll have to review the changes and commit it to memory!

Good to know it's now working as expected.

thinktink is offline   Reply With Quote
Old 23rd May 2013, 13:33   #32
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
Ahhh... the unexpected... NOBODY expects the Spanish Inquisition! Our chief weapon is surprise...surprise and fear...fear and surprise.... Our two weapons are fear and surprise...and ruthless efficiency.... Our *three* weapons are fear, surprise, and ruthless efficiency...and an almost fanatical devotion to the Pope.... Our *four*...no... *Amongst* our weapons.... Amongst our weaponry...are such elements as fear, surprise.... I'll come in again.


The key is it is working now as expected. Time to nail down the code and say "Jobs a good 'un". (Unless that is "Steve" Jobs who clearly wasn't a good 'un with all that iCash he sat on...)

As to committing the changes to memory... if you didn't change anything except what was guessed then you are going to confuse the poor old brain cells by trying to guess which bit of nothing to memorise.


I think I may be working too hard... brain is going a little bonkers...
Batter Pudding is offline   Reply With Quote
Old 21st June 2013, 22:02   #33
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Oh nice, it passed review muster.

http://www.winamp.com/plugin/details/222640

The plugin on the plugins page is the same as the one posted above here so you don't need to download it again if you've already downloaded it from this thread.

thinktink is offline   Reply With Quote
Old 6th September 2014, 21:09   #34
ccc---
Junior Member
 
Join Date: Sep 2014
Posts: 5
Sorry for reviving this old thread.

I just installed this plugin and it works fine so far.

However, my energy options are set so that the screen turns of after 10 minutes and the PC goes to sleep mode after 30 minutes. Would be great if the plugin would let the PC turn of the screen after 10 minutes. I don't want the monitor to be switched on while playing music for hours ...
ccc--- is offline   Reply With Quote
Old 7th September 2014, 02:08   #35
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by ccc--- View Post
...Would be great if the plugin would let the PC turn of the screen after 10 minutes. I don't want the monitor to be switched on while playing music for hours ...
Heh, I completely forgot about this plugin.

Long story short, the plugin was specifically designed to keep both the monitor and the computer awake to keep the computer from going into both sleep mode OR the logout screen (which then allows sleep mode later on) which is what the OP was being frustrated by. Both of these functions have to be running simultaneously or the computer finds some excuse to go into total sleep mode ultimately. The Windows Vista/7/8 power management APIs are a bit wonky and the MSDN descriptions are not entirely accurate as far as intended outcome.

Because of these factors, I'm currently of the belief that putting in said functionality would render the plugin completely impotent on Windows Vista/7/8 due to the wonkyness of the power APIs on those Operating Systems.
thinktink is offline   Reply With Quote
Old 7th September 2014, 06:52   #36
ccc---
Junior Member
 
Join Date: Sep 2014
Posts: 5
That's a pity :-(

Like described in this thread

http://forums.winamp.com/showthread.php?t=379215

I had the behaviour that the screen turns off, but the PC wouldn't go into sleep mode when Winamp was playing songs. That was perfect for me to protect my monitor but still playing music with Winamp. I didn't have to switch anything for that behaviour, it was there "automatically". Maybe this had really something to do with the onboard sound that I used (I had to buy a PCIe sound card now as my onboard sound didn't work anymore).
ccc--- is offline   Reply With Quote
Old 7th September 2014, 12:23   #37
DrO
 
Join Date: Sep 2003
Posts: 27,880
simple solution is to use the plug-in and turn of the monitor when you don't need to use it. as what you were seeing previously was definitely not a native Winamp feature and if you didn't have this plug-in present before, then it's got to be something to do with the old on-board soundcard i.e. a driver setting or something like that.
DrO is offline   Reply With Quote
Old 7th September 2014, 14:22   #38
Aminifu
Forum King
 
Aminifu's Avatar
 
Join Date: Aug 2011
Location: Chicago, IL
Posts: 4,564
Hi ccc---,

Unless you're still using a CRT monitor, you don't have to worry about burn-in of images. Screen savers are now used for their entertainment value with non-CRT monitors. I use "Marine Aquarium 3.2" (http://www.serenescreen.com/product/maquarium3/). I highly recommend it.

As DrO says, simply turning the monitor off gains you more (lower cost of electricity, less wear, less waste heat, etc.) than letting it switch to low-power mode. However, the waste heat from my computer equipment is great when the outside temps drop (I am in Chicago).

Winamp Pro 5.666.3516 fully-patched - Komodo X Touchscreen by Victhor skin
Windows 10 Home 64-bit desktop - Logitech Z906 5.1 speaker system
Aminifu is offline   Reply With Quote
Old 7th September 2014, 14:32   #39
DrO
 
Join Date: Sep 2003
Posts: 27,880
also with newer graphics cards, they can also switch off more of their functionality so turning off the monitor can save more energy than used to be the case (monitor usage vs monitor + GPU usage).
DrO is offline   Reply With Quote
Old 7th September 2014, 20:20   #40
ccc---
Junior Member
 
Join Date: Sep 2014
Posts: 5
Thanks for the info guys. It was just very comfortable the way it was before because I didn't have to care of anything. The monitor turned off but the music still kept playing. But I will just accustom myself to switch off the monitor when I will be afk for a longer time.

In the meantime I am pretty sure that the onboard sound must have had some feature so that the PC didn't go to sleep mode when there was any sound output ...
ccc--- is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump