Battery status might be reported incorrectly when attaching a second battery to a laptop running Windows Vista

Article ID: 968511 – Last Review: March 3, 2009 – Revision: 1.1

Battery status might be reported incorrectly when attaching a second battery to a laptop running Windows Vista

Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom

Consider the following scenario. You have two battery modules attached to the same computer and keep detaching and attaching one of them. You find that the battery status is randomly reported incorrectly in some programs, such as Windows Mobility Center.

 

Cause

This discrepancy is due to how battery capacity is monitored and the timing of queries relative to the timing of the battery detachment/attachment cycles.

 

The battery percentage is calculated by using the following method:

 

(Current capacity of first battery + current capacity of second battery)/(full capacity of first battery + full capacity of second battery)

 

When the problem occurs, the battery percentage displayed on UI is calculated by using the following incorrect method:

 

(Current capacity of first battery)/(full capacity of first battery + full capacity of second battery)

 

If the first battery is 90% charged and the second battery is also 90% charged and the full capacity of these two batteries is the same, when you detach the second battery and then attach it again, the battery percentage displayed on UI might be calculated as 90/(100+100) =  45%.

 

 

Resolution

You can work around this problem by waiting a few seconds for the battery percentage to be updated automatically.

More Information

In Windows Vista, the full charged battery capacity and the current battery capacity are stored in two different structures inside the system kernel and are maintained by two different approaches. The full charged battery capacity is updated in real time, but there might be a short delay when updating the current battery capacity. Due to this, sometimes when you attach the second battery, the full charged battery capacity will be updated immediately to include two batteries, but the current battery capacity might not be updated immediately. As a result, the battery percentage displayed might be incorrect.

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.



APPLIES TO
  • Windows Vista Enterprise
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Business N
  • Windows Vista Business N 64-bit Edition
  • Windows Vista Home Basic
  • Windows Vista Home Basic N 64-bit Edition
  • Windows Vista Home Premium
  • Windows Vista Ultimate
  • Windows Vista Starter
  • Windows Vista Service Pack 2
  • Windows Vista Service Pack 1
Keywords: 
kbnomt kbrapidpub KB968511

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image