Skip to main content
Topic: Deactivate standby of monitor (with speakers) during playback (Read 12320 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Deactivate standby of monitor (with speakers) during playback

Hi!

Is there any solution to deactivate monitor standby during the playback? My speakers in my monitor so they turn off when the monitor goes to standby.
Foobar 1.0 - FooNight 1.1c Theme

Deactivate standby of monitor (with speakers) during playback

Reply #1
it's not automatic but you could create desktop shortcuts to run these commands.

//stop the monitor from going into standby
Code: [Select]
powercfg -x -monitor-timeout-ac 0


//reset it back to the default 15 minutes
Code: [Select]
powercfg -x -monitor-timeout-ac 15


these commands work on vista/7 - not xp. i'm pretty sure these will require that you're logged on as an administrator.

you could even use foo_run to create buttons in foobar to run these commands.

Deactivate standby of monitor (with speakers) during playback

Reply #2
But it's a good suggestion to add such an option to foobar2000.

Deactivate standby of monitor (with speakers) during playback

Reply #3
Thx the advice.

But I kept hoping, there is a built in function or script in foobar, what makes it automatically.
Foobar 1.0 - FooNight 1.1c Theme

Deactivate standby of monitor (with speakers) during playback

Reply #4
But it's a good suggestion to add such an option to foobar2000.


How can I suggest it?
Foobar 1.0 - FooNight 1.1c Theme

Deactivate standby of monitor (with speakers) during playback

Reply #5
Now you have

Deactivate standby of monitor (with speakers) during playback

Reply #6
Sorry to revive this old thread, but i think this has not been addressed...

It would be great, because it happens with hdmi too.
For example: if windows suspends the monitor while doing playback this will result in an audio dropout, which is logical since hdmi needs the video clock to transmit audio.

Disabling monitor shutdown in the power manager prevents this from happening, but its preferable to disable monitor shutdown only when doing playback

i probably will end-up using a dedicated spdif cable, but not everyone can do this due to hardware limitations

Deactivate standby of monitor (with speakers) during playback

Reply #7
+1

I've also had to configure Power Options to set "Turn off the monitor" to "never and am using a blank screensaver only. Obivously, this is not the most environment friendly power setting.

Deactivate standby of monitor (with speakers) during playback

Reply #8
+1 , as in near future I plan to more often use my amplituner to listen to music from PC and I already have HDMI cable hidden in baseboard...

Deactivate standby of monitor (with speakers) during playback

Reply #9
as a work-around solution, foo_scheduler can run power config commands automatically on playback start/stop, or by timed events, etc.

Deactivate standby of monitor (with speakers) during playback

Reply #10
I made a component that stops monitor from entering standby when playback is active. I think it's better than running powercfg commands. Download here.

Deactivate standby of monitor (with speakers) during playback

Reply #11
Thank you!

Deactivate standby of monitor (with speakers) during playback

Reply #12
Case, is there any config option for your plugin? Like turning it on or of?? How exactly it works? Is there any documentation for it ?

Deactivate standby of monitor (with speakers) during playback

Reply #13
documentation for this?

Quote
I made a component that stops monitor from entering standby when playback is active.


what more needs to be said? i guess it simply tells the OS to keep the monitor on much like a video player does.

Deactivate standby of monitor (with speakers) during playback

Reply #14
There is nothing to configure. When the playback starts it tells the operating system that display is required. When you hit pause or stop it tells the OS that display is no longer needed, letting normal power saving features do their thing. If you want this behavior you install the component and forget it.

Deactivate standby of monitor (with speakers) during playback

Reply #15
@marc
My exact questions are:
1. Does this component turns off screensaver and powering down of screen only when foobar plays music or maybe whatever foobar is doing, like converting music, calculating BPMs, just running idle etc. ?
2. Does this plugin require foobar to be on focus or maybe foobar can be minimized and running in background and it still works?
3. How it "simply tells the OS to keep the monitor" in details? I am using COMODO Firewall pro with Proactive Defense. If it sends Windows Messages or acesses memory of some system process I need to configure Comodo first as this can cause problemws with Windows UI (blank screen can stall and only power reset can help).
4. Is there any option to stop functionality of this plugin without deinstallation from foobar? Until now I haven't found such option in foobar, but maybe I wasn't careful enough. OK, now it's answered

Documentation should contain answers to such questions

Deactivate standby of monitor (with speakers) during playback

Reply #16
1. Screensaver has nothing to do with power management. Its settings are not touched. Display power saving is disabled only when playback is active.
2. No requirements.
3. Windows has a function SetThreadExecutionState to do that.

 

Deactivate standby of monitor (with speakers) during playback

Reply #17
Many thanks Case !! For both programming effort and explanations  . You got new user

Deactivate standby of monitor (with speakers) during playback

Reply #18
It seems that Microsoft has changed the behavior of the SetThreadExecutionState function. Its documentation says "This function does not stop the screen saver from executing", yet it very much does so. At least on Windows 7 and Windows 8.
I tried the newer PowerSetRequest function with the same result. Screen saver won't run when using the PowerRequestDisplayRequired value.
Sorry for giving misinformation earlier.

Deactivate standby of monitor (with speakers) during playback

Reply #19
Case, could you add some simple option that would allow to control weather use or not use your plugin functionality? I mean that it would be nice if I could create keyboard shortcut which would allow to turn it on or off. Depending on output used, this option is required (HDMI output) or not (PC speakers connected to soundcard jack outputs). It could be nice if I could simply press  "Shift+S" (this is how it would be configured here  ) and disable this function and save some power used by PC monitor if I not use HDMI output at the moment.

Deactivate standby of monitor (with speakers) during playback

Reply #20
You could always turn the monitor off with its power button, but I updated it with this option. It's found under Playback in main menu. Download is here.

Deactivate standby of monitor (with speakers) during playback

Reply #21
Case, could you add some simple option that would allow to control weather


Damn users, always thinking everything is so simple to program!

Deactivate standby of monitor (with speakers) during playback

Reply #22
dhromed - I didn't mean "simple to code" but simple in usage, simple as a working routine. I treasure all programming efforts, of all people who contribute to foobar's usability. I know how hard is coding of anything - I tried to learn how to do it in C++ and assembler but I failed and in the end the only code that I am able to produce is MatLab script. Mostly when MatLab's help is opened all the time.
Other thing is that I only asked. He could simply say "no" or "no, I don't have time for it" if he wanted to be more precise  .
Thanks Case for this update


Deactivate standby of monitor (with speakers) during playback

Reply #24
LOL... lolzords... I am bit embarassed now :/
But hey, why not? We are making so much efforts to create proper weather forecasts and after so many years they're still imprecise. Why not to control weather instead of forecasting it? Foobar will be the first on planet...
Additionally after so many years of lerning English I got only slightly better results than with C++... I should stick with MatLab then... :/

 
SimplePortal 1.0.0 RC1 © 2008-2019