I have a APC Back-UPS CS 350, and have installed the apcupsd package on my bubba2.
I was pleasantly surprised at the time that the device was recognized by the software without any modifications to the bubba2. I've set it up to hibernate my ubuntu workstation 10 minutes after power failure, and then shutdown the bubba2 when 5% remains of the UPS battery. This works like a treat. I even hacked some scripts in the apcupsd installation to send a WOL package to my Ubuntu machine to wake it up when power resumes.
When I tried to migrate this solution to the b3, I ran into trouble.
The apcupsd software does not recognize the device.
I reckon it is because it is not showing up in /dev/usb as a hiddev, but rather in /dev as a hidraw (see below).
bubba2:
/var/log/syslog (or dmesg):
Code: Select all
Dec 3 19:11:46 bubba2 kernel: usb 1-1.2: new low speed USB device using fsl-ehci and address 23
Dec 3 19:11:46 bubba2 kernel: usb 1-1.2: configuration #1 chosen from 1 choice
Dec 3 19:11:48 bubba2 kernel: generic-usb 0003:051D:0002.0002: hiddev96: USB HID v1.10 Device [American Power Conversion Back-UPS CS 350 FW:807.q8.I USB FW:q8] on usb-fsl-ehci.0-1.2/input0
Code: Select all
ls -l /dev/usb
crw-rw---- 1 root root 180, 96 2010-12-03 19:20 hiddev0
b3:
/var/log/syslog (or dmesg):
Code: Select all
Dec 3 19:18:17 b3 kernel: [166622.763824] usb 1-1.1: new low speed USB device using orion-ehci and address 3
Dec 3 19:18:19 b3 kernel: [166624.508978] generic-usb 0003:051D:0002.0001: hidraw0: USB HID v1.10 Device [American Power Conversion Back-UPS CS 350 FW:807.q8.I USB FW:q8] on usb-orion-ehci.0-1.1/input0
Code: Select all
ls -l /dev/hid*
crw------- 1 root root 252, 0 Dec 3 19:18 /dev/hidraw0
Problem
I'm not sure about this. On the bubba2 there was only /etc/udev/rules.d.2.6 kernels use udev and some distributions to not configure it to automatically create /dev/usb/hiddev?? as they should, causing apcupsd to fail to locate the UPS.
Workaround
Edit the file /etc/udev/rules.d/50-udev.rules, and add the following:
KERNEL="hiddev*", NAME="usb/hiddev%n"
This exists on the b3 as well, but there is also /lib/udev/rules.d, and the syntax seems to have changed.
Any pointers on what I can do to make the b3 recognize the device as /dev/usb/hiddev*?
Cheers,
Cheeseboy