Page 1 of 1

Fix "timeout initializing reports" and speed up boot

Posted: Wed Jan 22, 2014 8:16 am
by powerhouse
I'm currently running LM16 and noticed that booting from SSD took much too long ~ 30 seconds!

Checking the dmesg log file under /var/log shows a 7 second delay in initializing an USB device :( . Here is the relevant section in dmesg:

Code: Select all

[   10.607141] hid-generic 0003:058F:9410.0007: input,hidraw4: USB HID v1.10 Keyboard [USB Multimedia Keyboard] on usb-0000:00:1d.0-1.3.3/input0
[   10.611668] input: USB Multimedia Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.3/2-1.3.3:1.1/input/input7
[   10.611987] hid-generic 0003:058F:9410.0008: input,hidraw5: USB HID v1.10 Device [USB Multimedia Keyboard] on usb-0000:00:1d.0-1.3.3/input1
[   17.645726] hid-generic 0003:058F:9410.0002: usb_submit_urb(ctrl) failed: -1
[   17.645749] hid-generic 0003:058F:9410.0002: timeout initializing reports
[   17.645916] input: USB Multimedia Keyboard as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.1/input/input8
Note the following message after the 7 second delay:

[ 17.645749] hid-generic 0003:058F:9410.0002: timeout initializing reports

This issue can be solved by adding the following grub command line option to your existing options in /etc/default/grub and changing the hexadecimal numbers as explained below:

Code: Select all

    GRUB_CMDLINE_LINUX_DEFAULT="usbhid.quirks=0x058F:0x9410:0x20000000"
where 058F is the vendor ID and 9410 the product ID taken from the dmesg line here:
[ 17.645749] hid-generic 0003:058F:9410.0002: timeout initializing reports

Following is an example of a complete grub entry after adding the above option - most likely yours will look different:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="profile elevator=deadline usbhid.quirks=0x058F:0x9410:0x20000000 quiet nomodeset"
When done editing and saving the /etc/default/grub file, issue the following command:

Code: Select all

sudo update-grub
And here the result after reboot:

Code: Select all

[   10.216019] hid-generic 0003:058F:9410.0007: input,hidraw6: USB HID v1.10 Keyboard [USB Multimedia Keyboard] on usb-0000:00:1d.0-1.3.3/input0
[   10.219682] input: USB Multimedia Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.3/2-1.3.3:1.1/input/input9
[   10.219889] hid-generic 0003:058F:9410.0008: input,hidraw7: USB HID v1.10 Device [USB Multimedia Keyboard] on usb-0000:00:1d.0-1.3.3/input1
[   10.624759] vesafb: mode is 1920x1200x32, linelength=7680, pages=0
Voila, gone are the 7 seconds delay :D .


Note: The "timeout initializing reports" message in dmesg may or may not be preceded with a failure message - the important part is the "timeout..."

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=907221

Re: Fix "timeout initializing reports" and speed up boot

Posted: Tue Sep 02, 2014 2:17 am
by starper
It's really working! Great thanks, best regards!
(Linux Mint 17 Cinnamon, kb BTC 5211AU)

Re: Fix "timeout initializing reports" and speed up boot

Posted: Wed Sep 10, 2014 11:42 pm
by powerhouse
starper wrote:It's really working! Great thanks, best regards!
(Linux Mint 17 Cinnamon, kb BTC 5211AU)
Glad it helped. It's amazing, isn't it?

Re: Fix "timeout initializing reports" and speed up boot

Posted: Sun Mar 29, 2015 11:56 am
by iamapizza
Thank you for this - these instructions worked for a Corsair M65 gaming mouse on Ubuntu 14.10 as well. I added

Code: Select all

usbhid.quirks=0x1B1C:0x1B12:0x20000000

Re: Fix "timeout initializing reports" and speed up boot

Posted: Wed Apr 01, 2015 5:42 am
by powerhouse
iamapizza wrote:Thank you for this - these instructions worked for a Corsair M65 gaming mouse on Ubuntu 14.10 as well. I added

Code: Select all

usbhid.quirks=0x1B1C:0x1B12:0x20000000
That's good news. Thanks for posting the Corsair M65 gaming mouse ID!

Re: Fix "timeout initializing reports" and speed up boot

Posted: Wed Dec 21, 2016 5:23 pm
by Spearmint2
Have the exact same keyboard and exact same problem. This works.

mine

Code: Select all

lsusb
Bus 003 Device 123: ID 058f:9410 Alcor Micro Corp. Keyboard
Bus 003 Device 122: ID 04d9:a0cd Holtek Semiconductor, Inc. 
Bus 003 Device 121: ID 8054:0001  
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Re: Fix "timeout initializing reports" and speed up boot

Posted: Thu Dec 22, 2016 8:14 am
by powerhouse
@Spearmint2: Isn't it a nice Christmas present? Glad it works for you too!

Re: Fix "timeout initializing reports" and speed up boot

Posted: Thu Dec 22, 2016 12:08 pm
by Spearmint2
powerhouse wrote:@Spearmint2: Isn't it a nice Christmas present? Glad it works for you too!
Yes. Now if I could get this wonky keyboard to also wake it up from sleep. I have a cheapy $10 ON keyboard I bought at walmart, and it works perfectly in Linux to do it all. This keyboard is about $45 and mechanical and cranky as it can be about working properly. I'm thinking it would help if it had some "stay alive" tweak built into it.