Bug 16218 - acer timeline x 4820 battery always claims to be at 0% charge / unknown fill state - Acer Aspire 5745G
Summary: acer timeline x 4820 battery always claims to be at 0% charge / unknown fill ...
Status: CLOSED DOCUMENTED
Alias: None
Product: ACPI
Classification: Unclassified
Component: BIOS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_bios
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 15:27 UTC by Frederik Gladhorn
Modified: 2010-09-29 01:53 UTC (History)
7 users (show)

See Also:
Kernel Version: 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux
Subsystem:
Regression: No
Bisected commit-id:


Attachments
acpidump output (273.06 KB, text/plain)
2010-06-15 15:27 UTC, Frederik Gladhorn
Details
dmesg output (53.63 KB, text/plain)
2010-06-15 15:27 UTC, Frederik Gladhorn
Details
dsdt.dsl (390.56 KB, application/octet-stream)
2010-06-21 11:58 UTC, Frederik Gladhorn
Details
ssdt2.dsl (44.09 KB, application/octet-stream)
2010-06-21 11:59 UTC, Frederik Gladhorn
Details
custom _BST method (405 bytes, application/octet-stream)
2010-06-29 06:50 UTC, Zhang Rui
Details
Complete Log with latest git kernel. (17.32 KB, application/octet-stream)
2010-06-30 07:38 UTC, Radu Andries
Details
log.gz (188 bytes, application/gzip)
2010-06-30 09:15 UTC, Radu Andries
Details
acpidump (272.68 KB, application/octet-stream)
2010-06-30 09:40 UTC, Radu Andries
Details

Description Frederik Gladhorn 2010-06-15 15:27:13 UTC
Created attachment 26779 [details]
acpidump output

The battery always shows as being at 0% charged

# acpi -V
Battery 0: Unknown, 0%, rate information unavailable
Battery 0: design capacity 4400 mAh, last full capacity 4400 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 40.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 105.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 98.0 degrees C
Cooling 0: LCD 0 of 9
Cooling 1: LCD 0 of 9
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10

# grep . /proc/acpi/battery/*/*
/proc/acpi/battery/BAT1/alarm:alarm:                   300 mAh
/proc/acpi/battery/BAT1/info:present:                 yes
/proc/acpi/battery/BAT1/info:design capacity:         4400 mAh
/proc/acpi/battery/BAT1/info:last full capacity:      4400 mAh
/proc/acpi/battery/BAT1/info:battery technology:      rechargeable
/proc/acpi/battery/BAT1/info:design voltage:          11100 mV
/proc/acpi/battery/BAT1/info:design capacity warning: 300 mAh
/proc/acpi/battery/BAT1/info:design capacity low:     132 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 1:  32 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 2:  32 mAh
/proc/acpi/battery/BAT1/info:model number:            BAT1      
/proc/acpi/battery/BAT1/info:serial number:           11        
/proc/acpi/battery/BAT1/info:battery type:            11        
/proc/acpi/battery/BAT1/info:OEM info:                11        
/proc/acpi/battery/BAT1/state:present:                 yes
/proc/acpi/battery/BAT1/state:capacity state:          ok
/proc/acpi/battery/BAT1/state:charging state:          charged
/proc/acpi/battery/BAT1/state:present rate:            unknown
/proc/acpi/battery/BAT1/state:remaining capacity:      unknown
/proc/acpi/battery/BAT1/state:present voltage:         10000 mV
Comment 1 Frederik Gladhorn 2010-06-15 15:27:55 UTC
Created attachment 26780 [details]
dmesg output
Comment 2 Frederik Gladhorn 2010-06-20 11:53:05 UTC
Also tested with plain kernel 2.6.34 and 2.6.35-rc3 with same results.
Comment 3 Frederik Gladhorn 2010-06-21 11:57:41 UTC
The temperature reading also does not work on this model.
Comment 4 Frederik Gladhorn 2010-06-21 11:58:47 UTC
Created attachment 26878 [details]
dsdt.dsl
Comment 5 Frederik Gladhorn 2010-06-21 11:59:50 UTC
Created attachment 26879 [details]
ssdt2.dsl

I also get compile errors for the ssdt2.dsl file and it also mentions BAT1
Comment 6 Radu Andries 2010-06-29 01:32:30 UTC
Here is my log:
http://pastebin.com/qV5bZ1n8
Comment 7 Zhang Rui 2010-06-29 06:50:51 UTC
Created attachment 26968 [details]
custom _BST method

Please
1. build a kernel, later than 2.6.34, set CONFIG_ACPI_DEBUG.
2. reboot with acpi.debug_layer=0x80, acpi.debug_level=0x06.
3. mount debugfs to /sys/kernel/debug
4. download this _BST.aml file
5. apply this custom _BST control method by running "cat _BST.aml > /sys/kernel/debug/acpi/custom_method"
6. run "grep . /proc/acpi/battery/*/*"
7. attach the dmesg output after this test.
Comment 8 Radu Andries 2010-06-29 10:44:16 UTC
Kernel: v2.6.35-rc3-242-g5904b3b
Config: http://pastebin.com/7WN8Pmr2
Dmesg after grep: http://pastebin.ca/1891716
Comment 9 Radu Andries 2010-06-29 10:57:49 UTC
Forgot to paste grep:
/proc/acpi/battery/BAT1/alarm:alarm:                   300 mAh
/proc/acpi/battery/BAT1/info:present:                 yes
/proc/acpi/battery/BAT1/info:design capacity:         4400 mAh
/proc/acpi/battery/BAT1/info:last full capacity:      4400 mAh
/proc/acpi/battery/BAT1/info:battery technology:      rechargeable
/proc/acpi/battery/BAT1/info:design voltage:          11100 mV
/proc/acpi/battery/BAT1/info:design capacity warning: 300 mAh
/proc/acpi/battery/BAT1/info:design capacity low:     132 mAh
/proc/acpi/battery/BAT1/info:cycle count:                 0
/proc/acpi/battery/BAT1/info:capacity granularity 1:  32 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 2:  32 mAh
/proc/acpi/battery/BAT1/info:model number:            BAT1      
/proc/acpi/battery/BAT1/info:serial number:           11        
/proc/acpi/battery/BAT1/info:battery type:            11        
/proc/acpi/battery/BAT1/info:OEM info:                11        
/proc/acpi/battery/BAT1/state:present:                 yes
/proc/acpi/battery/BAT1/state:capacity state:          ok
/proc/acpi/battery/BAT1/state:charging state:          charged
/proc/acpi/battery/BAT1/state:present rate:            unknown
/proc/acpi/battery/BAT1/state:remaining capacity:      unknown
/proc/acpi/battery/BAT1/state:present voltage:         10000 mV
Comment 10 Zhang Rui 2010-06-30 03:13:15 UTC
(In reply to comment #8)
> Kernel: v2.6.35-rc3-242-g5904b3b
> Config: http://pastebin.com/7WN8Pmr2
> Dmesg after grep: http://pastebin.ca/1891716

sorry, I can not access these pages.
can you attach them in the bugzilla?
Comment 11 Radu Andries 2010-06-30 07:38:40 UTC
Created attachment 26976 [details]
Complete Log with latest git kernel.
Comment 12 Radu Andries 2010-06-30 07:40:05 UTC
Sorry, you should ungzip it first.
Comment 13 Zhang Rui 2010-06-30 07:46:21 UTC
please run
1. "echo 0x02 > /sys/modules/acpi/parameters/debug_level"
2. dmesg -c
3. "grep . /proc/acpi/battery/*/*"
4. attach the dmesg output after this test.
Comment 14 Radu Andries 2010-06-30 09:15:39 UTC
Created attachment 26979 [details]
log.gz

[root@snowflake ~]# grep . /proc/acpi/battery/*/*
/proc/acpi/battery/BAT1/alarm:alarm:                   300 mAh
/proc/acpi/battery/BAT1/info:present:                 yes
/proc/acpi/battery/BAT1/info:design capacity:         4400 mAh
/proc/acpi/battery/BAT1/info:last full capacity:      4400 mAh
/proc/acpi/battery/BAT1/info:battery technology:      rechargeable
/proc/acpi/battery/BAT1/info:design voltage:          11100 mV
/proc/acpi/battery/BAT1/info:design capacity warning: 300 mAh
/proc/acpi/battery/BAT1/info:design capacity low:     132 mAh
/proc/acpi/battery/BAT1/info:cycle count:                 0
/proc/acpi/battery/BAT1/info:capacity granularity 1:  32 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 2:  32 mAh
/proc/acpi/battery/BAT1/info:model number:            BAT1      
/proc/acpi/battery/BAT1/info:serial number:           11        
/proc/acpi/battery/BAT1/info:battery type:            11        
/proc/acpi/battery/BAT1/info:OEM info:                11        
/proc/acpi/battery/BAT1/state:present:                 yes
/proc/acpi/battery/BAT1/state:capacity state:          ok
/proc/acpi/battery/BAT1/state:charging state:          charged
/proc/acpi/battery/BAT1/state:present rate:            unknown
/proc/acpi/battery/BAT1/state:remaining capacity:      unknown
/proc/acpi/battery/BAT1/state:present voltage:         10000 mV

With debug level 0x02 dmesg had no output at all.
Attached with 0x06 instead
Comment 15 Radu Andries 2010-06-30 09:40:03 UTC
Created attachment 26980 [details]
acpidump

I also noticed that my acpidump is a little (a couple of lines in diff) different from acpidump posted here.
Comment 16 Zhang Rui 2010-07-01 01:34:45 UTC
please run
1. "echo 0x02 > /sys/modules/acpi/parameters/debug_level"
2. "echo 0x88 > /sys/modules/acpi/parameters/debug_layer"
2. dmesg -c
3. "grep . /proc/acpi/battery/*/*"
4. attach the dmesg output after this test.
this time.
Comment 17 Radu Andries 2010-07-01 08:36:47 UTC
dmesg was empty.

If it can be useful, when i attached battery a message appeared

PM: Adding info for No Bus:BAT1
Comment 18 Zhang Rui 2010-07-02 05:38:09 UTC
No EC address space, results in ECON cleared.
Comment 19 Igor 2010-07-05 07:01:04 UTC
I have Acer Aspire 5745G and i have the same problem.
Linux wings 2.6.35-6-generic-pae #9~lucid1-Ubuntu SMP Wed Jun 30 12:48:10 UTC 2010 i686 GNU/Linux

~$ acpi -V
Battery 0: Unknown, 0%, rate information unavailable
Battery 0: design capacity 4400 mAh, last full capacity 4400 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 40.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 105.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 98.0 degrees C
Cooling 0: LCD 0 of 9
Cooling 1: Processor 0 of 10
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10

~$ grep . /proc/acpi/battery/*/*
/proc/acpi/battery/BAT1/alarm:alarm:                   300 mAh
/proc/acpi/battery/BAT1/info:present:                 yes
/proc/acpi/battery/BAT1/info:design capacity:         4400 mAh
/proc/acpi/battery/BAT1/info:last full capacity:      4400 mAh
/proc/acpi/battery/BAT1/info:battery technology:      rechargeable
/proc/acpi/battery/BAT1/info:design voltage:          11100 mV
/proc/acpi/battery/BAT1/info:design capacity warning: 300 mAh
/proc/acpi/battery/BAT1/info:design capacity low:     132 mAh
/proc/acpi/battery/BAT1/info:cycle count:		  0
/proc/acpi/battery/BAT1/info:capacity granularity 1:  32 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 2:  32 mAh
/proc/acpi/battery/BAT1/info:model number:            BAT1      
/proc/acpi/battery/BAT1/info:serial number:           11        
/proc/acpi/battery/BAT1/info:battery type:            11        
/proc/acpi/battery/BAT1/info:OEM info:                11        
/proc/acpi/battery/BAT1/state:present:                 yes
/proc/acpi/battery/BAT1/state:capacity state:          ok
/proc/acpi/battery/BAT1/state:charging state:          charged
/proc/acpi/battery/BAT1/state:present rate:            unknown
/proc/acpi/battery/BAT1/state:remaining capacity:      unknown
/proc/acpi/battery/BAT1/state:present voltage:         10000 mV
Comment 20 Radu Andries 2010-07-05 11:58:35 UTC
There's a workaround, but i'd like to see code that solves definetively our problem.
Comment 21 AceLan Kao 2010-07-13 06:14:43 UTC
There is a workable patch here[1] and confirmed by Ubuntu user that the patch works correctly[2].
I'm trying to contact the patch owner now and I think I should expose it here to see if this patch is acceptable.

[1] http://wiki.archlinux.org/index.php/Acer_TimelineX#Issues
[2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/578894
Comment 22 Radu Andries 2010-08-09 21:50:39 UTC
News about inclusion in main tree/creation of a new patch?
Comment 23 Alex 2010-09-06 16:49:55 UTC
Solution is TimelineX-ACPI-fix.patch in kernel. I tested it on Acer 5820t, Ubuntu 10.04 with trevinos precompiled kernel 2.6.35 with this patch its working.

patch: http://download.tuxfamily.org/3v1deb/acer-timelinex/
next info: http://georgia.ubuntuforums.org/showthread.php?t=1495123&page=9

5 weeks old solution and status still NEEDINFO
<OMG> fix it in oficial kernel </OMG>

thanks
Comment 24 Radu Andries 2010-09-09 17:19:37 UTC
BIOS 1.18 from acer solves this issue. I'm running with 2.6.35 without timelinex.patch
Comment 25 Hans Jørgen Hoel 2010-09-14 18:46:42 UTC
BIOS version 1.18 solves this issue for unpatched 2.6.32 as well.
Comment 26 Igor 2010-09-14 18:59:20 UTC
Acer 5745G, BIOS 1.15 solves this issue for unpatched 2.6.32

$ grep . /proc/acpi/battery/*/*
/proc/acpi/battery/BAT1/alarm:alarm:                   300 mAh
/proc/acpi/battery/BAT1/info:present:                 yes
/proc/acpi/battery/BAT1/info:design capacity:         4400 mAh
/proc/acpi/battery/BAT1/info:last full capacity:      4400 mAh
/proc/acpi/battery/BAT1/info:battery technology:      rechargeable
/proc/acpi/battery/BAT1/info:design voltage:          10800 mV
/proc/acpi/battery/BAT1/info:design capacity warning: 300 mAh
/proc/acpi/battery/BAT1/info:design capacity low:     0 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 1:  32 mAh
/proc/acpi/battery/BAT1/info:capacity granularity 2:  32 mAh
/proc/acpi/battery/BAT1/info:model number:            AS10B41
/proc/acpi/battery/BAT1/info:serial number:           4FCC
/proc/acpi/battery/BAT1/info:battery type:            LION
/proc/acpi/battery/BAT1/info:OEM info:                SONY
/proc/acpi/battery/BAT1/state:present:                 yes
/proc/acpi/battery/BAT1/state:capacity state:          ok
/proc/acpi/battery/BAT1/state:charging state:          charged
/proc/acpi/battery/BAT1/state:present rate:            0 mA
/proc/acpi/battery/BAT1/state:remaining capacity:      4400 mAh
/proc/acpi/battery/BAT1/state:present voltage:         12155 mV
Comment 27 Zhang Rui 2010-09-15 00:14:24 UTC
Comment #24 From  Radu Andries   2010-09-09 17:19:37   (-) [reply] -------

BIOS 1.18 from acer solves this issue. I'm running with 2.6.35 without
timelinex.patch

------- Comment #25 From Hans Jørgen Hoel 2010-09-14 18:46:42 (-) [reply] -------

BIOS version 1.18 solves this issue for unpatched 2.6.32 as well.

------- Comment #26 From Igor 2010-09-14 18:59:20 (-) [reply] -------

Acer 5745G, BIOS 1.15 solves this issue for unpatched 2.6.32

Bug closed.

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