Log in

No account? Create an account
08 Август 2012 @ 23:22
Вырубаем систему Win7 кнопкой Sleep на клавиатуре  
По умолчанию, в отличии от XP, такой возможности назначения действий нет. Поэтому решение такое:
Открываем реестр под админом. Далее:
[Если актуально - жми сюда]
Hello. I have a laptop and a desktop computers, both running Windows 7 Pro x64. On laptop, I can set the sleep button to Shut Down (I guess, I don't have the laptop here now so I cannot confirm). I would like to set the DESKTOP computer's sleep button action to Shut Down, but this option is not available (I have disabled hibernation, so sleep is the only option in advanced power settings -> sleep button action for me). I don't have a Power button on my keyboard nor on the remote control, only Sleep buttons and I do not want to use S1 nor S3. I want the computer to shut down when I press these buttons. Is there a way? Registry etc?
Control Panel\All Control Panel Items\Power Options\Change when the computer sleeps\Change advanced power settings\Power buttons and lid\Sleep button action\Setting:

don't have the "Shut Down" option.

Possible solution:

Run: Regedit

Open: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings

Then, click on every folder until you find one folder that contains the "FriendlyName": @%SystemRoot%\system32\powrprof.dll,-251,Power buttons settings

mine is the folder: 4f971e89-eebd-4455-a8de-9e59040e7347

when you find it, open it and search for the forder that contais the "FriendlyName": @%SystemRoot%\system32\powrprof.dll,-255,sleep button action

mine is the folder: 96996bc0-ad50-47ec-923b-6f41874dd9eb

then, open the forlder: DefaultPowerSchemeValues

you will find 3 folders. For each folder you will have 3 "files". You need to change the value of the files (in every one of the 3 folders):

AcSettingIndex: to 3 (it is by default to 1)
DcSettingIndex: to 3 (it is by default to 1)

Then, you go back to the Control Panel:
Control Panel\All Control Panel Items\Power Options\Change when the computer sleeps\
and click on: Restore default settings for this plan

and its done!!
hope this helps... good luck.

Прим. Будьте предельно внимательны при редактировании реестра.
Лично я менял не ветку ControlSet001\Control\Power\PowerSettings, а ветку CurrentControlSet\..

На моей клавиатуре нет кнопки Shutdown, а под Win2003 я привык глушить именно так комп.)