Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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. –  user13083 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 –  user13083 Dec 7 '11 at 9:06
add comment

3 Answers

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. –  user13083 Dec 6 '11 at 17:52
1  
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 –  user13083 Dec 6 '11 at 18:38
show 3 more comments

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
add comment

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
add comment

Your Answer

 
discard

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.