[Nut-upsuser] APC Question...

Arnaud Quette aquette.dev at gmail.com
Fri Jan 12 08:38:23 CET 2007


2007/1/12, richard at connections.yk.ca <richard at connections.yk.ca>:
> Greetings:
>
> I've been following through the instructions on how to connect an APC
> BackUPS 650 ES to USB, and have it monitored with NUT...
>
> I know my system can SEE the UPS, as DMESG shows this:
>
> hiddev96: USB HID v1.10 Device [APC Back-UPS ES 650 FW:818.w1.D USB FW:w1]
> on usb-0000:00:04.2-1
> usbcore: registered new driver usbhid
> drivers/usb/input/hid-core.c: v2.6:USB HID core driver
>
> I can see an entry in /dev/usb called hiddev0
>
> I have updated my ups.conf file as follows:
>
> [apc]
>         driver = newhidups
>         port = /dev/usb/hiddev0
>         desc = "APC Back-UPS ES 650"
>
> Note, that port used to be set to auto, but in deperation, I hardcoded it..
>
> I'm running kernel version 2.6.17.3, and have libusb-0.1.so.4.4.0
> libraries installed.
>
> I cannot see anything in /proc/bus/usb.

depending upon your system, this might sit in /dev/bus/usb
just check, using the "mount" command that you have something like:
procbususb on /proc/bus/usb type usbfs (rw)

> When I try to run newhidups, I get:
>
> root at excalibur:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root
> /dev/usb/hiddev0
> Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)
>
> No matching USB/HID UPS found
> root at excalibur:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root
> Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)
>
> No matching USB/HID UPS found
> root at excalibur:/usr/src/nut-2.0.4#
>
> Can anyone suggest a course of action I can take?..

this should be due to the fact that you have not set the hotplug or udev rules.
check the nut/scripts/hotplug*/README for more information.
These scripts are there to set the right permissions on the dev file
upon {cold,hot}plugging.

finally note that newhidups is the way to go since it will fully
replace hidups by nut 2.2

Arnaud
-- 
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/



More information about the Nut-upsuser mailing list