Updates on this:

1)      Making progress in the related Dev list thread here: 
https://alioth-lists.debian.net/pipermail/nut-upsdev/2019-June/007440.html
I’ll keep that thread up to date with progress as I go. But if there are 
specific things it would make sense to test here, just let me know. Otherwise, 
I figure reducing redundancy makes sense?

2)      I tried disabling usbcore.autosuspend, but that did not seem to stop 
the drops
An example of what I tried is below. I believe simply echo-ing “-1” will change 
the setting until the next reboot and it should apply to any newly connected 
devices, so I did that, connected the device to the virtual machine, and 
checked syslog.

[root@localhost ~]# cat /sys/module/usbcore/parameters/autosuspend
2
[root@localhost ~]# echo -1 >/sys/module/usbcore/parameters/autosuspend
[root@localhost ~]# cat /sys/module/usbcore/parameters/autosuspend
-1
[root@localhost ~]# tail -f /var/log/messages
Jun 24 13:37:33 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:37:33 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:37:33 localhost kernel: hid-generic 0003:09AE:2012.0005: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
Jun 24 13:37:48 localhost kernel: usb 2-2.1: USB disconnect, device number 7
Jun 24 13:37:51 localhost kernel: usb 2-2.1: new low-speed USB device number 8 
using uhci_hcd
Jun 24 13:37:51 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
Jun 24 13:37:51 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
Jun 24 13:37:51 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:37:51 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:37:51 localhost kernel: hid-generic 0003:09AE:2012.0006: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
Jun 24 13:38:06 localhost kernel: usb 2-2.1: USB disconnect, device number 8
Jun 24 13:38:06 localhost chronyd[5489]: Selected source 74.208.235.60
Jun 24 13:38:09 localhost kernel: usb 2-2.1: new low-speed USB device number 9 
using uhci_hcd
Jun 24 13:38:09 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
Jun 24 13:38:09 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
Jun 24 13:38:09 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:38:09 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:38:09 localhost kernel: hid-generic 0003:09AE:2012.0007: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
Jun 24 13:38:25 localhost kernel: usb 2-2.1: USB disconnect, device number 9
Jun 24 13:38:25 localhost kernel: usb 2-2.1: new low-speed USB device number 10 
using uhci_hcd
Jun 24 13:38:26 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
Jun 24 13:38:26 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
Jun 24 13:38:26 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:38:26 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:38:26 localhost kernel: hid-generic 0003:09AE:2012.0008: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
Jun 24 13:38:40 localhost kernel: usb 2-2.1: USB disconnect, device number 10
Jun 24 13:38:43 localhost kernel: usb 2-2.1: new low-speed USB device number 11 
using uhci_hcd
Jun 24 13:38:43 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
Jun 24 13:38:43 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
Jun 24 13:38:43 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:38:43 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:38:43 localhost kernel: hid-generic 0003:09AE:2012.0009: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
Jun 24 13:38:58 localhost kernel: usb 2-2.1: USB disconnect, device number 11
Jun 24 13:39:01 localhost kernel: usb 2-2.1: new low-speed USB device number 12 
using uhci_hcd
Jun 24 13:39:01 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
Jun 24 13:39:01 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
Jun 24 13:39:01 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
Jun 24 13:39:01 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
Jun 24 13:39:01 localhost kernel: hid-generic 0003:09AE:2012.000A: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0


Thank you,
David Zomaya
Technical Support
[cid:image002.png@01D52A8D.29F4C4C0]
1111 W. 35th Street  |  Chicago, IL 60609 USA
773.869.1156  |  david_zom...@tripplite.com
[cid:image004.png@01D52A8D.29F4C4C0]<http://www.tripplite.com/>

From: David Zomaya <david_zom...@tripplite.com>
Sent: Tuesday, June 18, 2019 8:28 AM
To: Greg Oliver <oliver.g...@gmail.com>
Cc: nut-upsuser@alioth-lists.debian.net; Jonathan Manzanilla 
<jonathan_manzani...@tripplite.com>; Eric Cobb <eric_c...@tripplite.com>
Subject: RE: [EXTERNAL] Re: [Nut-upsuser] Fixing Drops With SMART1500LCDXL & 
USB-HID Driver

Hi Greg,

I haven’t but I will give that a shot later this week and advise.
Thanks for the tip.

Thank you,
David Zomaya
Technical Support
[cid:image007.png@01D52A8A.A191D480]
1111 W. 35th Street  |  Chicago, IL 60609 USA
773.869.1156  |  david_zom...@tripplite.com<mailto:david_zom...@tripplite.com>
[cid:image008.png@01D52A8A.A191D480]<http://www.tripplite.com/>

From: Nut-upsuser 
<nut-upsuser-bounces+david_zomaya=tripplite....@alioth-lists.debian.net<mailto:nut-upsuser-bounces+david_zomaya=tripplite....@alioth-lists.debian.net>>
 On Behalf Of Greg Oliver
Sent: Monday, June 17, 2019 9:36 PM
Cc: 
nut-upsuser@alioth-lists.debian.net<mailto:nut-upsuser@alioth-lists.debian.net>
Subject: [EXTERNAL] Re: [Nut-upsuser] Fixing Drops With SMART1500LCDXL & 
USB-HID Driver

This is an EXTERNAL email. Please take a moment and think before clicking any 
links or opening any attachments from this email. If suspicious, please forward 
to ishelpd...@tripplite.com<mailto:ishelpd...@tripplite.com> for review.
________________________________
On Mon, Jun 17, 2019 at 6:10 PM David Zomaya 
<david_zom...@tripplite.com<mailto:david_zom...@tripplite.com>> wrote:
Hi Network UPS Tools Support,

I’m not sure if this is a question for the “user group” or the developer group”.

My name is David Zomaya and I work at Tripp Lite in our technical support 
department. Copied on this email are Eric Cobb from our Product Management 
group & Jonathan Manzanilla tech support subject matter expert for our single 
phase UPS product lines.

Recently, we received a complaint about our SMART1500LCDXL dropping and 
reconnecting in different Linux Operating Systems.A fter some in-house testing, 
the behavior seems to be reproducible on a number of different *nix operating 
systems (Windows seems fine). Here’s an example of the drops in 
/var/log/messages (I’ll use CentOS 7.6 as my reference point throughout this 
email):
May 29 19:25:27 localhost kernel: usb 2-2.1: new low-speed USB device number 6 
using uhci_hcd
May 29 19:25:27 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
May 29 19:25:27 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
May 29 19:25:27 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
May 29 19:25:27 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
May 29 19:25:27 localhost kernel: hid-generic 0003:09AE:2012.0004: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
May 29 19:25:29 localhost upsd[6287]: UPS [TrippLiteUPS] data is no longer stale
May 29 19:25:29 localhost upsd: UPS [TrippLiteUPS] data is no longer stale
May 29 19:25:45 localhost kernel: usb 2-2.1: USB disconnect, device number 6
May 29 19:25:47 localhost upsd[6287]: Data for UPS [TrippLiteUPS] is stale - 
check driver
May 29 19:25:47 localhost upsd: Data for UPS [TrippLiteUPS] is stale - check 
driver
May 29 19:25:49 localhost kernel: usb 2-2.1: new low-speed USB device number 7 
using uhci_hcd
May 29 19:25:49 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
May 29 19:25:49 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
May 29 19:25:49 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
May 29 19:25:49 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
May 29 19:25:49 localhost kernel: hid-generic 0003:09AE:2012.0005: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
May 29 19:25:51 localhost upsd[6287]: UPS [TrippLiteUPS] data is no longer stale
May 29 19:25:51 localhost upsd: UPS [TrippLiteUPS] data is no longer stale
May 29 19:27:24 localhost systemd: Started Session 2 of user npg.
May 29 19:27:24 localhost systemd-logind: New session 2 of user npg.
May 29 19:29:04 localhost kernel: usb 2-2.1: USB disconnect, device number 7
May 29 19:29:05 localhost upsd[6287]: Data for UPS [TrippLiteUPS] is stale - 
check driver
May 29 19:29:05 localhost upsd: Data for UPS [TrippLiteUPS] is stale - check 
driver
May 29 19:29:07 localhost kernel: usb 2-2.1: new low-speed USB device number 8 
using uhci_hcd
May 29 19:29:07 localhost kernel: usb 2-2.1: New USB device found, 
idVendor=09ae, idProduct=2012
May 29 19:29:07 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=0
May 29 19:29:07 localhost kernel: usb 2-2.1: Product: Tripp Lite UPS
May 29 19:29:07 localhost kernel: usb 2-2.1: Manufacturer: Tripp Lite
May 29 19:29:07 localhost kernel: hid-generic 0003:09AE:2012.0006: 
hiddev0,hidraw1: USB HID v1.10 Device [Tripp Lite  Tripp Lite UPS ] on 
usb-0000:02:02.0-2.1/input0
May 29 19:29:07 localhost upsd[6287]: UPS [TrippLiteUPS] data is no longer stale
May 29 19:29:07 localhost upsd: UPS [TrippLiteUPS] data is no longer stale
May 29 19:29:24 localhost kernel: usb 2-2.1: USB disconnect, device number 8

As a result, this impacted the user’s ability use NUT software on their Linux 
hosts. After some trial and error (and a lot of search engine use), I was able 
to find that the following configuration changes/settings stop the drops and 
stabilize performance:

1)      This in the ups.conf file
pollinterval = 1
[TrippLiteUPS]
    driver = usbhid-ups
    port = auto
    desc = "SMART1500LCD"

2)      The attached 62-nut-usbups.rules file at /etc/udev/rules.d/

3)      The attached 42-usb-hid-pm.rules /usr/lib/udev/rules.d/

Below is some other information that may be relevant regarding my testing.


•         I installed using the command “yum install nut.x86_64”


•         Operating system version:
CentOS Linux release 7.6.1810 (Core)


•         Network UPS Tools version
Network UPS Tools upsd 2.7.2


I’m not the most well-versed in Network UPS Tools, so I am not sure how “good” 
of a solution this is. I can however, get you more information on our product 
and testing if that helps.

The questions I have are:

1)      Does the above seem like a “good” way to address this problem? (given 
that the drops are something we need to look into on our end)

2)      Is there a good way to get this fix implemented in the driver?

3)      Have you had any reports of similar issues?

4)      While we are communicating, are there any other open Tripp Lite items I 
could help your team(s) with? No promises, but if I can help I’d like to.

Thanks for your time.

Thank you,
David Zomaya
Technical Support
[cid:image009.png@01D52A8A.A191D480]
1111 W. 35th Street  |  Chicago, IL 60609 USA
773.869.1156  |  david_zom...@tripplite.com<mailto:david_zom...@tripplite.com>
[cid:image010.png@01D52A8A.A191D480]<http://www.tripplite.com/>


Have you tried adding "usbcore.autosuspend=-1" to your kernel boot options?  I 
have had to do this in later kernels.  You said you are running CentOS 7 and I 
have not had to do it there, but I do have USB devices that do the exact same 
thing without that option.

-Greg
________________________________
This message is for the addressee's use only. It may contain confidential 
information. If you receive this message in error, please delete it and notify 
the sender. Tripp Lite disclaims all warranties and liabilities, and assumes no 
responsibility for viruses which may infect an email sent to you from Tripp 
Lite and which damage your electronic systems or information. It is your 
responsibility to maintain virus detection systems to prevent damage to your 
electronic systems and information.
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to