<div dir="ltr"><div>&gt;&gt; I know that the presentation of the message is the responsibility of<br>
&gt;&gt; the application (user space), but to do this is necesary an event from<br>
&gt;&gt; usb driver (I think it).<br>
<br>
&gt;A timeout with no activity at all can do it.. That&#39;s Userspace C 101 -<br>
&gt;select() with a timeout...<br>
<br></div>To implement a timout first, an event is needed. The standar state &quot;when device is attached...&quot;. This is a physical event, so at this time the user space needs an event from kernel space, to know that something should be done (start timout, show message or anything else). The problem is that the only message is &quot;unable to enumerate USB device on port...&quot;, but this one can&#39;t be trapped frome u/mdev (I thought)<br><div><br>
&gt;&gt;                          Nowdays when a non responsive device is<br>
&gt;&gt; attached, &quot;unable to enumerate USB device on port... &quot; is logged a in<br>
&gt;&gt; dmesg, but not event is dispatched (by example in usb_uevent).<br>
&gt;&gt; Without an event application should poll the log (loading the system<br>
&gt;&gt; unnecessarily) searching new &quot;not responsive devices&quot;.<br>
&gt;&gt;<br>
&gt;&gt; To comply with the standard usb driver should be modified?<br>
<br>
&gt;No, because userspace can detect the condition on its own and tell<br>
&gt;a user about it.<br>
<br>
&gt; I&#39;m probably confusing responsibilities of user and kernel space. I<br>
&gt; appreciate your opinion/answer.<br>
<br>
Yes, you are.  Although I suspect the &quot;standard&quot; you&#39;re quoting is<br>
confusing them as well....<div class="gmail_extra"><br></div></div></div>