Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-27-2005, 12:52 AM   #1
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Rep: Reputation: 30
apm and acpi -> battery status problem


I've compiled a new kernel with both acpi and apm and my battery status indicator in gkrellm doesn't work anymore. Apm won't load cause of acpi:
dmesg -> APM: overridden by acpi
So I wonder if there is a way to check battery status with acpi. I compiled ac-adapter and battery support into the kernel. If not how to load apm instead of acpi.

Thanks in advance!
Old 05-27-2005, 07:11 AM   #2
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
Check if /proc/acpi/battery/ exists. If it does, you can check the battery status by going deeper into the directory until you find a file called "state". To read it, simply execute "cat state".
If you don't have this, then maybe your laptop BIOS does not support acpi, in which case I would recompile the kernel with apm support only.
If you DO have acpi support, then I'd recompile the kernel without apm support.
Untill then, you could try disabling acpi by using the boot options "apm=on acpi=off", but this is not ideal. Here you can find more info.
Old 05-27-2005, 07:50 AM   #3
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Original Poster
Rep: Reputation: 30
Thank you! Then I believe my bios doesn't support acpi =( I'll try rmmod acpi and modprobe apm and see what happens...
Old 10-20-2010, 04:20 AM   #4
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 647

Rep: Reputation: 38
hello there.
so what happened?
cause i'm stuck in the same situation with an old laptop!


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
with APM I have no battery monitor, but with ACPI I lose my wireless connection mantis Linux - Laptop and Netbook 2 04-08-2005 06:11 PM
Battery monitor return incorrect value, problem to have APM support in kernel ? NothingHere Linux - Newbie 0 03-25-2005 09:04 AM
apm vs. acpi ? (modprobe: FATAL: Error inserting apm) OneManArmy Linux - Laptop and Netbook 0 05-12-2004 04:39 PM
is there an x battery status applet for woody with acpi?! tortenteufel Linux - Software 0 02-22-2004 12:48 PM
battery status with ACPI cornucopiae Linux - Laptop and Netbook 5 08-03-2003 11:56 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration