LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Battery meter issue (http://www.linuxquestions.org/questions/slackware-14/battery-meter-issue-215539/)

krimson 08-09-2004 06:37 PM

Battery meter issue
 
I have attempted to use the GNOME battery applet, and also a battery gdesklet; and neither will display the battery charge. I have ACPI and APM compiled into the kernel, and the acpid daemon is running. I am running Slackware 10.0 with the 2.6.7 kernel on a Dell Inspiron 5100 laptop. I am truly stumped, any help/suggestions would be greatly appeciated.

Mephisto 08-09-2004 07:13 PM

I may be wrong in this but I am pretty sure ACPI and APM were mutually exclusive. My understanding is APM is the older API and is being replaced by ACPI. If you compile both into the kernel only one will be used, I have no idea which though.

My guess is APM is being used incorrectly therefore the acpid won't have anything to work with.

Try recompiling without APM or try APM=off as a boot option.

EDIT: Took a peek at the 2.6.7 kernel docs. APM and ACPI are mutually exclusive. If both are available whichever is loaded first will be used. try disabling APM and see if that works.

rovitotv 08-09-2004 07:25 PM

Kill APM and Use ACPI
 
Use ACPI just like Mephisto said. To see if it is working examine your dmesg output for ACPI messages like this "dmesg | grep 'ACPI' " you should be able to see a message about ACPI able to pick up battery information. After that look in /proc/acpi and search for battery status information, I forget the exact name of the file but it is in there some where. Good luck.

Mephisto 08-09-2004 07:38 PM

Re: Kill APM and Use ACPI
 
Quote:

Originally posted by rovitotv
After that look in /proc/acpi and search for battery status information, I forget the exact name of the file but it is in there some where. Good luck.
I don't know if it will be in the same place but I use

alias battery="cat /proc/acpi/battery/BAT0/state"

to get detailed info on the battery, for a desktop load meter I use gkrellm.

krimson 08-09-2004 07:55 PM

I have ACPI messages in my dmesg, but nothing battery related in /proc/acpi. I am just about to kill APM, and I will let you know how I make out. Thanks again.

krimson 08-09-2004 09:42 PM

Alright, I removed APM from the kernel, battery meter(s) still not working. Still have the ACPI messages in dmesg (shown below), and still nothing battery related in /proc/acpi.


Code:

ACPI: Subsystem revision 20040326
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 7) *11
ACPI: PCI Interrupt Link [LNKC] (IRQs 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIE._PRT]
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 7
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
ACPI: (supports S0 S1 S3 S4 S4bios S5)


Mephisto 08-09-2004 10:00 PM

I'm going to ask the obvious because I can't think of anything else. Under ACPI for your 2.6 kernel did you include "battery"? If so as a module or built in to the kernel?

krimson 08-09-2004 10:07 PM

Yes, pretty much everything is included under ACPI, except debugging.

ACPI is built-in, and everything else is loaded as a module.

Mephisto 08-10-2004 05:24 AM

Well I did a google for "Dell Inspiron 5100 Linux" And get quite a few pages discussing the battery problem for the 2.4 kernel. In 2.4.x the answer was to patch the kernel with a DSDT, I don't know if the same procedure applies to 2.6.x however.

http://somewhere.fscked.org/laptop/

krimson 08-11-2004 02:08 PM

I acutally had no issues with the 2.4.x kernel and the battery meter. After recompiling ACPI into the 2.4.x kernel it worked perfectly. However, apparently not the same applies to 2.6.x. I'll have a look at that site.

krimson 08-12-2004 12:44 PM

I figured it out. For some reason necessary modules weren't loading. I modprobe'd for 'battery', 'ac' and 'button', restarted the battery gdesklet and it now works fine. Thanks for all your help guys. :)


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