https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288968

--- Comment #6 from Mark Millard <[email protected]> ---
(In reply to ShengYi Hung from comment #5)

With the "return (0);" patch, input is working in
my Parallels context.


Details:

My context was official pkgbase based, including for
/usr/src/ content --until I built and installed the
(debug) kernel variant with the patch:

# diff -u /usr/src/sys/dev/hid/hkbd.c.orig /usr/src/sys/dev/hid/hkbd.c
--- /usr/src/sys/dev/hid/hkbd.c.orig    2025-08-20 11:09:37.000000000 -0700
+++ /usr/src/sys/dev/hid/hkbd.c 2025-08-21 14:32:06.870020000 -0700
@@ -1596,8 +1596,9 @@
                sc->sc_state &= ~LOCK_MASK;
                sc->sc_state |= *(int *)arg;

-               /* set LEDs and quit */
-               return (hkbd_ioctl_locked(kbd, KDSETLED, arg));
+               /* try to set LEDs and quit */
+               (void)hkbd_ioctl_locked(kbd, KDSETLED, arg);
+               return (0);

        case KDSETREPEAT:               /* set keyboard repeat rate (new
                                         * interface) */

(I also installed the debug and non-debug kernels
that I built into distinct names from the official
ones.)

The context has:

# sysctl hw.usb.usbhid.enable
hw.usb.usbhid.enable: 1

For reference:

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE #1: Thu Aug
21 14:34:01 PDT 2025    
root@aarch64-main-pbase:/usr/obj/BUILDs/main-aarch64-usr_src-dbg-clang/usr/src/arm64.aarch64/sys/GENERIC
arm64 aarch64 1500063 1500063

/usr/src not being git-based means lack of a "dirty" notice
and lack of a hash or such for what the build is based on. So
from the official pkgbase debug kernel (not booted for the
test) there is:

# strings /boot/kernel/kernel | grep "15\.0-"
@(#)FreeBSD 15.0-PRERELEASE main-n279749-84f8ca1bd11d GENERIC
FreeBSD 15.0-PRERELEASE main-n279749-84f8ca1bd11d GENERIC
15.0-PRERELEASE

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to