Date: Sat, 18 May 2024 18:22:12 +0300 From: Oleksandr Kryvulia <shuriku@shurik.kiev.ua> To: freebsd-current@freebsd.org Subject: Re: usb mouse not work on boot Message-ID: <c98a9e1d-3ab7-4a45-b514-cfed7d475198@shurik.kiev.ua> In-Reply-To: <CANCZdfpD5FeHbb2B-cMDjQesr9NS%2BUVBpzgLG%2Bg4GgSjkBxC3A@mail.gmail.com> 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> <CANCZdfpD5FeHbb2B-cMDjQesr9NS%2BUVBpzgLG%2Bg4GgSjkBxC3A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------XPZCXI7BZBgzKkvgKLEcdUPe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 18.05.24 16:06, Warner Losh: > > > On Sat, May 18, 2024, 6:51 AM Oleksandr Kryvulia > <shuriku@shurik.kiev.ua> wrote: > > 18.05.24 12:59, Oleksandr Kryvulia: >> 18.05.24 12:55, Dag-Erling Smørgrav: >>> Oleksandr Kryvulia<shuriku@shurik.kiev.ua> <mailto:shuriku@shurik.kiev.ua> writes: >>>> Gary Jennejohn<garyj@gmx.de> <mailto:garyj@gmx.de> writes: >>>>> Try adding uhid_load="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+="uhid" in /etc/rc.conf. >>> I hope you don't mean that literally, because /etc/rc.conf is a shell >>> script and += is not valid shell syntax. On the other hand, something >>> like >>> >>> kld_list="${kld_list} uhid" >> Yes, you are right. I mean >> sysrc kld_list+="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=1 in /boot/loader.conf and > reboot. Or update to the change I'm about to make. > Thanks for the detailed explanation, Warner. Interesting that on my system hw.bus.devctl_nomatch_enabled=1 is set by /etc/rc.d/devmatch but only explicit set it in /boot/loader.conf did the trick. That is why I think this sysctl don't work in my case. --------------XPZCXI7BZBgzKkvgKLEcdUPe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> 18.05.24 16:06, Warner Losh:<br> <blockquote type="cite" cite="mid:CANCZdfpD5FeHbb2B-cMDjQesr9NS+UVBpzgLG+g4GgSjkBxC3A@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr"> <div dir="auto"> <div><br> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">On Sat, May 18, 2024, 6:51 AM Oleksandr Kryvulia <<a href="mailto:shuriku@shurik.kiev.ua" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">shuriku@shurik.kiev.ua</a>> wrote:<br> </div> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div> 18.05.24 12:59, Oleksandr Kryvulia:<br> <blockquote type="cite"> 18.05.24 12:55, Dag-Erling Smørgrav:<br> <blockquote type="cite"> <pre><pre>Oleksandr Kryvulia <a href="mailto:shuriku@shurik.kiev.ua" rel="noreferrer" target="_blank" moz-do-not-send="true"><shuriku@shurik.kiev.ua></a> writes: </pre><blockquote type="cite" style="color:#007cff"><pre>Gary Jennejohn <a href="mailto:garyj@gmx.de" rel="noreferrer" target="_blank" moz-do-not-send="true"><garyj@gmx.de></a> writes: </pre><blockquote type="cite" style="color:#007cff"><pre>Try adding uhid_load="YES" 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+="uhid" in /etc/rc.conf. </pre></blockquote><pre>I hope you don't mean that literally, because /etc/rc.conf is a shell script and += is not valid shell syntax. On the other hand, something like kld_list="${kld_list} uhid"</pre></pre> </blockquote> Yes, you are right. I mean<br> <span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff">sysrc kld_list+="uhid"</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> <div dir="auto"><br> </div> </div> <div><br> </div> <div>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.<br> </div> <div><br> </div> <div>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.</div> <div><br> </div> <div>Just set hw.bus.devctl_nomatch_enabled=1 in /boot/loader.conf and reboot. Or update to the change I'm about to make.</div> <div><br> </div> </div> </blockquote> <br> <span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span class="ryNqvb">Thanks for the detailed explanation, Warner. Interesting that on my system hw.bus.devctl_nomatch_enabled=1 is set by /etc/rc.d/devmatch but only explicit set it in /boot/loader.conf did the trick. That is why I think this sysctl don't work in my case.<br> </span></span></span> </body> </html> --------------XPZCXI7BZBgzKkvgKLEcdUPe--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c98a9e1d-3ab7-4a45-b514-cfed7d475198>