Hi Patrick, I didn't get further bug reports from you, so I have now listed your device as "supported" by newhidups. Last I saw as of your below message, the driver was working as expected. If there are any future problems, let me know! -- Peter Patrick Nolan wrote:> > Remember me? Back in May we exchanged some messages about my Tripp-Lite > UPS. My boss has gone on vacation, so I finally got a chance to take a > look at this. > > Peter Selinger wrote: > > Patrick Nolan wrote: > >> Peter Selinger wrote: > >>> Hi Patrick, > >>> > >>> in February, you tried to post the below message to the nut-upsuser > >>> list, but the post was rejected because you were not subscribed to the > >>> list. Unfortunately, you did not subscribe and re-post it. > >>> > >>> Anyway, I have been working on Tripp-Lite support for newhidups > >>> recently, and I wonder if you have any feedback. Did you ever get this > >>> device to work? > >> It works ok under the old hidups driver. > >> The only annoyance is that when the machine is rebooted, the ownership > >> of /dev/hiddev1 reverts to root. I never got around to making an > >> automatic process to make sure which device it gets attached to > >> (although it always seems to be hiddev1). I could do that and put > >> it into the startup script, but so far I have been checking and > >> changing the ownership by hand. > > > > Right. This is perhaps a matter of setting up the correct hotplugging > > scripts, but I am not sure how to do it for the /dev/hiddev interface. > > In any case, the old hidups driver will be discontinued soon, and is > > not actively supported any more. > > > >>> >From the information you sent, it looks like it quite might be a > >>> proper HID power class device (not serial-over-usb). If you could run > >>> (as root) > >>> > >>> newhidups -u root -DD -x generic -x vendorid=09ae auto > >>> > >> My version of newhidups doesn't accept the -x generic argument. > > > > Drats, you're right. I though this feature was in 2.0.3, but actually > > it was introduced afterwards. If you get the current development > > sources from SVN, you would be able to run this. In any case, you > > would need the newest version for Tripp Lite support. > > > >> newhidups -u root -DD -x vendorid=09ae auto gives > >> > >> Checking device (09AE/1003) (002/003) > >> - VendorID: 09ae > >> - ProductID: 1003 > >> - Manufacturer: Tripp Lite > >> - Product: TRIPP LITE UPS > >> - Serial Number: 692186 A > >> - Bus: 002 > >> Trying to match device > >> Device does not match - skipping > >> > >> I don't know if this will help you. > > > > Not very much, unfortunately. > > > > In case you feel like experimenting with this, I am attaching a patch > > that *might* enable this device to be supported by the newhidups > > driver, when applied to the current development version from the SVN > > repository. Some fine-tuning will probably be required, for which the > > output of "newhidups -u root -DD -x generic -x vendorid=09ae auto" > > would still be useful. > > > > -- Peter > > OK. I downloaded the latest development version and added your patch. > Here's what comes out. It seems to go into an infinite loop on the > notifications. > > > $ sudo ./newhidups -u root -DD -x generic -x vendorid=09ae auto > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0) > > debug level is '2' > Checking device (09AE/1003) (002/003) > - VendorID: 09ae > - ProductID: 1003 > - Manufacturer: Tripp Lite > - Product: TRIPP LITE UPS > - Serial Number: 692186 A > - Bus: 002 > Trying to match device > Device matches > HID descriptor retrieved (Reportlen = 459) > Report descriptor retrieved (Reportlen = 459) > Found HID device > Report Descriptor size = 459 > Detected a UPS: Tripp Lite /TRIPP LITE UPS > Using subdriver: GENERIC HID 0.1 > Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1.000000 > Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 2.000000 > Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 3.000000 > Path: UPS.PowerSummary.Input.ConfigVoltage, Type: Feature, Value: 120.000000 > Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2.000000 > Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 24.000000 > Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000 > Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 100.000000 > Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 100.000000 > Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value: 100.000000 > Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, > Value: 0.000000 > Can't find object UPS.PowerSummary.PresentStatus.008400d0 > Path: UPS.PowerSummary.PresentStatus.008400d0, Type: Input > Can't find object UPS.PowerSummary.PresentStatus.ConfigActivePower > Path: UPS.PowerSummary.PresentStatus.ConfigActivePower, Type: Input > Can't find object UPS.PowerSummary.PresentStatus.ConfigPercentLoad > Path: UPS.PowerSummary.PresentStatus.ConfigPercentLoad, Type: Input > Can't find object UPS.PowerSummary.PresentStatus.0084004b > Path: UPS.PowerSummary.PresentStatus.0084004b, Type: Input > Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, > Value: 0.000000 > Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value: > 1.000000 > Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value: > 1.000000 > Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value: > 0.000000 > Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, > Value: 0.000000 > Path: UPS.BatterySystem.Battery.ConfigVoltage, Type: Feature, Value: > 12.000000 > Path: UPS.BatterySystem.Battery.PresentStatus.Charging, Type: Feature, > Value: 1.000000 > Path: UPS.BatterySystem.Battery.PresentStatus.Discharging, Type: > Feature, Value: 0.000000 > Path: UPS.BatterySystem.Battery.PresentStatus.NeedReplacement, Type: > Feature, Value: 0.000000 > Path: UPS.BatterySystem.Test, Type: Feature, Value: 0.000000 > Path: UPS.Flow.ConfigVoltage, Type: Feature, Value: 120.000000 > Path: UPS.Flow.ConfigFrequency, Type: Feature, Value: 60.000000 > Path: UPS.Flow.ConfigApparentPower, Type: Feature, Value: 550.000000 > Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, Value: > 65535.000000 > Path: UPS.OutletSystem.Outlet.ffff0091, Type: Feature, Value: 0.000000 > Path: UPS.OutletSystem.Outlet.ffff0092, Type: Feature, Value: 0.000000 > Path: UPS.OutletSystem.Outlet.ffff00c7, Type: Feature, Value: 1.000000 > Path: UPS.ffff0010.00ff0001.ffff007d, Type: Feature, Value: 4099.000000 > Path: UPS.ffff0015.00ff0001.ffff00c0, Type: Feature, Value: 255.000000 > Path: UPS.ffff0015.00ff0001.ffff00d2, Type: Feature, Value: 255.000000 > Path: UPS.ffff0015.00ff0001.ffff00c1, Type: Feature, Value: 255.000000 > Path: UPS.ffff0015.00ff0001.ffff00c2, Type: Feature, Value: 255.000000 > Path: UPS.ffff0015.00ff0001.ffff00c3, Type: Feature, Value: 255.000000 > Path: UPS.ffff0015.00ff0001.ffff00c5, Type: Feature, Value: 2.000000 > Can't retrieve Report 154 (-32/32): Broken pipe > Path: UPS.ffff0015.00ff0001.ffff00c4, Type: Feature > entering identify_ups(0x09ae, 0x1003) > > upsdrv_updateinfo... > dstate_init: sock /var/state/ups/newhidups-auto open on fd 5 > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 1 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 5 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigPercentLoad > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigActivePower > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0 > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ShutdownImminent > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 1 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 5 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigPercentLoad > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigActivePower > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0 > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ShutdownImminent > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 1 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 5 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigPercentLoad > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigActivePower > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0 > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ShutdownImminent > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 1 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity > > upsdrv_updateinfo... > Waiting for notifications... > > =>Got 5 HID Objects... > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigPercentLoad > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ConfigActivePower > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0 > > find_hid_info: unknown variable: > UPS.PowerSummary.PresentStatus.ShutdownImminent > > upsdrv_updateinfo... > Waiting for notifications... >