LinuxQuestions.org
Review your favorite Linux distribution.
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 06-28-2006, 02:23 PM   #1
beserkjay
Member
 
Registered: May 2006
Posts: 53

Rep: Reputation: 15
Need a command/program to find out laptop battery level


I'm running slack 10.2 with 2.4 kernel and the icewm windows manager and I'm trying to find a command or program so I can see (or preferably monitor) my battery life.

Any suggestions?

Thanks.
 
Old 06-28-2006, 02:30 PM   #2
stitchman
Member
 
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
Slackware comes with Gkrellm which has a battery monitor as well as monitors a lot of other things (which you can turn off if you don't want to see them)
 
Old 06-28-2006, 02:44 PM   #3
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
After typing that into the command line nothing seems to happen...

edit- nevermind it was hidden over other windows, but I don't see the battery level...

Last edited by beserkjay; 06-28-2006 at 02:47 PM.
 
Old 06-28-2006, 02:59 PM   #4
stitchman
Member
 
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
right click on the stack that comes up, you might have to enable the battery monitor (with a checkbox maybe?)
 
Old 06-28-2006, 03:07 PM   #5
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Nothing changes when I enable or disable the battery in the options after right clicking.
 
Old 06-28-2006, 03:58 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Which 2.4 kernel? Bare.i? Or bareacpi.i?
You need acpi enabled to get battery info.
Either install bareacpi (You can use 'pkgtool' as root to do this, just choose 'Install Scripts to run again'), or recompile your kernel with ACPI functions included.

If you choose to recompile, here is an EXCELLENT guide.
 
Old 06-28-2006, 10:06 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Another thing to try
Code:
cat /proc/acpi/battery/BAT0/info
Sample output:

present: yes
design capacity: 47520 mWh
last full capacity: 32840 mWh
battery technology: rechargeable
design voltage: 10800 mV
design capacity warning: 1642 mWh
design capacity low: 200 mWh
capacity granularity 1: 1 mWh
capacity granularity 2: 1 mWh
model number: IBM-08K8193
serial number: 125
battery type: LION
OEM info: SANYO
 
Old 06-28-2006, 10:48 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Mine is cat /proc/acpi/battery/BAT1/info
 
Old 06-28-2006, 11:02 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Some laptops (such as mine) use APM rather than ACPI. If that's the case, you'll load the apm module and then type "apm" at the command line to check your battery status.
 
Old 06-29-2006, 04:39 PM   #10
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
hmm when I try apm it says I don't have support in this kernel, and I don't have a acpi directory in my proc directory.

Would upgrading to 2.6 kernel allow me to install battery monitoring modules?
 
Old 06-29-2006, 06:39 PM   #11
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by cwwilson721
Which 2.4 kernel? Bare.i? Or bareacpi.i?
You need acpi enabled to get battery info.
Either install bareacpi (You can use 'pkgtool' as root to do this, just choose 'Install Scripts to run again'), or recompile your kernel with ACPI functions included.

If you choose to recompile, here is an EXCELLENT guide.
Sometimes, you already have the answer.
 
  


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
laptop battery level monitor luisMxQsw Linux - Hardware 1 02-17-2006 11:55 AM
Battery Level; Wireless jeopardyracing Linux - Laptop and Netbook 6 09-16-2004 12:08 PM
problem with the battery level BlackBook Linux - Laptop and Netbook 2 03-27-2004 06:18 AM
Battery monitor not showing battery level? morrolan Linux - Laptop and Netbook 4 03-18-2004 04:42 AM
Battery level meter wzzrd Linux - Hardware 6 05-01-2003 03:09 PM

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

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