Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2024 07:06:26 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Oleksandr Kryvulia <shuriku@shurik.kiev.ua>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: usb mouse not work on boot
Message-ID:  <CANCZdfpD5FeHbb2B-cMDjQesr9NS%2BUVBpzgLG%2Bg4GgSjkBxC3A@mail.gmail.com>
In-Reply-To: <34a397ef-ca2d-4e04-9066-3cf8a0c48616@shurik.kiev.ua>
References:  <ae973e80-7f06-432c-ab66-b1a2ab337eaa@shurik.kiev.ua> <20240518092649.6430ad53@ernst.home> <af05317d-8d64-4a25-b13d-785848c0d326@shurik.kiev.ua> <86ttivwikf.fsf@ltc.des.dev> <cae2b31c-68ed-46c9-9d7b-415926186766@shurik.kiev.ua> <34a397ef-ca2d-4e04-9066-3cf8a0c48616@shurik.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000079ec300618ba2307
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, May 18, 2024, 6:51=E2=80=AFAM Oleksandr Kryvulia <shuriku@shurik.ki=
ev.ua>
wrote:

> 18.05.24 12:59, Oleksandr Kryvulia:
>
> 18.05.24 12:55, Dag-Erling Sm=C3=B8rgrav:
>
> Oleksandr Kryvulia <shuriku@shurik.kiev.ua> <shuriku@shurik.kiev.ua> writ=
es:
>
> Gary Jennejohn <garyj@gmx.de> <garyj@gmx.de> writes:
>
> Try adding uhid_load=3D"YES" to your /boot/loader.conf.  With that
> added the module should be automatically loaded during the kernel
> boot.
>
> As workaround I already have kld_list+=3D"uhid" in /etc/rc.conf.
>
> I hope you don't mean that literally, because /etc/rc.conf is a shell
> script and +=3D is not valid shell syntax.  On the other hand, something
> like
>
> kld_list=3D"${kld_list} uhid"
>
> Yes, you are right. I mean
> sysrc kld_list+=3D"uhid"
>
>
> One more correction. Via kld_list I need load ums(4), loading only uhid(4=
)
> does not solve a problem.
>


You don't need to change kld_list. In fact, you should undo any changes
you've made there. Undo everything in loader.conf you've done.

This is a bug in the boot optimization stuff. Or rather, this exposes a
long standing bug in the USB code where there's an asymmetry between the
nomatch events and the bus tree it presents to devctl causing devmatch to
fail when the nomatch events aren't present on boot.

Just set hw.bus.devctl_nomatch_enabled=3D1 in /boot/loader.conf and reboot.
Or update to the change I'm about to make.

Warner

--00000000000079ec300618ba2307
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"auto"><div><br><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, May 18, 2024, 6:51=E2=80=AFAM=
 Oleksandr Kryvulia &lt;<a href=3D"mailto:shuriku@shurik.kiev.ua" target=3D=
"_blank">shuriku@shurik.kiev.ua</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><u></u>

 =20
   =20
 =20
  <div>
    18.05.24 12:59, Oleksandr Kryvulia:<br>
    <blockquote type=3D"cite">
     =20
      18.05.24 12:55, Dag-Erling Sm=C3=B8rgrav:<br>
      <blockquote type=3D"cite">
        <pre><pre>Oleksandr Kryvulia <a href=3D"mailto:shuriku@shurik.kiev.=
ua" rel=3D"noreferrer" target=3D"_blank">&lt;shuriku@shurik.kiev.ua&gt;</a>=
 writes:
</pre><blockquote type=3D"cite" style=3D"color:#007cff"><pre>Gary Jennejohn=
 <a href=3D"mailto:garyj@gmx.de" rel=3D"noreferrer" target=3D"_blank">&lt;g=
aryj@gmx.de&gt;</a> writes:
</pre><blockquote type=3D"cite" style=3D"color:#007cff"><pre>Try adding uhi=
d_load=3D&quot;YES&quot; to your /boot/loader.conf.  With that
added the module should be automatically loaded during the kernel
boot.
</pre></blockquote><pre>As workaround I already have kld_list+=3D&quot;uhid=
&quot; in /etc/rc.conf.
</pre></blockquote><pre>I hope you don&#39;t mean that literally, because /=
etc/rc.conf is a shell
script and +=3D is not valid shell syntax.  On the other hand, something
like

kld_list=3D&quot;${kld_list} uhid&quot;</pre></pre>
      </blockquote>
      Yes, you are right. I mean<br>
      <span style=3D"font-family:monospace"><span style=3D"color:#000000;ba=
ckground-color:#ffffff">sysrc
          kld_list+=3D&quot;uhid&quot;</span></span></blockquote>
    <br>
    One more correction. Via kld_list I need load ums(4), loading only
    uhid(4) does not solve a problem.<br></div></blockquote></div></div><di=
v dir=3D"auto"><br></div></div><div><br></div><div>You don&#39;t need to ch=
ange kld_list. In fact, you should undo any changes you&#39;ve made there. =
Undo everything in loader.conf you&#39;ve done.<br></div><div><br></div><di=
v>This is a bug in the boot optimization stuff. Or rather, this exposes a l=
ong standing bug in the USB code where there&#39;s an asymmetry between the=
 nomatch events and the bus tree it presents to devctl causing devmatch to =
fail when the nomatch events aren&#39;t present on boot.</div><div><br></di=
v><div>Just set hw.bus.devctl_nomatch_enabled=3D1 in /boot/loader.conf and =
reboot. Or update to the change I&#39;m about to make.</div><div><br></div>=
<div>Warner<br></div>
</div>

--00000000000079ec300618ba2307--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpD5FeHbb2B-cMDjQesr9NS%2BUVBpzgLG%2Bg4GgSjkBxC3A>