LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Need a command/program to find out laptop battery level (https://www.linuxquestions.org/questions/slackware-14/need-a-command-program-to-find-out-laptop-battery-level-459199/)

beserkjay 06-28-2006 02:23 PM

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.

stitchman 06-28-2006 02:30 PM

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)

beserkjay 06-28-2006 02:44 PM

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...

stitchman 06-28-2006 02:59 PM

right click on the stack that comes up, you might have to enable the battery monitor (with a checkbox maybe?)

beserkjay 06-28-2006 03:07 PM

Nothing changes when I enable or disable the battery in the options after right clicking.

cwwilson721 06-28-2006 03:58 PM

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.

J.W. 06-28-2006 10:06 PM

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

cwwilson721 06-28-2006 10:48 PM

Mine is cat /proc/acpi/battery/BAT1/info

dugan 06-28-2006 11:02 PM

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.

beserkjay 06-29-2006 04:39 PM

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?

cwwilson721 06-29-2006 06:39 PM

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 07:43 PM.