Re: 10 seconds lag when connecting UPS device (usb_submit_urb(ctrl) failed: -1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Sat, 11 Aug 2012 15:11:28 -0400 (EDT),
Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> a écrit :

> On Sat, 11 Aug 2012, Laurent Bigonville wrote:
> 
> > Le Sat, 11 Aug 2012 14:01:21 -0400 (EDT),
> > Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> a écrit :
> > 
> > Hi,

Hi,

> > 
> > > Try using usbmon to see what happens when the UPS is plugged in 
> > > (instructions are in Documentation/usb/usbmon.txt).
> > 
> > Thanks for your answer.
> > 
> > Please see the attached logs. Hope this will help.
> 
> The log looks quite normal, except at the end.  The computer asks the 
> UPS device for a bunch of reports, which it sends okay ... until it 
> doesn't.  For some reason that UPS didn't send anything when asked
> for one of the reports, and 10 seconds later the computer gave up.
> 
> (The reason you see a total delay of 13 seconds rather than 10 is 
> because the device takes 3 seconds to transmit its report descriptor.)
> 
> I don't know how well this will work, but you can tell the computer
> not to ask for all those reports by using an appropriate module
> parameter for the usbhid driver:
> 
> 	modprobe usbhid quirks=0x0463:0xffff:0x8
> 
> Or maybe you'll need to put an equivalent "options" line in some file 
> under /etc/modprobe.d/.
> 
> Anyway, let's see if that works.

It seems it's with this parameter, the "lag" is down to 3 sec.

Cheers

Laurent Bigonville
ffff8801b4e8a800 1339721245 S Ci:7:001:0 s a3 00 0000 0001 0004 4 <
ffff8801b4e8a800 1339721255 C Ci:7:001:0 0 4 = 00010000
ffff8801b4e8a800 1339721258 S Ci:7:001:0 s a3 00 0000 0002 0004 4 <
ffff8801b4e8a800 1339721261 C Ci:7:001:0 0 4 = 01030100
ffff8801b4e8a800 1339721262 S Co:7:001:0 s 23 01 0010 0002 0000 0
ffff8801b4e8a800 1339721265 C Co:7:001:0 0 0
ffff8801b430b300 1339825282 S Ii:7:001:1 -115:128 2 <
ffff8801b4e8a800 1339825308 S Ci:7:001:0 s a3 00 0000 0002 0004 4 <
ffff8801b4e8a800 1339825313 C Ci:7:001:0 0 4 = 01030000
ffff8801b4e8a800 1339825319 S Co:7:001:0 s 23 03 0004 0002 0000 0
ffff8801b4e8a800 1339825323 C Co:7:001:0 0 0
ffff8801b4e8a800 1339881244 S Ci:7:001:0 s a3 00 0000 0002 0004 4 <
ffff8801b4e8a800 1339881266 C Ci:7:001:0 0 4 = 03030000
ffff8801b4e8a800 1339937243 S Co:7:001:0 s 23 01 0014 0002 0000 0
ffff8801b4e8a800 1339937246 C Co:7:001:0 0 0
ffff8801b4e8a800 1339937256 S Ci:7:000:0 s 80 06 0100 0000 0040 64 <
ffff8801b4e8a800 1340038306 C Ci:7:000:0 0 18 = 12011001 00000008 6304ffff 00010102 0301
ffff8801b4e8a800 1340038370 S Co:7:001:0 s 23 03 0004 0002 0000 0
ffff8801b4e8a800 1340038381 C Co:7:001:0 0 0
ffff8801b430b300 1340073211 C Ii:7:001:1 0:128 1 = 04
ffff8801b430b300 1340073214 S Ii:7:001:1 -115:128 2 <
ffff8801b4e8a800 1340093304 S Ci:7:001:0 s a3 00 0000 0002 0004 4 <
ffff8801b4e8a800 1340093325 C Ci:7:001:0 0 4 = 03030000
ffff8801b4e8a800 1340149305 S Co:7:001:0 s 23 01 0014 0002 0000 0
ffff8801b4e8a800 1340149309 C Co:7:001:0 0 0
ffff8801b4e8a800 1340149311 S Co:7:000:0 s 00 05 0008 0000 0000 0
ffff8801b4e8a800 1340152305 C Co:7:000:0 0 0
ffff8801b4e8abc0 1340169209 S Ci:7:008:0 s 80 06 0100 0000 0012 18 <
ffff8801b4e8abc0 1340268272 C Ci:7:008:0 0 18 = 12011001 00000008 6304ffff 00010102 0301
ffff8801b4e8abc0 1340268338 S Ci:7:008:0 s 80 06 0200 0000 0009 9 <
ffff8801b4e8abc0 1340339272 C Ci:7:008:0 0 9 = 09022200 010100a0 0a
ffff8801b4e8abc0 1340339334 S Ci:7:008:0 s 80 06 0200 0000 0022 34 <
ffff8801b4e8abc0 1340495302 C Ci:7:008:0 0 34 = 09022200 010100a0 0a090400 00010300 00000921 10012101 22720307 05810308
ffff8801b4e8abc0 1340495366 S Ci:7:008:0 s 80 06 0300 0000 00ff 255 <
ffff8801b4e8abc0 1340547301 C Ci:7:008:0 0 4 = 04030904
ffff8801b4e8abc0 1340547366 S Ci:7:008:0 s 80 06 0302 0409 00ff 255 <
ffff8801b4e8abc0 1340664304 C Ci:7:008:0 0 24 = 18034500 6c006c00 69007000 73006500 20004d00 41005800
ffff8801b4e8abc0 1340664368 S Ci:7:008:0 s 80 06 0301 0409 00ff 255 <
ffff8801b4e8abc0 1340742305 C Ci:7:008:0 0 12 = 0c034500 41005400 4f004e00
ffff8801b4e8abc0 1340742368 S Ci:7:008:0 s 80 06 0303 0409 00ff 255 <
ffff8801b4e8abc0 1340848270 C Ci:7:008:0 0 20 = 14034100 44004600 4c003300 39003000 36005400
ffff8801b4e8a800 1340848582 S Co:7:008:0 s 00 09 0001 0000 0000 0
ffff8801b4e8a800 1340851311 C Co:7:008:0 0 0
ffff88018ffe10c0 1340851453 S Ci:7:008:0 s 80 06 0303 0409 00ff 255 <
ffff88018ffe10c0 1340957307 C Ci:7:008:0 0 20 = 14034100 44004600 4c003300 39003000 36005400
ffff88018ffe1900 1340957467 S Co:7:008:0 s 21 0a 0000 0000 0000 0
ffff88018ffe1900 1340960305 C Co:7:008:0 0 0
ffff88018ffe1900 1340960369 S Ci:7:008:0 s 81 06 2200 0000 0372 882 <
ffff88018ffe1900 1344018310 C Ci:7:008:0 0 882 = 05840904 a1010910 a1000912 a100095a 85207508 95011500 26ff0065 005500b1
ffff88019bd22b40 1344019688 S Ci:7:001:0 s a3 00 0000 0002 0004 4 <
ffff88019bd22b40 1344019693 C Ci:7:001:0 0 4 = 03030000
ffff880190156200 1344035269 S Ii:7:008:1 -115:16 6 <

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux