Driver for UPS

From: peter.senna@gmail.com (Peter Senna Tschudin)
Date: 2012-04-08 17:21:22

Dear list,

I want to write a driver for my UPS. My goal is to plug the USB cable,
and have the system to recognize the device as battery + AC power
supply. The effect I'm looking for is GNOME showing an icon with
battery load, power source state and time remaining to full and empty
battery. Some UPS from APC behave exactly like this. But it is not
clear how it is done.

I made a C program that talks to the UPS but I need some guidance from
here. How should this be implemented? Should I do a Kernel module or
deal with it on userland?

I found nut (http://www.networkupstools.org/) and apcupsd
(http://www.apcupsd.org/) that are not what I'm looking for.

Any references about APC UPS + Kernel are welcome.

Thanks!

Peter
-- 
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help