LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ACPI not detecting Laptop Battery Charge on Slackware 12 (https://www.linuxquestions.org/questions/linux-newbie-8/acpi-not-detecting-laptop-battery-charge-on-slackware-12-a-632361/)

ChrisAbela 04-02-2008 02:10 AM

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 Slack’s 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

H_TeXMeX_H 04-02-2008 11:30 AM

And have you compared the 'lsmod' outputs and still nothing ?

ChrisAbela 04-03-2008 03:29 AM

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

ChrisAbela 04-22-2008 07:32 AM

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

H_TeXMeX_H 04-22-2008 09:15 AM

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 ...


All times are GMT -5. The time now is 06:30 PM.