From nobody Sat Dec 10 20:15:19 2022 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NTzfC5gGxz4kMB4 for ; Sat, 10 Dec 2022 20:15:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NTzfC3VFxz3sPx; Sat, 10 Dec 2022 20:15:31 +0000 (UTC) (envelope-from hps@selasky.org) Authentication-Results: mx1.freebsd.org; none Received: from [10.36.2.69] (unknown [46.212.121.255]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1AEF52601B7; Sat, 10 Dec 2022 21:15:24 +0100 (CET) Message-ID: <9ec76abc-9fd3-5356-4a45-8b02f894f7ff@selasky.org> Date: Sat, 10 Dec 2022 21:15:19 +0100 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: autoloading module when matching device To: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= , Warner Losh Cc: freebsd-usb@freebsd.org, Vladimir Kondratyev References: <75ddc208-5bf1-7c9c-4d57-057a2058cc26@selasky.org> Content-Language: en-US From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NTzfC3VFxz3sPx X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 12/10/22 20:22, Fernando ApesteguĂ­a wrote: > On Sat, Dec 10, 2022 at 6:32 AM Warner Losh wrote: >> >> >> >> On Fri, Dec 9, 2022 at 12:50 PM Fernando ApesteguĂ­a wrote: >>> >>> 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 :-) >> >> >> Usually the USB devices that are keyboards autoload the right driver(s). >> >> So, sure, you could use a hack in devd to do this (it was how we did all >> the matching before devmatch harvested the matches from the .ko files), >> but maybe a better question is why aren't the driver(s) automatically loaded >> when the NOMATCH event gets generated when the device is plugged in? > > OK, I did some digging. > > First some info. This[1] is the keyboard I'm using. It is one of those > to be used with a media center. It is smaller than usual and it > incorporates a touchpad. > The media center (an old Zotac Nvidia Ion) is running FreeBSD 13.1 > (FreeBSD zbox 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64) > Hi, The ums and ukbd drivers do not allow a mouse and keyboard on the same so-called USB interface with a shared USB endpoint, because there can only be one driver attached per so-called USB interface. There is a chance that the newer so-called /dev/event/inputX support will do that. I'm CC'ing wulf@ . He's the expert there. --HPS