Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Arch Linux plus LXDE installed in my laptop. I want to know the status of the battery level. I tried to install batterymon, but got too many errors that I couldn't decipher.

Is there any other way to monitor the battery level?

share|improve this question
what is you laptop model ? – Hanan N. Dec 6 '11 at 17:59
its an hcl it was bought in 2008. – j605 Dec 6 '11 at 20:23
If you couldn't decipher these errors, all the more reason to copy-paste the error messages into your question and we'll decipher them for you. – Gilles Dec 6 '11 at 23:27
this is the error file. pastebin.com/EcHKq65y – j605 Dec 7 '11 at 9:06

There are any number of tools to monitor your battery's state: you could install something like conky to display it on your desktop, or you could use ACPI, as described in the Arch Wiki.

The real issue you have is that if you do not understand, or are unwilling to try to resolve, the error messages when installing a simple application, then you are going to encounter far more difficult issues running Arch.

share|improve this answer

The easiest way to get it is through acpi command as follows (note acpi may not be installed by default so use apt-get or yum command to install the same):

$ acpi -V

or from the /proc fs

[root@centos ~]# cat /proc/acpi/battery/BAT0/*
alarm:                   unsupported
present:                 yes
design capacity:         50000 mWh
last full capacity:      50000 mWh
battery technology:      rechargeable
design voltage:          10000 mV
design capacity warning: 100 mWh
design capacity low:     50 mWh
capacity granularity 1:  1 mWh
capacity granularity 2:  1 mWh
model number:            1
serial number:           0
battery type:            VBOX
OEM info:                innotek
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      50000 mWh
present voltage:         10000 mV
[root@centos ~]# 

Aside, I found this bug link which says lxpanel has got problems on Fedora with ACPI stack and it mucks the states. https://bugzilla.redhat.com/show_bug.cgi?id=561311

There is another utility on sourceforge.net called webattery , perhaps worth a try. and another one jupiterapp, a tray app http://www.jupiterapplet.org/

share|improve this answer
Is there a tray app that will be more useful. – j605 Dec 6 '11 at 17:52
Arch uses pacman as a package manager... – jasonwryan Dec 6 '11 at 17:55
this is seemingly fixed in fedora core 16, issue with lxde panel battery app. – Nikhil Mulley Dec 6 '11 at 17:57
perhaps, use jupiter applet then. jupiterapplet.org – Nikhil Mulley Dec 6 '11 at 17:59
installed webattery,but i guess it'll take time to install jupiter as writing pkgbuild is very new to me – j605 Dec 6 '11 at 18:38

try installing acpi, and running acpi -b :)

then you can put the data directly to the conky or something, using: acpi -b | sed -r 's/.*([0-9]{2,3}%).*/\1/'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.