LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-24-2005, 11:39 PM   #1
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Rep: Reputation: 15
ACPI battery on Acer TM4500


I'm wanting at the very least battery monitoring on my laptop, I intend to use GKrellM to do this but it doesn't display anything battery related when I select that option. ACPI with battery, ac adapter, button, etc. is enabled in my kernel (2.6.13.4) and I get messages in /var/log/syslog about ACPI so I know my BIOS supports it. There are entries such as /proc/acpi/button/lid/LID/info and /proc/acpi/button/power/PWRF/info which I can cat and get data from, but my /proc/acpi/battery and /proc/acpi/ac_adapter are empty. What should I do to get this working?
 
Old 10-25-2005, 10:41 AM   #2
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
http://forums.gentoo.org/viewtopic-t-122145.html

I hope this helps
 
Old 10-25-2005, 10:14 PM   #3
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Awesome link. However, I've run into a glitch. My DSDT had compile warnings, which I fixed, and I wanted to go with the static kernel override, but the patch linked there failed on the second (of two) hunk...
 
Old 10-26-2005, 04:21 AM   #4
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
im using the load-from-initrd-patch and im not having any problems...wasnt the static override thing for 2.4.x only?
 
Old 10-26-2005, 10:12 AM   #5
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Well, I am using the 2.6.13.4 kernel, but from that page:
Quote:
5. Tested Kernels (DSDT override)

The DSDT override procedures outlined in the following sections have been tested successfully with the following kernels:

* 2.4.23 vanilla with ACPI patches from acpi.sourceforge.net (static DSDT)
* 2.4.24 vanilla (static DSDT, initrd DSDT)
* 2.6.0 vanilla (initrd DSDT)
* 2.6.0-gentoo (initrd DSDT + bootsplash)
* 2.6.1-rc1 vanilla (static DSDT)
* 2.6.1 vanilla (initrd DSDT)
So it's supposed to support at least 2.6.1... I guess there could be a compatibility issue with my kernel. Actually, that's what I'm kind of assuming. Any suggestions, or should I just do the initrd option?

Last edited by jnsg; 10-26-2005 at 10:14 AM.
 
Old 10-26-2005, 12:00 PM   #6
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
oops! i should have re-read the how-to before i posted...sorry and yes try the other solutions. Good luck hope you get it to work
 
Old 10-26-2005, 12:04 PM   #7
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
oh yeah i'm using 2.6.12.5 with the dsdt-initrd patch without any problems...also tried it with 2.6.13.x and it compiled and worked
 
Old 10-27-2005, 10:07 PM   #8
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
OK, the dsdt-initrd patch I finally got to run correctly. I get the line about looking for DSDT in initrd when I look at dmesg, but I still have an empty /proc/acpi/battery. So after further reading I discover that my DSDT seems to be checking for the length of _OS (20 characters). So I appended "acpi_os_name='Microsoft Windows XP'" to my kernel line and rebooted. Still nothing. Upon checking out dmesg again I see a line that says "ACPI: Overriding _OS definition to 'Microsoft'". Well, it's almost there, but not 20 characters so I figure that's why I still get no results. This stumped me for a bit until it occured to me the spaces might be giving trouble. Since it's just the length that counts I used _'s instead for the acpi_os_name string. Unfortunately, dmesg still tells me its truncating the _OS so I still have no ACPI functionality. Any suggestions?

Thanks for your help thus far, by the way.
 
Old 10-28-2005, 09:13 AM   #9
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
could you post the output of dmesg.
 
Old 10-28-2005, 10:25 AM   #10
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
https://sourceforge.net/projects/sbs-linux/ there you'll find a patch for the DSDT that, if your lucky, will work on your laptop.

it could also be that the ECDT is missing wich, from what ive read, could lead to the problems you are describing... but lets hope the patch works if you dont like experimenting too much...

heres a link that describes the ECDT problem and solution http://www.whoopy.it/linux/ACPI_prob..._resolved.html
 
Old 10-28-2005, 11:45 AM   #11
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
It seems SBS is what I need support for in order to get this working (if not also the ECDT) but the patch you linked to has a problem. It seems that it causes lost interupts, which can be a serious problem. It has a kernel patch (nospinlock) that makes a workaround for this problem, but there isn't one for 2.6.13, only 2.6.10 and 2.6.11... Should I try using the 2.6.11 one and hope for the best?

Last edited by jnsg; 10-28-2005 at 11:48 AM.
 
Old 10-28-2005, 12:08 PM   #12
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
probably yes... I havent tried any of them so I dont know for sure. good luck! I hope it works out this time cause I'm running out of ideas
 
Old 10-28-2005, 10:00 PM   #13
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
OK, the SBS patch worked! I was able to monitor my battery and ac_adapter with GKrellM. However, they weren't kidding about the loss of interupts. It was quite troublesome. And, unfortunately, the 2.6.11 kernel patch for that didn't apply properly (15/20 failed hunks) so now I'm stuck. The loss of interupts was bad enough I have reverted to my old (unworking) DSDT. I really appreciate your helping me with this, con. Do you or anyone else have any suggestions from here? Maybe a source of an updated nospinlock patch? I will continue my own search to that end, but if anyone has ideas I'd love to hear them.
 
Old 11-08-2005, 12:01 PM   #14
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
Did get it to work? While doing some school stuff I ran into these 2 solutions....may work for you

http://linux.vandeplas.com/acer/acpi...0050120.tar.gz
http://www.poupinou.org/acpi/smartbatt/

I havent tried any of them but when I saw them I automagically thought of you...hope this helps!
 
Old 11-08-2005, 12:03 PM   #15
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
"Did get it to work?"...dang! Did you get it to work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPI battery not detected abattoir Linux - Laptop and Netbook 2 09-11-2005 09:07 AM
Kbatt (battery / acpi) question? digitalkid1128 Linux - Laptop and Netbook 11 07-09-2004 04:02 AM
ACPI + battery augamecock Linux - Laptop and Netbook 2 04-05-2004 06:42 AM
swsusp2, acpi, and Acer TM800 jdifool Linux - Laptop and Netbook 0 01-25-2004 04:38 AM
battery status with ACPI cornucopiae Linux - Laptop and Netbook 5 08-03-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration