Bug 7206 - acpi not recognize residual charge on packard bell easynote S5011
Summary: acpi not recognize residual charge on packard bell easynote S5011
Status: CLOSED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Vladimir Lebedev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-26 03:23 UTC by Fanini Enrico
Modified: 2006-10-13 11:45 UTC (History)
0 users

See Also:
Kernel Version: 2.6.16-gentoo-r7
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
DMESG.TXT (14.39 KB, text/plain)
2006-09-26 03:57 UTC, Fanini Enrico
Details
DSDT.DSL (177.26 KB, text/plain)
2006-09-26 03:59 UTC, Fanini Enrico
Details
battery_check_patch (1.56 KB, patch)
2006-09-27 12:24 UTC, Vladimir Lebedev
Details | Diff
MY DMESG (13.90 KB, application/octet-stream)
2006-10-12 02:53 UTC, Fanini Enrico
Details

Description Fanini Enrico 2006-09-26 03:23:53 UTC
On start of my notebook, with kde, Klaptop not display my residual charge.

Start with only battery:

confix@portatile ~ $ cat /proc/acpi/battery/BAT1/info
present:                 no

confix@portatile ~ $ cat /proc/acpi/battery/BAT1/state
present:                 no

After i insert and disconnect AC Power Supply:

confix@portatile ~ $ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            2240 mA
remaining capacity:      1731 mAh
present voltage:         12321 mV

confix@portatile ~ $ cat /proc/acpi/battery/BAT1/info
present:                 yes
design capacity:         4000 mAh
last full capacity:      3089 mAh
battery technology:      rechargeable
design voltage:          9600 mV
design capacity warning: 400 mAh
design capacity low:     123 mAh
capacity granularity 1:  64 mAh
capacity granularity 2:  64 mAh
model number:            PC-VP-WP66/OP-570-76620
serial number:
battery type:            NiMH
OEM info:                NEC

and klaptop display residual charge.
Comment 1 Fanini Enrico 2006-09-26 03:57:41 UTC
Created attachment 9104 [details]
DMESG.TXT
Comment 2 Fanini Enrico 2006-09-26 03:59:44 UTC
Created attachment 9105 [details]
DSDT.DSL
Comment 3 Vladimir Lebedev 2006-09-26 08:35:17 UTC
Is it the new bug?
Do you know another kernel versions on which bug is absent?

Comment 4 Fanini Enrico 2006-09-26 08:47:31 UTC
No, i try 2.6.18 and all lower but not function in any kernel
Comment 5 Vladimir Lebedev 2006-09-26 20:41:48 UTC
Please attach your 2.6.18 .config file.

As I understand the problem is absent when you boot the system with the 
plugged AC, isn
Comment 6 Fanini Enrico 2006-09-27 08:10:52 UTC
I use 2.6.16-r7 now..

The problem is when start my notebook, that not display any info of battery. But if i insert the AC 
Power supply and disconnect, i can see the info of battery.
Comment 7 Vladimir Lebedev 2006-09-27 12:24:25 UTC
Created attachment 9113 [details]
battery_check_patch

Please apply this patch and send the results.
Comment 8 Fanini Enrico 2006-10-11 04:22:43 UTC
Yesterday, i try to patch with your file. In this moment in my notebook is 
installed 2.6.18-gentoo kernel. But the result is that on start ACPI not find 
battery.
Comment 9 Vladimir Lebedev 2006-10-11 06:51:52 UTC
> But the result is that on start ACPI not find battery.
                          -----
What do you mean?
a) Does the dmesg output contain "battery absent" message?
b) Does the file /proc/acpi/battery/*/state contain the line "present: no" 
after boot?

Comment 10 Fanini Enrico 2006-10-11 10:07:08 UTC
a) Does the dmesg output contain "battery absent" message?
b) Does the file /proc/acpi/battery/*/state contain the line "present: no" 
after boot?

----------------------------- MY REPLY ---------------------------------------

On start my notebook dmesg output write;    ACPI: battery (not present)

And when my note is ready to use, and use cat /proc/acpi/battery/BAT1/state, it 
take me: battery present:   no

But, if i insert and disconnect AC Power Supply, it begins to work and ACPI 
finds battery.
Comment 11 Fanini Enrico 2006-10-12 02:53:59 UTC
Created attachment 9235 [details]
MY DMESG

Yesterday, i decide to install klaptopdaemon.
Now, after my note is ready to use, klpatop visualizes the remaining  battery.

I try to reboot, and klaptop visualizes too.

Also cat cat /proc/acpi/battery/BAT1/state write the state of battery.

I attached my dmesg with new patch and visualizes of battery.
Comment 12 Vladimir Lebedev 2006-10-12 07:22:27 UTC
> I attached my dmesg with new patch and visualizes of battery.
                           ---------
What patch exactly do you mean?
Comment 13 Fanini Enrico 2006-10-13 06:01:45 UTC
Your patch...
Comment 14 Vladimir Lebedev 2006-10-13 10:17:54 UTC
Please verify/confirm that the problem exists without my patch, but disappears 
after patch applying.

Comment 15 Fanini Enrico 2006-10-13 11:45:58 UTC
Portatile confix # cat /proc/acpi/battery/BAT1/info

present:                 yes
design capacity:         4000 mAh
last full capacity:      2855 mAh
battery technology:      rechargeable
design voltage:          9600 mV
design capacity warning: 400 mAh
design capacity low:     114 mAh
capacity granularity 1:  64 mAh
capacity granularity 2:  64 mAh
model number:            PC-VP-WP66/OP-570-76620
serial number:
battery type:            NiMH

With battery_check_patch

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