December 10th, 2004, 01:04 AM
UPS Service Registry Tweak!
This is a pretty hard question! I just configured a UPS on my XP machine but I'm unhappy of the option I have. After looking in the registry at this key -- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPS\Config – I found a few good key but sadly, I cannot find ANY information about it! I want to be sure of the meaning ShutdownOnBatteryEnable with a dword of 1 and ShutdownOnBatteryWait with a dword of a. I search Google for info about those registry key but Google only give me 1 result and it's not what I want.
Anyone got info I about those registry key; from a book or MSDN??
December 11th, 2004, 09:14 PM
I'm assuming that you want the correct option to allow the system to shut down in the event of a power outage ?
ShutdownOnBatteryEnable : would be my choice for the above option. it implies [to me] that on power out, that the system will initiate a controlled shut down, without loss of data........
ShutdownOnBatteryWait : implies [to me] that on power out, the system will flag you for advice, and then wait..................... OK if you are there 24/7 ?
As a quick and dirty fix : just try the options one by one, and simulate power loss [on a STAND ALONE PC ]
55 - I'm fiftyfeckinfive and STILL no wiser,
Beware of Geeks bearing GIF's
come and waste the day :P at The Taz Zone
December 11th, 2004, 09:32 PM
Not needing UPS where I live (I own a diesel generator hooked into an ABT to manage backup power for my house) I can't really help you very much, however...
From reading the descriptors I'll offer you a 'best guess' at what each of those things do -
ShutdownonBatteryEnable - when the operator is 'true' (value 1) it tells the computer that when it goes on battery, save everything and run through normal shutdown. This is quite integral to systems on which important files are often accessed, so as not to lose any important data.
ShutdownonBatteryWait - also when the operator is 'true' (value 1) it tells the 'shutdownenable' to give a user time to save his work and logoff - it's probably tied into the system alert software, and probably alerts the user of the power loss and to save his stuff...NOW, because the system will down itself in 1 minute.
Ok, I just read thru Fox's post. It seems we agree on both, so I'm pretty confident in my 'educated guesses' at this point. Hope they helped!
Even a broken watch is correct twice a day.
Which coder said that nobody could outcode Microsoft in their own OS? Write a bit and make a fortune!
December 11th, 2004, 11:49 PM
December 12th, 2004, 05:19 AM
Right now, the service configuration FORCES a shutdown of the system. I had this configuration when a while ago but my computer shutdown itself a few times without warning (Probably when the UPS got surge) so I turn the software off. But this week, I had a power outrage but I decided to fix the program.
What I want the service to do is simply to start an exe when the power failed. I'll program my own execute with a VB program that will shutdown the computer if no user input is there to stop it.
Right now, when the alarm occurs, run this program work but after the next options call "Next, instruct the computer to:" force the computer to Shut Down. It's the only option available! ƒ¼
I want to find what the registry key to remove that "Next, instruct the computer to: Shutdown" option to "Do Nothing". I'll probably try the error/success method until I get it right if nobody know the information. ƒ¼