Re: usb mouse not work on boot
- In reply to: Oleksandr Kryvulia : "Re: usb mouse not work on boot"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 May 2024 13:17:35 UTC
On Sat, May 18, 2024 at 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> <shuriku@shurik.kiev.ua> writes: > > Gary Jennejohn <garyj@gmx.de> <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. > Also, in this case, kld_list is a terrible place to load the files. You're better off loading them with xxx_load=YES in loader.conf. The reason is that both uhid and ums will match your mouse. kld_list loads these in a random order (effectively) and the first one to load will claim the device, since there's no re-probe when the next one loads. You should never use it, unless the module you're loading isn't supported by the boot loader (like drm-kmod). The old advice was to put everything in kld_list and it would speed up boot, but all the performance bugs in the boot loader have been fixed by a combination of moving to UEFI (which is generally faster), BIOSes with performance bugs disappearing 10 years ago and block caching being added to the boot loader. It should almost always be empty or just drm-mod these days (unless you somehow have special needs). By adding uhid last to this list in this way, you're guaranteeing you'll hit this bug because it's not after ums, and that things won't work. Warner