LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi!

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.

thanks.
 
Old 06-28-2007, 05:18 AM   #2
b0uncer
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
Code:
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 05:20 AM.
 
Old 06-28-2007, 07:22 AM   #3
Rainer Hubovsky
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
you could also try:

$ acpi -b
 
  


Reply


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 07:16 AM
"Unknown AUTHORIZATION state command" thkreddy Linux - General 0 01-09-2007 05:52 AM
port forwarding --state (command not found?) abcampa Linux - Security 2 11-19-2005 10:58 AM
ISPconfig AUTHORIZATION state command . linutzy Linux - Software 0 09-10-2005 08:52 AM
SuSE update caused "Unknown AUTHORIZATION state command" StigIrish Linux - Networking 1 05-06-2005 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration