Rob Crittenden wrote:
>
> Is it possible to get the USB UPSs from APC working under Linux? I'm running
> the backported USB module in a 2.2.18 kernel and have the appropriate kernel
> modules compiled, and according to /proc/bus/usb/devices the UPS is recognized
> and claimed by the HID driver. Now I just need a UPS power driver to talk to
> the device.
>
> I saw that back in November, 2000 someone said they were working on a
> power driver but I've been unable to find any more recenty information on it.
>
> Has any progress been made on this?
There are basically three things that you need to do.
1. You need to hack part of the kernel to fix brokeness in the APC box. A
kernel option in -ac kernels after about 2.4.4-ac11
2. You need to support raw HID events. A kernel option in -ac kernels after
about 2.4.4-ac11, and also available from
http://athome.wetlogic.net:8008/hiddev/ as patches against 2.4.2 or 2.4.3-ac
kernels.
3. You need a user space driver. A basic one is available from
http://athome.wetlogic.net:8008/hiddev/ that will work with APC upsen. I have
some hacks to make it work with MGE Ellipse upsen, but it is a bit messy at
the moment, and I haven't had time to clean it up.
In the longer term, I am working with Russell Kroll on this, and the next
release of Network UPS Tools (http://www.exploits.org/nut/) will likely have
USB UPS support.
If anyone with a USB UPS is interested in doing some testing, and has a recent
-ac kernel (or can apply the USB hiddev patches) please send me the results of
running the program on the other end of this link:
http://www.exploits.org/~rkroll/hid/nutusb.c.gz
You may need to play with the include files (or use the -I option to GCC to
point to the correct directory) to make it build. Naturally the final product
will ./configure itself.
Brad
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users