On Sep 20, 2009, at 8:07 PM, Lindsey Chesnutt wrote:

:/usr/local/ups/bin# ./upsc usbhid-...@localhost
battery.charge: 100
battery.runtime: 5760
battery.type: PbAc
battery.voltage.nominal: 12.0

Arjen,

You are more familiar with the usbhid-ups code than I am, so if you have time, can you check to see what might be preventing the driver from listing an actual battery voltage?

If not, I can muddle through the debug options related to that.

I noticed this while adding the following to my local tree:

diff --git a/drivers/tripplite-hid.c b/drivers/tripplite-hid.c
index 58def3b..173d7c3 100644
--- a/drivers/tripplite-hid.c
+++ b/drivers/tripplite-hid.c
@@ -67,6 +67,8 @@ static usb_device_id_t tripplite_usb_device_table[] = { { USB_DEVICE(TRIPPLITE_VENDORID, 0x1003), battery_scale_0dot1 },
        /* e.g. TrippLite AVR750U */
{ USB_DEVICE(TRIPPLITE_VENDORID, 0x1007), battery_scale_0dot1 },
+       /* e.g. TrippLite ECO550UPS (battery scale unverified) */
+       { USB_DEVICE(TRIPPLITE_VENDORID, 0x1008), battery_scale_1dot0 },
        /* e.g. TrippLite OMNI1000LCD */
{ USB_DEVICE(TRIPPLITE_VENDORID, 0x2005), battery_scale_0dot1 },

Lindsey - note that this should only affect the readings, not the internal low-battery shutdown decision inside the UPS.

--
Charles Lepple

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to