Fix "timeout initializing reports" and speed up boot

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Fix "timeout initializing reports" and speed up boot

Post 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
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
starper
Level 1
Level 1
Posts: 9
Joined: Tue May 18, 2010 4:10 am

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

Post by starper »

It's really working! Great thanks, best regards!
(Linux Mint 17 Cinnamon, kb BTC 5211AU)
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post 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?
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
iamapizza

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

Post 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
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post 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!
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

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

Post 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
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post by powerhouse »

@Spearmint2: Isn't it a nice Christmas present? Glad it works for you too!
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

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

Post 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.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
Post Reply

Return to “Tutorials”