SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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)
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.