jueves, 31 de marzo de 2011

From time to time I write stuff here that I might forget... so here it goes

in windows the power control is done with this program powercfg , now you can make windows Not look at different programs that might be blocking your PC for going into sleep mode with this command:

powercfg -requestsoverride

now if the RAS, ( PPTP ) is not allowing your PC to go to sleep there's an easy fix you can type this:

powercfg -requestsoverride Service RasMan System

and then one would expect the thing to just go away but there's more to it... or there can be more to it, first of all in power settings ( look around control panel... or type the word power on search on the start button ) there you can do several things: ( in case this fails )

1-Create a whole new profile ( to the right of the power control )
2-Edit the power profile to:
1m power down the monitor
2m sleep
3m hibernate
this is for testing, if it does not sleep or hybernate you can just again re-make a new power profile
3-on a powershell do this: powercfg -requestsoverride Service RasMan
This will remove the Rasman from the exceptions then you can just re-add it by typing:
powercfg -requestsoverride Service RasMan System
4-To see what's overriden again type powercfg -requestsoverride
5-If with this you can't get it to sleep try a powercfg -ENERGY to see what other stuff is in there stopping the sleep mode
6-Try this also to see what's in the way: powercfg -requests
7-Remember you can ALWAYS remove any driver/system app or whatever just by using powercfg -requestsoverride
8- to see how to fill it up use the powercfg -requests, you'll get something like this:
C:\Windows\system32>powercfg -REQUESTS

[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume5\Users\chuby\AppData\Roaming\mjusbsp\magicJack.


So I could remove the sound card like this:
powercfg -requestsoverride Service "Realtek High Definition Audio" System

The last word is what you see when you use the request mode it can be:


that's all for now... thanks

No hay comentarios: