Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running Centos on my home laptop just to play around with, I ACPID running which is letting g-p-m get the battery information but I want to find out battery information over ssh and acpi doesn't work.

I've tried to locate it but no such success. Where is it or what am I missing?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

What do you want to know about the battery? Can't it be done by reading files from /proc/acpi/battery?

Personally, I'm having 2 battery's for my laptop: a new/good one and a battery that I broke by having the laptop hooked up to the adapter almost 24/7. When I'm visiting a customer, I remove the old battery and hook up the new one. But sometimes, when I get back to my office, I forget to put back the old battery.

So what I did: I wrote a cron script that reads the serial number from /proc/acpi/battery/C1F4/info to see what battery is connected. And if it's the wrong one, a passive popup (kdialog) is shown.

share|improve this answer
    
I don't use it as a laptop, its use it as a server that has a built in UPS :), Although I would prefer to get it from using acpi checking that file is sufficient. Cheers. –  Rudiger Mar 26 '11 at 12:21
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.