Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to fool windows desktop to think that it is running off a battery (like in a laptop) ?

I need to do this to do some testing in battery mode, but I don't have a laptop on hand to do this.

I tried to find utilities on the net that could do this but I had no luck. What do you think guys?

share|improve this question
anyone got anything on this? – Brian T Hannan Jun 23 '10 at 16:45
up vote 8 down vote accepted

I actually discovered that I can use my UPS to do it. So my machine is connected to a "smart" UPS which has a communication port (not sure what the cord type is) which then you connect to your computer using USB. This then tells the computer to use the UPS as the power source instead of the power outlet, which is treated just like running from a battery on a laptop. You can also use this to determine how long the UPS will last for when you lose power so you have enough time to close down and save all your work before the UPS runs out of power as well.

share|improve this answer

This is tricky to pull off. The on-battery/on-power flag is provided by ACPI in the BIOS, and the flags are handled in the kernel as part of the ACPI driver. Near as I can figure, lying to this driver layer is not exposed in any way. However, it does look like Microsoft has a discrete device for the battery and AC adapters themselves, so a special AC Adapter driver may allow you manually select your power state. I don't know of one, but it is a place to look. Alternately, a special 'power development' ACPI layer may be lurking somewhere.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .