Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
06-28-2006, 03:23 PM
|
#1
|
Member
Registered: May 2006
Posts: 53
Rep:
|
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.
|
|
|
06-28-2006, 03:30 PM
|
#2
|
Member
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82
Rep:
|
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)
|
|
|
06-28-2006, 03:44 PM
|
#3
|
Member
Registered: May 2006
Posts: 53
Original Poster
Rep:
|
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 03:47 PM.
|
|
|
06-28-2006, 03:59 PM
|
#4
|
Member
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82
Rep:
|
right click on the stack that comes up, you might have to enable the battery monitor (with a checkbox maybe?)
|
|
|
06-28-2006, 04:07 PM
|
#5
|
Member
Registered: May 2006
Posts: 53
Original Poster
Rep:
|
Nothing changes when I enable or disable the battery in the options after right clicking.
|
|
|
06-28-2006, 04:58 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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.
|
|
|
06-28-2006, 11:06 PM
|
#7
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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
|
|
|
06-28-2006, 11:48 PM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Mine is cat /proc/acpi/battery/BAT1/info
|
|
|
06-29-2006, 12:02 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
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.
|
|
|
06-29-2006, 05:39 PM
|
#10
|
Member
Registered: May 2006
Posts: 53
Original Poster
Rep:
|
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?
|
|
|
06-29-2006, 07:39 PM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|