On Wed, Apr 24, 2013 at 11:25 PM, Sedat Dilek wrote: > On Wed, Apr 24, 2013 at 11:17 PM, Alan Stern wrote: >> On Wed, 24 Apr 2013, Sedat Dilek wrote: >> >>> > Did this work differently under earlier kernels? >>> > >>> >>> Unfortunately, s/r did not work for several Linux-Next releases as >>> there is missing tglx's patch pendinging in tip.git/timers/core. >> >> Have you tried testing under 3.8? Or earlier releases? >> >>> > This indicates that the optical mouse didn't survive the suspend/resume >>> > sequence and had to be reenumerated. Without more information, there's >>> > no way to tell specifically what went wrong during the initial reset at >>> > timestamp 62.353997. >>> > >>> > If you want to pursue this farther, you could enable CONFIG_USB_DEBUG. >>> > You could also collect a usbmon trace for bus 1 showing what happens >>> > during the suspend and resume. >>> > >>> >>> Hmm, I can try to enable CONFIG_USB_DEBUG and build a new kernel. >>> >>> Can you give me more hints how to do a usbmon-trace? >> >> See Documentation/usb/usbmon.txt. >> > > Grrr, that docs do not mention which kernel-configs have to be set! > > CONFIG_USB_DEBUG=y is not enough. > > # modprobe -v usbmon > FATAL: Module usbmon not found. > > # CONFIG_USB_MON is not set <--- Grrr!!! > > Doing a -4 build... > [ Get VendorID/ProductID of affected USB-device ] # dmesg | grep 1-1.2 | egrep -i 'vendor|product' [ 1.372891] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c00e <--- ProductID! [ 1.372899] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.372905] usb 1-1.2: Product: USB-PS/2 Optical Mouse [ Check for corresponding USB-bus ] # grep -B2 046d /sys/kernel/debug/usb/devices T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0 <--- USB-bus #01 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=046d ProdID=c00e Rev=11.10 [ Run logging on USB-bus #1 ] # cat /sys/kernel/debug/usb/usbmon/1u > /tmp/usbmon-1u.txt <--- USB-bus #01 [ Do suspend plus resume ] ... [ Check /tmp/usbmon-1u.txt file ] ... File attached! - Sedat - > - Sedat - > >>> > On the other hand, what difference does it really make if a mouse has >>> > to be reenumerated? >>> > >>> >>> As a non-USB-expert it's hard to interprete such "bogus" lines in your logs. >>> I am curious enough to ask which is fair :-). >>> AFAICS in your eyes this is "harmless"? >> >> If the device continues to work normally after the resume and none of >> your programs are affected, then it is harmless. >> >> Alan Stern >>