Re: [opensuse-factory] Re: usb midi keyboard broken [3.3.3 regression] [SOLUTION]

Steffen Müller
2012-04-28T21:28:00Z

Am Samstag, 28. April 2012, 17:30:04 schrieb Oliver Neukum:
> Am Samstag, 28. April 2012, 13:45:56 schrieb Steffen Müller:
> > Oh man! After look and try many usr relevant settings I found the
> > malfactor: tlp usb autosuspend settings.
> >
> > I use tlp (energy-saving tools for thinkpad laptops) and they autosuspend
> > usb devices by default. Now I have blacklisted my midi keyboard an all is
> > good. I can reproduce the problem this way. Seems so that the midi
> > keyboard doesn't wake up if it once sleeping.
> >
> > For all with similar problems:
> > edit /etc/default/tlp and set USB_BLACKLIST="<device id from usbls>" or
> > disable usb autosuspend entirely with USB_AUTOSUSPEND=0
> >
> > thanks and sorry for the bother.
>
> No problem, but we ought to test whether we can make it work with a kernel
> quirk. Can you please test whether it works with USB_QUIRK_RESET_RESUME
> in drivers/usb/core/quirks.c ?
>

yes, it works now without blacklisting for autosuspend after build patched
kernel with this in drivers/usb/core/quirks.c

rf@ThinkpadSM:~/tmp> diff -uNr quirks-org.c quirks.c
--- quirks-org.c 2012-04-28 23:19:45.440959001 +0200
+++ quirks.c 2012-04-28 20:38:50.000000000 +0200
@@ -123,6 +123,9 @@
/* Guillemot Webcam Hercules Dualpix Exchange*/
{ USB_DEVICE(0x06f8, 0x3005), .driver_info = USB_QUIRK_RESET_RESUME },

+ /* Midiman M-Audio Keystation 88es */
+ { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME },
+
/* M-Systems Flash Disk Pioneers */
{ USB_DEVICE(0x08ec, 0x1000), .driver_info = USB_QUIRK_RESET_RESUME },

rf@ThinkpadSM:~/tmp>

regards
steffen

> Regards
> Oliver