Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-28-2007, 06:14 AM   #1
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
command to knwo about the battery's state


is there a command line to know about the Accurate battery state-of-charge? I use FC6 on a notebook and to save the battery I don't use any x-Windows. so I'd like to know how to know how low is the accurate battery state-of-charge without using any graphical interface.

Old 06-28-2007, 06:18 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The information is in the virtual /proc filesystem (unless you've configured your system not to use that). Can't remember the exact files, but there's a batt under /proc somewhere, in which there are files like 'state' that give you the information. Maybe use
find /proc -name "batt*"
to locate it, and then 'cat' or 'less' or 'more' or 'most' the file to see the current contents.

/proc is a virtual filesystem (so it's not "real" in the sense your /home is), a kind of "peek hole" into the kernel. The files there give information about your system and/or kernel (cpuinfo, meminfo etc.)

Last edited by b0uncer; 06-28-2007 at 06:20 AM.
Old 06-28-2007, 08:22 AM   #3
Rainer Hubovsky
LQ Newbie
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
you could also try:

$ acpi -b


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
LXer: State by state, Microsoft responds to creeping threat LXer Syndicated Linux News 0 05-01-2007 08:16 AM
"Unknown AUTHORIZATION state command" thkreddy Linux - General 0 01-09-2007 06:52 AM
port forwarding --state (command not found?) abcampa Linux - Security 2 11-19-2005 11:58 AM
ISPconfig AUTHORIZATION state command . linutzy Linux - Software 0 09-10-2005 09:52 AM
SuSE update caused "Unknown AUTHORIZATION state command" StigIrish Linux - Networking 1 05-06-2005 11:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:15 PM.

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