LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-09-2004, 06:37 PM   #1
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Question 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.
 
Old 08-09-2004, 07:13 PM   #2
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
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.

Last edited by Mephisto; 08-09-2004 at 07:16 PM.
 
Old 08-09-2004, 07:25 PM   #3
rovitotv
Member
 
Registered: Jan 2003
Location: Dayton, Ohio
Distribution: Slackware 10.2
Posts: 116

Rep: Reputation: 15
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.
 
Old 08-09-2004, 07:38 PM   #4
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
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.
 
Old 08-09-2004, 07:55 PM   #5
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 08-09-2004, 09:42 PM   #6
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
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)
 
Old 08-09-2004, 10:00 PM   #7
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
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?
 
Old 08-09-2004, 10:07 PM   #8
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
Yes, pretty much everything is included under ACPI, except debugging.

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

Last edited by krimson; 08-09-2004 at 10:12 PM.
 
Old 08-10-2004, 05:24 AM   #9
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
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/
 
Old 08-11-2004, 02:08 PM   #10
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 08-12-2004, 12:44 PM   #11
krimson
LQ Newbie
 
Registered: Jan 2004
Location: Plymouth, MA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
Talking

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.
 
  


Reply



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
Suse Battery Meter exit Linux - Laptop and Netbook 10 12-26-2005 11:26 AM
Battery Meter uveraser Linux - Laptop and Netbook 3 06-22-2004 07:09 AM
Battery Meter klfreese Red Hat 5 09-01-2003 06:59 PM
Battery Meter PortOS Linux - Hardware 2 12-09-2002 01:01 PM
Battery Meter yawara Linux - General 4 12-04-2002 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03: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
Open Source Consulting | Domain Registration