LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2012, 01:46 AM   #1
Buto
Member
 
Registered: Sep 2004
Location: So Cal
Distribution: Slackware 12
Posts: 60

Rep: Reputation: 16
Lightweight Battery Monitor


I can't remember the name of this lightweight battery monitor. It was basically a bar you can make any color that went along the side of your monitor or the top. So you basically didn't even know it was there unless you were really looking for it. Anyone know the name of it?
 
Old 09-15-2012, 02:09 AM   #2
suttiwit
Member
 
Registered: Aug 2012
Location: Chiang Mai, Thailand
Distribution: Kubuntu 12.10 x86_64
Posts: 192
Blog Entries: 2

Rep: Reputation: 23
Couldn't remember, but, you can code one yourself! You will need C compiler, acpi, stdio.h, stdlib.h and a good text editor.
Here is the code:
Code:
#include <stdio.h>
#include <stdlib.h>

int main()
{
for (;;)
{
system("acpi -V");
system("sleep 0.5");
system("clear");
}
return 0;
}
And you can compile this with gcc:
Code:
gcc script-name.c
Where "script-name.c" is the name of code you saved.
And run it with:
Code:
./a.out
You should see it monitoring in real-time. Just put the terminal window some where.
Hope it helps!

Last edited by suttiwit; 09-15-2012 at 02:13 AM.
 
Old 09-16-2012, 09:27 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 680
Blog Entries: 1

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
I think you are referring to xbattery(1). I use to use that but it does not seem to work with newer kernels. You can try asapm to see if that is good enough.

John
 
Old 09-16-2012, 10:15 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Sounds like conky.
 
  


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 applet/battery monitor problem on Dell Studio lnx Linux - Laptop and Netbook 8 03-28-2011 03:40 AM
Screenlock + Battery Monitor + Network monitor Atrocity Slackware 1 10-02-2005 03:06 PM
try conky 1.3.0 -- lightweight, configurable system monitor jtan325 Linux - News 12 09-01-2005 11:15 PM
Monitor doesn't wake up after stanby and battery monitor problems (tm) Linux - Laptop and Netbook 2 03-23-2004 06:34 AM
Battery monitor not showing battery level? morrolan Linux - Laptop and Netbook 4 03-18-2004 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 AM.

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