<?xml version="1.0" encoding="utf-8" ?>

<?xml-stylesheet type="text/xsl" href="/templates/2k11/rss.xsl" media="screen" ?>
<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as linux)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6.1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 31 Jul 2026 07:20:05 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Linux kernel USB errors -71 and -110</title>
    <link>https://daniel-lange.com/archives/183-Linux-kernel-USB-errors-71-and-110.html</link>
            <category>Linux</category>
    
    <comments>https://daniel-lange.com/archives/183-Linux-kernel-USB-errors-71-and-110.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=183</wfw:comment>

    <slash:comments>14</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=183</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;After an upgrade of my PC&#039;s mainboard BIOS the boot would take a minute or more to complete and sometimes the lightdm login screen would sit there but not accept keyboard input for another minute or so. Then the keyboard got enabled and I could log in normally. Everything worked fine after that bootup struggle completed. This was fully reproducible and persisted across reboots. Weird.&lt;/p&gt;

&lt;p&gt;The kernel &lt;code&gt;dmesg&lt;/code&gt; log showed entries that looked suspicious:&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:708 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;607&quot; height=&quot;373&quot;  src=&quot;https://daniel-lange.com/uploads/entries/230619_Linux_kernel_USB_errors_minus_71_and_minus_110.png&quot;  alt=&quot;dmesg log excerpt showing USB error messages&quot;&gt;&lt;/p&gt;

&lt;p&gt;Googleing these &lt;code&gt;error -110&lt;/code&gt; and &lt;code&gt;error -71&lt;/code&gt; is a bit hard. Now why the USB driver does not give useful error messages instead of archaic &lt;code&gt;errno&lt;/code&gt;-style numbers escapes me. This is not the 80s anymore.&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:709 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;163&quot; height=&quot;176&quot;  src=&quot;https://daniel-lange.com/uploads/icons/citation_needed.png&quot; title=&quot;This is from https://xkcd.com/285/&quot; alt=&quot;Citation needed (Wikipedia style)&quot;&gt;
The wisdom of the crowd says &lt;code&gt;error -110&lt;/code&gt; is something around &quot;the USB port power supply was exceeded&quot; [&lt;a href=&quot;https://askubuntu.com/questions/644010/ubuntu-cant-read-my-usb-device-descriptor-read-64-error-110&quot;&gt;source&lt;/a&gt;].&lt;/p&gt;

&lt;p&gt;Now &lt;code&gt;lsusb -tv&lt;/code&gt; shows device 1-7 ... to be my USB keyboard. I somehow doubt that wants more power than the hub is willing to provide.&lt;/p&gt;

&lt;p&gt;The Archlinux BBS Forums recommend to &lt;a href=&quot;https://bbs.archlinux.org/viewtopic.php?id=149708&quot;&gt;piece together&lt;/a&gt; information from &lt;code&gt;drivers/usb/host/ohci.h&lt;/code&gt; and (updated from their piece which is from 2012) &lt;code&gt;/tools/include/uapi/asm-generic/errno.h&lt;/code&gt;. This is why some people then consider &lt;code&gt;-110&lt;/code&gt; to mean &quot;Connection timed out&quot;. Nah, not likely either.&lt;/p&gt;

&lt;p&gt;Reading through the kernel source around &lt;code&gt;drivers/usb/host&lt;/code&gt; did not enlighten me either. To the contrary. Uuugly. There seems to be no comprehensive list what these error codes mean. And the numbers are assigned to errors conditions quite arbitrarily. And - of course - there is no documentation. &lt;em&gt;&quot;It was hard to do, so it should be hard to understand as well.&quot;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Luckily some of the random musings I read through contained some curious advice: power cycle the host. So I did and that did not make the error go away. Other people insisted on removing cables out of wall sockets, unplugging everything and conducting esoteric rituals. That made it dawn on me, the mainboard of course nicely powers the USB in &quot;off&quot; state, too. So switching the power supply off (yes, these have a separate switch, go find yours), waiting a bit for capacitors to drain and switching things back on and ... the errors were gone, the system booted within seconds again.&lt;/p&gt;

&lt;p&gt;So the takeaway message: If you get random error messages like&lt;/p&gt;

&lt;div class=&quot;apache geshi&quot; style=&quot;text-align: left&quot;&gt;device descriptor read/&lt;span style=&quot;color: #ff0000;&quot;&gt;64&lt;/span&gt;, error -&lt;span style=&quot;color: #ff0000;&quot;&gt;110&lt;/span&gt;&lt;br /&gt;device not accepting address &lt;span style=&quot;color: #ff0000;&quot;&gt;42&lt;/span&gt;, error -&lt;span style=&quot;color: #ff0000;&quot;&gt;71&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;on devices that previously worked fine ... completely remove power from the host, the hubs and the USB devices. So they forget they saw each other on the bus before. And when they see each other after that blackout, they will happily go through negotiating protocol details successfully.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Mon, 19 Jun 2023 11:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/183-guid.html</guid>
    <category>codes</category>
<category>error</category>
<category>hardware</category>
<category>kernel</category>
<category>linux</category>
<category>usb</category>

</item>

</channel>
</rss>
