topic title: Battery display
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#1
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 (
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/conky-and-the-battery-t661.html#p3603"
linktext was:"antix.freeforu ms.org/conky-and-t ... html#p3603"
====================================
" onclick="window.open(this.href);return false) 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.
Posts: 138
harii
Joined: 14 Nov 2007
#2
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
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
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
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#4
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?
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#5
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?
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#6
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}
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#7
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?
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#8
What does"acpi -b" tell you when run in a terminal. It should tell you the BAT #.
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#9
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.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#10
Maybe try installing acpi-tools I think it's called.
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#11
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
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#12
That would just be the a driver. Not sure what to tell you.
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#13
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!
Posts: 16
theZoid
Joined: 26 Jul 2009
#14
JawsThemeSwimming428, I am duplicating your problem exactly....please post if you find something.
Posts: 251
JawsThemeSwimming428
Joined: 16 Mar 2008
#15
Glad I'm not the only one, you do the same!