Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2022 20:46:16 +0100
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernape@freebsd.org>
To:        freebsd-usb@freebsd.org
Cc:        Hans Petter Selasky <hps@selasky.org>
Subject:   Fwd: autoloading module when matching device
Message-ID:  <CAGwOe2bA6kYs3dDR7y-3M5xooswLz_vbqe%2BzcyKjiSd6Et1bkA@mail.gmail.com>
In-Reply-To: <75ddc208-5bf1-7c9c-4d57-057a2058cc26@selasky.org>
References:  <CAGwOe2bYAFW-Dwy34g6QuB1JEJjMqgoA-gsJByBqTjHLgFczNA@mail.gmail.com> <75ddc208-5bf1-7c9c-4d57-057a2058cc26@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Forwarding from developers@ by indication of Hans,

Maybe a devd(8) can do this?

Just to be clear, the keyboard works nicely, but it would be better if
it was detected during the hotplug :-)

Thanks!
---------- Forwarded message ---------
From: Hans Petter Selasky <hps@selasky.org>
Date: Fri, Dec 9, 2022 at 8:34 PM
Subject: Re: autoloading module when matching device
To: Fernando Apestegu=C3=ADa <fernape@freebsd.org>, developers
<developers@freebsd.org>


On 12/9/22 19:57, Fernando Apestegu=C3=ADa wrote:
> Hi all,
>
> I have a new usb keyboard that uses the ums(4) driver. However I need
> to add it to kld_list to preload it since the module is not autoloaded
> when the keyboard is plugged in. The keyboard I want to replace is
> properly detected when plugged in, though. I thought there would be
> some place where I could add some device id and map it to ums(4), but
> I can't find it. I've had a look at devmatch(8) but I can't find any
> related config files.
>
> Where do I need to look?
>
> Thanks!

Hi Fernando,

There is no such quirk yet. There are only quirks via usbconfig to
prevent attach of ums or ukbd.

However, this is a perfect question for freebsd-usb@freebsd.org . Let's
continue there!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bA6kYs3dDR7y-3M5xooswLz_vbqe%2BzcyKjiSd6Et1bkA>