LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-02-2008, 03:10 AM   #1
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
Question ACPI not detecting Laptop Battery Charge on Slackware 12


Hi All,

I have installed Slackware 12 on my MSI EX600 Laptop, and ACPI is not detecting my battery charge. I am notified if the Laptop is on AC or battery but the charge is always read at 0%. This is not my first Slackware 12 installation on a Laptop and I am aware that one is to include
/sbin/modrpobe battery
/sbin/modprobe ac

in /etc/rc.d/rc.modules.
I verified that these modules have been loaded through the lsmod command
and then enabled the battery icon display from KDE. I am using XFCE as well and I installed the xfce patch for the battery icon.

On this Laptop, I also have CentOS5.1 and Windows Vista, and the battery charge is detected by both. I peeped in the CentOS set-up and tried to mimic their modules and kernel setup but I did not find any important differences (yet?). Then I tried to look at the booting up messages:
dmesg | grep ACPI
and one line is particularly interesting:
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node c212257c), AE_NOT_EXISTI looked up the configuration files on CentOS: rpm ql acpid and I compared them to the Slacks files I listed from pkgtool.

Basically I have reached a dead end but I still have some things in mind, like downloading a Zen Walk Live CD and check if it detects the battery as well. I know Knoppix manages to detect the battery as well. The next step would be to install Zen Walk instead of Slackware, but I think that I would miss Slackware, so I would appreciate any hints.

Chris Abela
 
Old 04-02-2008, 12:30 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
And have you compared the 'lsmod' outputs and still nothing ?
 
Old 04-03-2008, 04:29 AM   #3
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
Hi H_Tex_Mex_H,

The short answer is yes.

I went through the modules list of the CentOS modules I listed from modinfo, and singled out any acpi related ones:

modinfo `lsmod | cut -d " " -f 1` |grep -i acpi

Then I started removing them (rmmod) sequentially until I noticed a degradation of the Battery Charge indicator. On CentOS the only significant module is battery in this regard.

I suspect that the only hint I can cling to is the kernel message I obtained from the dmesg, which frankly is not in my area of competance (yet?).

Another aspect I forgot to mention is that both CentOS 5.1 and Slackware 12 use the same acpi package:

# acpid -v
acpid-1.0.4

I might have to check that CentOS are using the vanilla acpid code, but that is also not in my compentance except to verfiy that the code is the same as the one compiled on Slack.

Chris
 
Old 04-22-2008, 08:32 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
Hi H_TexMex_H,

Just to let you know that I updated the kernel to 2.6.24.4 using the huge smp config file from the Slackware FTP site and now the battery is being detected. I must remark that I was very busy working on other projects and so it took me ages to figure out how it should be done on Slackware.

Another comment is that it seems to work better on KDE than on XCFE, but maybe it is just my first impression. In any case the battery firmware sucks on this laptop as even Vista gives erratic behaviour in this respect.

Thanks and Regards

Chris
 
Old 04-22-2008, 10:15 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Then it may be some strange incompatibility issue or a minor kernel bug.

Good to see it worked.

I've also had variable results with some of the ACPI-related modules. Upgrading the kernel often helps, sometimes not ...
 
  


Reply

Tags
slackware


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
Battery doesn't keep charge after running BIOS Battery Discharge/Charge Utility dan.leonard Linux - Laptop and Netbook 0 09-28-2004 02:07 PM
Charge battery for laptop mikeshn Linux - Hardware 5 04-26-2004 08:16 AM
Battery Charge Monitor 2.4.1 Gerardoj Linux - Laptop and Netbook 0 02-27-2004 09:00 PM
Battery Charge Monitor on Laptop. WMCrazyOne Linux - General 2 11-28-2003 08:52 AM
Detecting battery life on my laptop ShakeNBake Linux - Software 1 10-16-2003 12:57 AM


All times are GMT -5. The time now is 12:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration