LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Command line battery monitor? (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/command-line-battery-monitor-167837/)

rech 04-08-2004 02:09 PM

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.

another2 04-08-2004 03:40 PM

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

rech 04-13-2004 10:52 PM

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

alveric 04-14-2004 01:47 PM

acpi should be available in the mandrake CDs (was in 9.1).


All times are GMT -5. The time now is 01:37 AM.