<div dir="ltr"><div>I've searched the listserv archive, to no avail, so I hope I'm not duplicating a previous problem. I am anxious to get this working, so I'm open to uninstalling what I have and starting over.</div><div><br></div><div>One note which may not be meaningful is that this UPS pre-dates the Raspberry Pi I've got connected to it, and I used to use it with the CyberPower software, which requires logging in with a username and password. I have no idea if that figures into the problems I'm having.<br></div><div><br></div><div>Here are my specs:<br></div><div>OS:</div><div><pre class="gmail-aLF-aPX-K0-aPE">Operating System: Raspbian GNU/Linux 10 (buster)
Kernel name & release: Linux 5.4.51-v7l+
Kernel version: #1333 SMP Mon Aug 10 16:51:40 BST 2020<br><br></pre></div><div>exact NUT version:</div><div><span style="font-family:monospace">Network UPS Tools 2.7.3, according to the last line of man ups</span><br></div><div><br></div><div>NUT installation method: from source tarball, package or Subversion,</div><div>installed from package with apt-get install, using a scripted install from the Raspberry Pi forums (found here: <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=240651&p=1508882#p1508882">https://www.raspberrypi.org/forums/viewtopic.php?t=240651&p=1508882#p1508882</a>)<br></div><div><br></div><div>exact device name and related information (manufacturing date, web pointers, …)</div><div>lsusb reports: <span style="font-family:monospace">ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS</span></div><div>Actual model number is CST135LXU according to the device's labeling. Here's the web page: <a href="https://www.cyberpowersystems.com/product/ups/battery-backup/cst135xlu/">https://www.cyberpowersystems.com/product/ups/battery-backup/cst135xlu/</a></div><div><br></div><div></div>complete problem description, with any relevant traces, like system log excerpts, and driver debug output. You can obtain the latter using the following command, as root and after having stopped NUT:<br><div>/path/to/driver -DD -a <upsname></div><div><br></div><div>After installing and rebooting, running ups-info returns:</div><div><span style="font-family:monospace">Unable to retrieve UPS information</span></div><div><br></div><div>All attempts to use commands like upsc, upscmd, upsrw result in:</div><div><span style="font-family:monospace">Error: Connection failure: Connection refused</span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Here is the first portion of the output from <span style="font-family:monospace">sudo /lib/nut/usbhid-ups -DD -a <upsname></span>. I've tried letting the command run to completion, but it doesn't seem to have an end.<br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:monospace">Network UPS Tools - Generic HID driver 0.41 (2.7.4)<br>USB communication driver 0.33<br> 0.000000 debug level is '2'<br> 0.001167 upsdrv_initups...<br> 0.002216 Checking device (0080/A001) (002/039)<br> 0.002339 - VendorID: 0080<br> 0.002368 - ProductID: a001<br> 0.002393 - Manufacturer: unknown<br> 0.002422 - Product: unknown<br> 0.002449 - Serial Number: unknown<br> 0.002472 - Bus: 002<br> 0.002502 - Device release number: 0104<br> 0.002529 Trying to match device<br> 0.002562 Device does not match - skipping<br> 0.002603 Checking device (0080/A001) (002/038)<br> 0.002675 - VendorID: 0080<br> 0.002708 - ProductID: a001<br> 0.002736 - Manufacturer: unknown<br> 0.002765 - Product: unknown<br> 0.002794 - Serial Number: unknown<br> 0.002820 - Bus: 002<br> 0.002848 - Device release number: 0104<br> 0.002876 Trying to match device<br> 0.002904 Device does not match - skipping<br> 0.002945 Checking device (0764/0501) (001/003)<br> 0.009394 - VendorID: 0764<br> 0.009440 - ProductID: 0501<br> 0.009471 - Manufacturer: CPS<br> 0.009498 - Product: CST135XLU<br> 0.009527 - Serial Number: CR7EO2003120<br> 0.009553 - Bus: 001<br> 0.009582 - Device release number: 0200<br> 0.009613 Trying to match device<br> 0.009653 Device matches<br> 0.012189 HID descriptor length 487<br> 0.014668 Report Descriptor size = 487<br> 0.015155 Using subdriver: CyberPower HID 0.4<br> 0.015195 57 HID objects found<br> 0.017434 Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1<br> 0.018157 Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2<br> 0.018908 Path: UPS.PowerSummary.ff0100d0, Type: Feature, ReportID: 0x1b, Offset: 0, Size: 8, Value: 5<br> 0.019665 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 4<br> 0.020428 Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 3<br> 0.021156 Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 1<br> 0.021916 Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 2<br> 0.022902 Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 100<br> 0.022953 Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x07, Offset: 8, Size: 8, Value: 5<br> 0.022992 Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID: 0x07, Offset: 16, Size: 8, Value: 10<br> 0.023031 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 24, Size: 8, Value: 20<br> 0.023071 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 32, Size: 8, Value: 10<br> 0.023107 Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x07, Offset: 40, Size: 8, Value: 100<br> 0.025413 Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x08, Offset: 0, Size: 8, Value: 100<br> 0.025452 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x08, Offset: 0, Size: 8, Value: 100<br> 0.025493 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x08, Offset: 8, Size: 16, Value: 8070<br> 0.025531 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x08, Offset: 8, Size: 16, Value: 8070<br> 0.025569 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, ReportID: 0x08, Offset: 24, Size: 16, Value: 300<br> 0.025607 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, Offset: 24, Size: 16, Value: 300<br> 0.028203 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x09, Offset: 0, Size: 8, Value: 24<br> 0.028919 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 8, Value: 24<br> 0.029666 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.029705 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.029741 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.029778 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br> 0.029815 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1<br> 0.029850 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0<br> 0.029886 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.029921 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.029956 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.029991 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br> 0.030026 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1<br> 0.030062 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0<br> 0.032423 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.032468 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.033154 Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x0d, Offset: 0, Size: 8, Value: 3<br> 0.033910 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 120<br> 0.034656 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 120<br> 0.035409 Path: UPS.Output.LowVoltageTransfer, Type: Feature, ReportID: 0x10, Offset: 0, Size: 16, Value: 100<br> 0.035450 Path: UPS.Output.LowVoltageTransfer, Type: Input, ReportID: 0x10, Offset: 0, Size: 16, Value: 100<br> 0.035487 Path: UPS.Output.HighVoltageTransfer, Type: Feature, ReportID: 0x10, Offset: 16, Size: 16, Value: 139<br> 0.035523 Path: UPS.Output.HighVoltageTransfer, Type: Input, ReportID: 0x10, Offset: 16, Size: 16, Value: 139<br> 0.036156 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: 136<br> 0.036904 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 5<br> 0.037655 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.037691 Path: UPS.Output.Test, Type: Input, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.038407 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.039156 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60<br> 0.039904 Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset: 0, Size: 1, Value: 0<br> 0.039941 Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17, Offset: 1, Size: 1, Value: 0<br> 0.040657 Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID: 0x18, Offset: 0, Size: 16, Value: 810<br> 0.041407 Path: UPS.Output.ConfigApparentPower, Type: Feature, ReportID: 0x19, Offset: 0, Size: 16, Value: 1350<br> 0.042160 Path: UPS.Output.ff010043, Type: Feature, ReportID: 0x1a, Offset: 0, Size: 8, Value: 1<br> 0.042202 Path: UPS.Output.ff010043, Type: Input, ReportID: 0x1a, Offset: 0, Size: 8, Value: 1<br> 0.042909 Path: UPS.ff0100ba.ff0100bb, Type: Feature, ReportID: 0x1c, Offset: 0, Size: 16, Value: 0<br> 0.042948 Path: UPS.ff0100ba.ff0100bc, Type: Feature, ReportID: 0x1c, Offset: 16, Size: 8, Value: 0<br> 0.042986 Path: UPS.ff0100ba.ff0100bd, Type: Feature, ReportID: 0x1c, Offset: 24, Size: 16, Value: 0<br> 0.043038 Report descriptor retrieved (Reportlen = 487)<br> 0.043065 Found HID device<br> 0.043095 Detected a UPS: CPS/CST135XLU<br> 0.043179 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 4<br> 0.046444 Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 3<br> 0.047953 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 24, Size: 8, Value: 20<br> 0.048014 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 32, Size: 8, Value: 10<br> 0.048067 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x08, Offset: 0, Size: 8, Value: 100<br> 0.048122 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x08, Offset: 8, Size: 16, Value: 8070<br> 0.048171 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, Offset: 24, Size: 16, Value: 300<br> 0.048221 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x09, Offset: 0, Size: 8, Value: 24<br> 0.048268 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 8, Value: 24<br> 0.048323 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 5<br> 0.048370 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.048418 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.048468 Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID: 0x18, Offset: 0, Size: 16, Value: 810<br> 0.048541 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60<br> 0.048587 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.048643 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.048691 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.048735 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.048775 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br> 0.048820 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1<br> 0.048863 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0<br> 0.048907 Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset: 0, Size: 1, Value: 0<br> 0.048948 Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17, Offset: 1, Size: 1, Value: 0<br> 0.048989 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 120<br> 0.049036 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 120<br> 0.049096 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: 136<br> 0.049146 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.049188 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.049230 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 6<br> 0.049274 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.049317 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60<br> 0.049359 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.049408 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.049450 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.049492 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.049535 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.049576 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1<br> 0.049637 upsdrv_initinfo...<br> 0.049673 upsdrv_updateinfo...<br> 0.051177 Got 6 HID objects...<br> 0.051241 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.051285 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.051322 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.051361 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br> 0.051400 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1<br> 0.051439 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0<br> 0.051472 Quick update...<br> 0.051509 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60<br> 0.051546 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.051582 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.051615 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.051648 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.051682 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br> 0.051857 dstate_init: sock /var/run/nut/usbhid-ups-pbx open on fd 5<br> 0.051935 upsdrv_updateinfo...<br> 0.302816 libusb_get_interrupt: Connection timed out<br> 0.302906 Got 0 HID objects...<br> 0.302979 Quick update...<br> 0.303033 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60<br> 0.303060 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60<br> 0.303120 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1<br> 0.303194 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0<br> 0.303261 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0<br> 0.303334 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0<br></span></div><div><br></div><div><br></div><div><br></div><div><br></div></div>