You are not logged in.

#1 2006-02-05 20:07:25

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

[SOLVED] Battery not detected by acpi

Hello everyone.  I am new to Arch Linux (loving it so far) and fairly new with Linux in general (tried a few distributions, Gentoo being the one I last tried).  I just recently got an Acer Aspire 3004WLCI Laptop. and decided to put arch on it.  I managed to get everything else to work (wireless, ect.) but I can't get it to recognise my battery.

In KDE it always says I have no battery inserted (-1% charge).

In dmesg I keep getting this message:

ACPI-0339: *** Error: Looking up [Z007] in namespace, AE_NOT_FOUND
search_node dbbca260 start_node dbbca260 return_node 00000000
    ACPI-0508: *** Error: Method execution failed [_SB_.BAT1._BST] (Node dbbcaf80), AE_NOT_FOUND

I have searched around a bit on these forums and other places, but the things I have tried so far have not worked.  Anyone know anything I can try?

Thanks in advance!

Offline

#2 2006-02-05 22:35:24

turtle
Member
From: Czestochowa, Poland
Registered: 2006-02-05
Posts: 20
Website

Re: [SOLVED] Battery not detected by acpi

tom5760 wrote:

I can't get it to recognise my battery.

It is due to buggy DSDTs in Acer Laptops. Fortunately, many DSDTs can be patched. It was possible, for example, for my daughter's Aspire 5002WLMI.

Anyone know anything I can try?

http://forums.gentoo.org/viewtopic.php?t=122145
and also
http://acpi.sourceforge.net/dsdt/index.php
http://www.cpqlinux.com/acpi-howto.html
http://www.columbia.edu/~ariel/acpi/acpi_howto.txt

Offline

#3 2006-02-05 22:47:17

The_Nerd
Member
From: Syracuse, NY / Baltimore, MD
Registered: 2005-11-30
Posts: 134
Website

Re: [SOLVED] Battery not detected by acpi

yep i had the same problem on my acer as well. the acpi link that turtle provided you with is your best bet. if your out of luck there ( like i was ) your going to have to do things the hard way and dissassemble your dsdt, then manually fix enough errors and hope it works. its not a fun process, but when its done its worth it.

Offline

#4 2006-02-06 03:59:47

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: [SOLVED] Battery not detected by acpi

Thanks a lot guys, I'll try this when I get home tommorow.

Offline

#5 2006-02-11 05:07:35

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: [SOLVED] Battery not detected by acpi

OK I had to recompile my DSDT file, which I have done succesfully.  But now I am having a problem patching them into my kernel.  I was trying to follow the directions here http://acpi.sourceforge.net/wiki/index. … rideTables

When I get to the part where it says

patch -p1 -i /PATH/TO/osl.diff

I replace the path with the file that is shown later on that page.  When I run the command I get this message:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/drivers/acpi/osl.c.orig
|
|+++ linux/drivers/acpi/osl.c
|
--------------------------
File to patch:

And from there I don't know what to do.

I have never patched a kernel before, so I probably am just missing something simple, can anyone help?

As before, thanks in advance.

Offline

#6 2006-02-11 06:28:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] Battery not detected by acpi

Try using another p option. Instead of -p1, try with -p0, -p2 or  even -p3.

Offline

#7 2006-02-11 14:10:27

The_Nerd
Member
From: Syracuse, NY / Baltimore, MD
Registered: 2005-11-30
Posts: 134
Website

Re: [SOLVED] Battery not detected by acpi

i dont believe you have to patch your kernel that way to tell it to read your custom dsdt.the easiest way is to use the archck kernel which already has look for custom dsdt enabled. then you apply your dsdt to your initramfs using the guide from here...

http://forums.gentoo.org/viewtopic.php?t=122145

its a good way down but it tells you how to put it into an initrd, should work similarly for initramfs (though i'm not positive, i still use the 2.6.14archck when it was still an initrd.) if the the initramfs wont let you put in the dsdt, then use ABS to recompile the stock arch kernel and just make sure you enable

Power management options (ACPI, APM) --->
    ACPI (Advanced Configuration and Power Interface) Support --->
        [*] Read DSDT from initrd 

then go on with the guide at the gentoo site and follow it to add your dsdt to your initrd and you'll be set.

Offline

#8 2006-02-21 23:18:37

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: [SOLVED] Battery not detected by acpi

OK I finally got it to work, but by a slightly diffrent method.  Instead of recompiling the kernel with ABS, I downloaded the archck kernel, which has the dsdt initrd patch in it already.  Then all I needed to do was modify my /etc/mkinitramfs.conf on the DSDT= line to the path of my DSDT.aml file

Now battery works like a charm!  big_smile

Offline

Board footer

Powered by FluxBB