LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Yoper
User Name
Password
Yoper This forum is for the discussion of Yoper Linux.

Notices

Reply
 
Search this Thread
Old 10-02-2004, 02:49 AM   #1
amjith
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
Laptop Battery monitor


Is there is a way to find out the battery charge in Yoper?
 
Old 10-02-2004, 07:06 AM   #2
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
your kernel has to support ACPI for this to work. try
$ cat /proc/acpi/battery/BAT0/state
to find out.
if that works, you can use one of those nifty battery status monitors for your preferred desktop (i use wmacpi with Window Maker).
 
Old 10-02-2004, 11:10 AM   #3
amjith
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
/proc/acpi is there, but there is no battery/BAT0/state inside the acpi. How do I make my kernel support acpi. Do I have to recompile it? If so with what options and can you point me to a thread where kernel recompiling is discussed?
Thanks
 
Old 10-02-2004, 12:46 PM   #4
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
i suggest you try loading the battery kernel module first:
# modprobe battery
if that helps, you can auto-load it on boot by adding a line reading "battery" to /etc/modules.

if it doesn't, you need to recompile the kernel. there's a kernel compilation tutorial on this site.
The Linux Documentation Project also maintains a Kernel-HOWTO, but it seems to be offline right now.

When configuring the kernel, you'll find the battery support under Power Management/ACPI/battery

Last edited by psisquare; 10-06-2004 at 06:40 PM.
 
Old 10-02-2004, 03:04 PM   #5
amjith
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks - That helped

Hi,
Thanks a lot. That helped. I did a modprobe battery and checked to see if there are any errors by using dmesg. I found no errors and I could find the state by doing a less /proc/acpi/battery/C152/state.
 
Old 10-06-2004, 03:14 PM   #6
mightypile
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
Thanks psisquare!

I'd been wondering the same thing, followed your advice, and bingo, I'm off and running.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
battery power monitor for laptop Lleb_KCir Linux - Software 4 05-04-2005 06:30 PM
Battery monitor crashes laptop gbrad Linux - Software 0 02-02-2004 02:14 PM
How to show battery monitor on laptop schu Linux - Newbie 5 12-26-2003 10:36 PM
Battery Charge Monitor on Laptop. WMCrazyOne Linux - General 2 11-28-2003 08:52 AM
Laptop battery monitor lost after update in SuSE 9 Pcghost Linux - Laptop and Netbook 4 11-22-2003 10:32 PM


All times are GMT -5. The time now is 09:55 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration