Bug 19602

Summary: Acer AO521 no battery detected
Product: ACPI Reporter: Michael Daum (wolfenstein2890)
Component: Power-BatteryAssignee: Zhang Rui (rui.zhang)
Status: CLOSED DUPLICATE    
Severity: high CC: acpi-bugzilla, lenb, monghitri, pete, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.36 Subsystem:
Regression: No Bisected commit-id:
Attachments: lspci output
output of /proc/cpuinfo
results of acpidump
result of less /proc/acpi/BAT1/*
grep . /proc/acpi/battery/*/* /proc/acpi/thermal_zone/*/*

Description Michael Daum 2010-10-02 21:37:16 UTC
Created attachment 32432 [details]
lspci output

System refuses to recognise the battery in the Acer Aspire One 521 netbook.  The system is based off of the AMD M880G chipset.

I've attached the lspci and cpuinfo from my Ubuntu system, but if anything else is needed or if I can help test anything in any way, I would be more than happy to facilitate.

The Kernel is the latest mainline (as of 2 Oct. 2010) for Ubuntu.
Comment 1 Michael Daum 2010-10-02 21:38:31 UTC
Created attachment 32442 [details]
output of /proc/cpuinfo

Dunno if it'd be useful or not...
Comment 2 Zhang Rui 2010-10-08 03:29:23 UTC
please attach the acpidump output of this netbook.
please attach the output of "grep . /proc/acpi/battery/*/*"
Comment 3 Michael Daum 2010-10-08 04:04:46 UTC
Created attachment 32772 [details]
results of acpidump
Comment 4 Michael Daum 2010-10-08 04:06:35 UTC
Created attachment 32782 [details]
result of less /proc/acpi/BAT1/*

no battery detected for all sources available in the /proc/acpi/BAT1 directory.
Comment 5 Zhang Rui 2010-10-08 05:43:01 UTC
this looks like a duplicate of bug #15707.
Michael, please verify if the patch at https://bugzilla.kernel.org/show_bug.cgi?id=15707#c2 helps.
Comment 6 Michael Daum 2010-10-10 23:16:46 UTC
Upon re-doing my gentoo installation, I've noticed that browsing through /proc/acpi/processor/CPU0/throttling has a "diff_ec_try_econ.patch" in it.  Is this the same one that you are pointing me to, or is the linked patch file different?

If it is, then I'm still having the same issue.

If it isn't, then how exactly should I apply the linked patch?  Browsing through that file shows that it's expecting kernel version 2.6.33... (I've never used a patch file before).
Comment 7 Zhang Rui 2010-10-11 01:19:49 UTC
(In reply to comment #6)
> Upon re-doing my gentoo installation, I've noticed that browsing through
> /proc/acpi/processor/CPU0/throttling has a "diff_ec_try_econ.patch" in it.
> Is
> this the same one that you are pointing me to, or is the linked patch file
> different?
>
yes, it is.
 
> If it is, then I'm still having the same issue.
> 

where did you find this diff_ec_try_econ.patch file?
are you using a customized kernel?

> If it isn't, then how exactly should I apply the linked patch?  Browsing
> through that file shows that it's expecting kernel version 2.6.33... (I've
> never used a patch file before).

what's your kernel version?
I don't know how to customize a kernel in gentoo linux. But I think you may get some help at http://bugs.gentoo.org/
Comment 8 Michael Daum 2010-10-11 02:38:50 UTC
> where did you find this diff_ec_try_econ.patch file?
> are you using a customized kernel?

I am using a customized, but (supposedly) unpatched, kernel.  As stated, I found it in /proc/acpi/processor/throttling.

> > If it isn't, then how exactly should I apply the linked patch?  Browsing
> > through that file shows that it's expecting kernel version 2.6.33... (I've
> > never used a patch file before).
> 
> what's your kernel version?
> I don't know how to customize a kernel in gentoo linux. But I think you may
> get
> some help at http://bugs.gentoo.org/

Kernel version is 2.6.36-rc6.  Gentoo pulls in the upstream from kernel.org, and the version I'm using are the vanilla-sources, which are the supposedly unpatched, 1:1 of what's on kernel.org, so...
Comment 9 Zhang Rui 2010-10-11 05:00:48 UTC
(In reply to comment #8)
> > where did you find this diff_ec_try_econ.patch file?
> > are you using a customized kernel?
> 
> I am using a customized, but (supposedly) unpatched, kernel.  As stated, I
> found it in /proc/acpi/processor/throttling.
> 
this is strange because I don't think we can create any files under /proc/acpi/processor/ in user space.

> > > If it isn't, then how exactly should I apply the linked patch?  Browsing
> > > through that file shows that it's expecting kernel version 2.6.33...
> (I've
> > > never used a patch file before).
> > 
> > what's your kernel version?
> > I don't know how to customize a kernel in gentoo linux. But I think you may
> get
> > some help at http://bugs.gentoo.org/
> 
> Kernel version is 2.6.36-rc6.  Gentoo pulls in the upstream from kernel.org,
> and the version I'm using are the vanilla-sources, which are the supposedly
> unpatched, 1:1 of what's on kernel.org, so...

so you need to download the kernel source tarball, unpacked it. and apply the patch manually by running "patch -p1 < ./diff_ec_try_econ.patch", then rebuild your kernel and reboot.
Comment 10 Pete Toth 2010-10-12 18:00:13 UTC
(In reply to comment #5)
> this looks like a duplicate of bug #15707.
> Michael, please verify if the patch at
> https://bugzilla.kernel.org/show_bug.cgi?id=15707#c2 helps.

I applied the patch above to Ubuntu 10.04 kernel 2.6.32-25 on my AO521 with BIOS 1.08.  Battery status and thermal zone appear to be working.  Neither were working before applying the patch.

I'll attach output of grep . /proc/acpi/battery/*/* /proc/acpi/thermal_zone/*/*

Hope this helps.
Comment 11 Pete Toth 2010-10-12 18:07:15 UTC
Created attachment 33382 [details]
grep . /proc/acpi/battery/*/* /proc/acpi/thermal_zone/*/*

output of grep . /proc/acpi/battery/*/* /proc/acpi/thermal_zone/*/* after applying patch at https://bugzilla.kernel.org/show_bug.cgi?id=15707#c2
Comment 12 Michael Daum 2010-10-12 23:06:16 UTC
I applied the patch and this is indeed a duplicate of bug #15707.  Thank you very much for helping me through this.

I'm going to mark this a resolved duplicate of 15707.

*** This bug has been marked as a duplicate of bug 15707 ***