Bug 8901 - Battery charge level is not displayed correctly - Samsung R70
Summary: Battery charge level is not displayed correctly - Samsung R70
Status: REJECTED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alexey Starikovskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 23:48 UTC by David
Modified: 2007-09-20 06:54 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.22-gentoo.r4 (from a 2.6.22-3)
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description David 2007-08-17 23:48:01 UTC
Most recent kernel where this bug did not occur: NA
Distribution: Gentoo
Hardware Environment: Samsung R70 Laptop
Software Environment:
Problem Description: The battery level is not displayed correctly though any software supporting acpi. I tested with /proc/acpi/battery/bat1/{state && info}.
This is /proc/acpi/battery/BAT1/state 
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      5586 mAh
present voltage:         12477 mV

And this is  /proc/acpi/battery/BAT1/info 
present:                 yes
design capacity:         5200 mAh
last full capacity:      5700 mAh
battery technology:      rechargeable
design voltage:          11100 mV
design capacity warning: 0 mAh
design capacity low:     171 mAh
capacity granularity 1:  1 mAh
capacity granularity 2:  1 mAh
model number:            
serial number:           
battery type:            LION
OEM info:                SAMSUNG Electronics

The problem is: I have it most the time connected to the charger, lecture sometimes is that charge is 5700, and thus, 100%, and sometimes it gets stuck at 97% (like now: 5586).

Other odd thing is that battery is designed to have a capacity of 5200 mAh by design, but last full capacity (wich can be reached sometimes) is 5700.. This may confuse ACPI related programs so I dunno what to do. I don't think anyway that this is related to theese other programs, as this behaviour is the same for all programs I tested, so it must be something of ACPI controller.

Should you need any more information, just tell me and I'll post it.

Steps to reproduce:
Comment 1 Len Brown 2007-08-24 00:38:22 UTC
do you see different numbers for this hardware when booted in windows?
Comment 2 Vladimir Lebedev 2007-08-24 04:59:06 UTC
Len,
I have seen a lot of batteries which show 'last full capacity' smaller or greater than 'design capacity', and (as I know) there are not ACPI related programs that may be confused because of this.
Also, windows does not show 'last full capacity', at least I do not know how to get one. 
Comment 3 David 2007-08-24 07:21:45 UTC
(In reply to comment #1)
> do you see different numbers for this hardware when booted in windows?
> 

Can't test because I don't use windows for anything..
Comment 4 David 2007-09-20 06:38:02 UTC
(In reply to comment #2)
> Len,
> I have seen a lot of batteries which show 'last full capacity' smaller or
> greater than 'design capacity', and (as I know) there are not ACPI related
> programs that may be confused because of this.
> Also, windows does not show 'last full capacity', at least I do not know how
> to
> get one. 
> 

By programs confusing with that numbers I mean the possibility to calculate percent of battery with (last_full_capacity/current_capacity)*100

Or is it calculed directly by ACPI drivers? In that case I suggest:

percent=current_capacity>design_capacity ? 100 : (design_capacity/current_capacity)*100;
Comment 5 Alexey Starikovskiy 2007-09-20 06:50:00 UTC
ACPI does not calculate percents. This is a some userspace utility. 
Comment 6 Alexey Starikovskiy 2007-09-20 06:54:10 UTC
Modern chargers have a threshold then they do not start, 97% might be easily inside this threshold. If you discharge your battery a little bit more, say to 85%, and connect charger, it should charge until 100% again.

Note You need to log in before you can comment on or make changes to this bug.