Re: usbhid(4) breaks passkeys?

From: Marcin Cieslak <saper_at_saper.info>
Date: Tue, 21 Oct 2025 22:41:05 UTC
On Tue, 21 Oct 2025, Alan Somers wrote:

> On Tue, Oct 21, 2025 at 4:25 PM Marcin Cieslak <saper@saper.info> wrote:
>
>> Hello,
>>
>> I've just noticed that for some time that my USB passkey does not work
>> in my browser (Firefox). Setting sysctl hw.usb.usbhid.enable=0 and
>> re-attaching
>> the device (so it gets the "uhid" driver) fixes the problem:
>>
>> sbhid0: <Nitrokey Nitrokey 3, class 239/2, rev 2.10/1.07, addr 21> on
>> usbus0
>> hidbus2: <HID bus> on usbhid0
>>   (** does not work **)
>> ugen0.4: <Nitrokey Nitrokey 3> at usbus0 (disconnected)
>> usbhid0: at uhub4, port 1, addr 21 (disconnected)
>> hidbus2: detached
>> usbhid0: detached
>> ugen0.4: <Nitrokey Nitrokey 3> at usbus0
>> uhid0 on uhub4
>> uhid0: <Nitrokey Nitrokey 3, class 239/2, rev 2.10/1.07, addr 22> on usbus0
>>   (** works **)
>>
>> This is an oldish FreeBSD 15 from August...
>>
>> Is this a known problem?
>>
>> Marcin
>
>
> I'm currently using a Yubikey on FreeBSD 14.3 with usbhid and it works
> fine.  But these things have multiple functions.  Maybe usbhid only breaks
> one.  Which function are you using?  I'm using PIV and GPG.

GPG works fine (as this is a CCID interface, not HID).

FIDO2/Passkey is a different function ... You can try with https://webauthn.io/

Marcin