LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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).

Notices

Reply
 
Search this Thread
Old 06-13-2004, 03:30 PM   #1
uveraser
Member
 
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37

Rep: Reputation: 15
Battery Meter


Hi,
I don't have a very good battery, and consequently have to keep a very close watch on the remaining battery life (as a percentage, not just a time). Even if I had a good battery, this would be helpful. The only battery meter I have seen for linux is the one built into KDE. Does anybody know of any other meters? Preferably I would like one which runs in the console and has support for dual batteries.

Thanks
Simon
 
Old 06-14-2004, 09:35 AM   #2
chop
LQ Newbie
 
Registered: Jun 2004
Location: norway
Distribution: tsl 2.1
Posts: 18

Rep: Reputation: 0
hi!
i got a new laptop on monday, and a friend with the same model made a batterymeter in bash.
url: home.4th-age.com/batterymon

i don't know if it works with more than one battery, but try
 
Old 06-16-2004, 03:35 AM   #3
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
I just wrote a simple script

Code:
more /proc/acpi/battery/BAT1/state
called it bat and put it in /bin so typing bat gives details of the charge left in the battery. Dont know how you'd do it though with apm.
 
Old 06-22-2004, 07:09 AM   #4
uveraser
Member
 
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks guys,
Don't currently have ACPI (working on it).

The script from 'chop' didn't work (can't for the life of me think why), but I used some of the code to write my own script (isn't open source great ), which, after much messing, did work.
No idea whether it works with dual batteries, as I don't have dual batteries (YET!).

Strangely, I seem to get different codes for some things- here's a good one- according to the definitions given in chops script my battery is high and low at the same time.

Does anybody know where I can find the official definitions for the codes in /proc/apm?

Last edited by uveraser; 06-22-2004 at 07:11 AM.
 
  


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
battery meter? gkrellm lauram93 Linux - Laptop and Netbook 6 10-16-2004 08:13 AM
Battery meter issue krimson Slackware 10 08-12-2004 12:44 PM
Battery Meter klfreese Red Hat 5 09-01-2003 06:59 PM
Battery Meter PortOS Linux - Hardware 2 12-09-2002 01:01 PM
Battery Meter yawara Linux - General 4 12-04-2002 11:49 AM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration