RE: usbhid(4) breaks passkeys?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 21 Oct 2025 23:38:38 UTC
Marcin Cieslak <saper_at_saper.info> wrote on
Date: Tue, 21 Oct 2025 21:07:44 UTC :

> 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...

Before vs. after:

QUOTE
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=1685192ea1faac28f2d4feede53e70b6a380500f

commit 1685192ea1faac28f2d4feede53e70b6a380500f
Author: ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2025-08-21 17:59:15 +0000
Commit: ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2025-08-23 04:50:09 +0000

hkbd: remove erorr detection in KDSKBSTATE ioctl
. . .
END QUOTE

If before, you may want to test after.
If after, you may want to report that fact.

> Is this a known problem?

===
Mark Millard
marklmi at yahoo.com