Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 04-08-2004, 02:09 PM   #1
Registered: Sep 2002
Location: California
Distribution: Slackware
Posts: 74

Rep: Reputation: 15
Command line battery monitor?

Is there a way I can access how much battery has been used up (or even better, how much is left at current useage levels) through the command line? More specifically, in my /proc/acpi/battery/BAT1/state I get stuff like:

present: yes
capacity state: ok
charging state: discharging
present rate: 16789 mW
remaining capacity: 24660 mWh
present voltage: 11193 mV

Can I glean the information from that? Is it a function of remaining capacity and present rate? Thanks.
Old 04-08-2004, 03:40 PM   #2
Registered: Jun 2003
Distribution: Debian sid
Posts: 69

Rep: Reputation: 15
yes you can, if you have the acpi package installed (should be in /usr/bin) you can just type in acpi at the command prompt, if you use the -V parameter it'll give you the temperature too. good stuff
Old 04-13-2004, 10:52 PM   #3
Registered: Sep 2002
Location: California
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 15
Hmm....I don't actually have that program. Where would I get it? I do have acpid installed and I did all the requisite stuff in the kernel. Thanks
Old 04-14-2004, 01:47 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
acpi should be available in the mandrake CDs (was in 9.1).


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
command line monitoring of battery lmcilwain Fedora 1 08-05-2005 05:26 PM
how to change monitor from 1024 to 800 at command line learnfast Linux - Newbie 3 04-08-2005 03:45 PM
what is the command line in terminal for monitor setup? bbmak Linux - Software 1 08-11-2004 11:21 PM
Command Line Traffic monitor JJX Linux - Networking 4 05-09-2004 11:49 PM
change monitor resolution from command line gschrade Linux - Newbie 2 04-23-2004 03:57 PM > Forums > Linux Forums > Linux - Laptop and Netbook

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