Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Battery display

Post questions, problems here.

Battery display

Postby JawsThemeSwimming428 on Mon Jul 20, 2009 1:05 am

I want to have something that shows me the remaining battery percentage. Is there anything to do this on the bar? I found this thread (conky-and-the-battery-t661.html#p3603) and tried adding the lines that eriefisher did in conky after I installed acpitool and it doesn't show anything in conky. I would rather have it shown on the bar but if conky can do it that is ok as well.
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby harii on Mon Jul 20, 2009 1:40 am

i use xbattbar on one of my laptops
a thin bar at the bottom - works good

conky
look in "/proc/acpi/battery" i have one laptop that it was CMB1 not BAT0
Peace and Justice are two sides of the same coin.
User avatar
harii
 
Posts: 128
Joined: Wed Nov 14, 2007 4:35 am
Location: waterloo,ia- USA

Re: Battery display

Postby rokytnji on Mon Jul 20, 2009 9:56 pm

If you can use my conky.rc entry for battery you are welcome to it. As Hari said. Different Laptops have different Battery designations. So If it doesn't work use BAT1, etc...

I also had to install acpi and acpi tools via synaptic Package manager for this entry to work.

Code: Select all
${color red}Battery: ${color red}$acpiacadapter, ${battery_bar BAT0}


Good Luck
Free Linux Books: http://www.linuxforums.org/forum/coffee-lounge/137677-whats-best-book-about-linux.html
Linux Registered User # 475019
And I’ll keep using Linux until they pry it from my cold dead fingers.
User avatar
rokytnji
 
Posts: 250
Joined: Fri Feb 20, 2009 3:44 am
Location: Pecos, Texas

Re: Battery display

Postby JawsThemeSwimming428 on Mon Jul 20, 2009 10:16 pm

harii wrote:i use xbattbar on one of my laptops
a thin bar at the bottom - works good

conky
look in "/proc/acpi/battery" i have one laptop that it was CMB1 not BAT0


I just went to /proc/acpi and there is no "battery" in there. I wasn't too familiar with what I was looking at but I didn't see anything relevant. What should I do now?
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby JawsThemeSwimming428 on Fri Jul 24, 2009 6:11 am

I'm still having an issue with this. I'm not understanding why I don't see a battery in /proc/acpi. Anyone have any idea how to resolve this?
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby eriefisher on Fri Jul 24, 2009 3:17 pm

I don't show the battery there either. Things have changed, in the kernel I beleive. This is what I have in my conky now, for the battery:
Code: Select all
${color white}Battery:
${color white}${execi 10 (acpi -b | awk '{print $3, $4}')}
${color white}${battery_bar BAT1}
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1431
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Battery display

Postby JawsThemeSwimming428 on Sat Jul 25, 2009 12:42 am

eriefisher wrote:I don't show the battery there either. Things have changed, in the kernel I beleive. This is what I have in my conky now, for the battery:
Code: Select all
${color white}Battery:
${color white}${execi 10 (acpi -b | awk '{print $3, $4}')}
${color white}${battery_bar BAT1}


erie,
I pasted your battery config for conky in my .conkyrc and it shows nothing in the battery bar (I know my battery isn't dead I'm still on it!). I also tried switching BAT1 to BAT0 and still nothing. What next?
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby eriefisher on Sat Jul 25, 2009 1:36 am

What does "acpi -b" tell you when run in a terminal. It should tell you the BAT #.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1431
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Battery display

Postby JawsThemeSwimming428 on Sat Jul 25, 2009 2:26 am

eriefisher wrote:What does "acpi -b" tell you when run in a terminal. It should tell you the BAT #.


When I run that command in a terminal I get the command not found message. I checked in Synaptic and it says acpi is installed.
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby eriefisher on Sat Jul 25, 2009 4:03 am

Maybe try installing acpi-tools I think it's called.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1431
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Battery display

Postby JawsThemeSwimming428 on Sat Jul 25, 2009 4:12 am

eriefisher wrote:Maybe try installing acpi-tools I think it's called.


I tried that earlier as well. When I try to install acpi-tools via apt it says it couldn't find the package. I went into Synaptic and it wasn't there either. I found this but really am not sure if it means anything relevant...

root@wantix:/home/willy# lsmod | grep battery
battery 8192 0


EDIT: I am running antiX 8.2 final, fyi
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby eriefisher on Sat Jul 25, 2009 4:20 am

That would just be the a driver. Not sure what to tell you.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1431
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Battery display

Postby JawsThemeSwimming428 on Sat Jul 25, 2009 6:30 am

I'm not really coming up with too many specific enough results by Googling it. I'll continue to try but if anyone has any idea where to go with this that would be wonderful! It's hard using a laptop and not knowing how long the battery will last!
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Re: Battery display

Postby theZoid on Sun Jul 26, 2009 9:08 pm

JawsThemeSwimming428, I am duplicating your problem exactly....please post if you find something.
Cheers, Big Ears!

DΞLL Precision M4400: T9600, 4GB 800, 250GB 7200.3, WXGA+ LED, QUADRO FX 770 512MB, Intel 5300, BT, Backlit KB//AntiX 8.2\Vista Business 64
http://linuxchronicles.wordpress.com/
theZoid
 
Posts: 16
Joined: Sun Jul 26, 2009 2:20 am

Re: Battery display

Postby JawsThemeSwimming428 on Mon Jul 27, 2009 12:24 am

Glad I'm not the only one, you do the same!
JawsThemeSwimming428
 
Posts: 254
Joined: Mon Mar 17, 2008 1:28 am

Next

Return to antiX-M8 Intifada!

Who is online

Users browsing this forum: No registered users and 0 guests

cron