This patch adds support for the following ups to liebert-hid.c:
$ lsusb | grep Liebert
Bus 007 Device 005: ID 10af:0001 Liebert Corp. PowerSure PSA UPS
Using this patch, I'm able to obtain information about the ups via
upsc:
$ upsc upsname
battery.charge: 100
battery.runtime: 1012
battery.type: PbAc
battery.voltage: 1172
battery.voltage.nominal: 12
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.1
driver.version.data: Liebert HID 0.3
driver.version.internal: 0.34
ups.mfr: Liebert
ups.model: Liebert PSA 650 FW:09
ups.productid: 0001
ups.serial: XXXXXXXXXXXXXXX #(my censorship, the driver appears to
report the correct serial #)
ups.status: OB
ups.vendorid: 10af
I noticed upsmon is still claiming that the ups is on battery when it's
definitely receiving power via mains, but this may be a
misconfiguration on my part and not necessarily driver related. I set
this up in a hurry today, with the goal of convincing NUT to recognize
this ups.
Note that the original vendorid in liebert-hid.c, 0d6a, is listed as
belonging to Megapower International Corp. Liebert's officially
registered vendorid is 10af. See http://www.linux-usb.org/usb.ids for
more information.
--
Mike Edwards | If this email address disappears,
Unsolicited advertisments to | assume it was spammed to death. To
this address are not welcome. | reach me in that case, s/-.*@/@/
"Our progress as a nation can be no swifter than our progress in education.
The human mind is our fundamental resource."
-- John F. Kennedy
--- drivers/liebert-hid.c.orig 2009-02-17 04:20:48.000000000 -0500
+++ drivers/liebert-hid.c 2009-11-09 22:40:01.569223000 -0500
@@ -33,11 +33,13 @@
/* Liebert */
#define LIEBERT_VENDORID 0x06da
+#define LIEBERT_VENDORID2 0x10af
/* USB IDs device table */
static usb_device_id_t liebert_usb_device_table[] = {
/* various models */
{ USB_DEVICE(LIEBERT_VENDORID, 0xffff), NULL },
+ { USB_DEVICE(LIEBERT_VENDORID2, 0x0001), NULL },
/* Terminating entry */
{ -1, -1, NULL }
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev