From nobody Tue Oct 29 21:07:02 2024 X-Original-To: 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 4XdN9f6bjmz5bvD9 for ; Tue, 29 Oct 2024 21:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdN9f4PXqz4WHT for ; Tue, 29 Oct 2024 21:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730236022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mlPSXlUwE8M0e4F2MfeQmYykSZ9Pz9jaxhM6DwcLjOI=; b=piIM0dSG+hLJy67EpNSjrJM3ajcVwQc1nM52AYOn3hVPoQMm1i/75zyoBRKQBZeWnoSjNj K77FcBFR391rF19TAfeeGleIBsGvDvtjVzPnt4xOXYmBETS7r4Jzhg5gh7EoZg2BYyxi4s B3EX+CRSP4XDi2Ie5z8R7qdup2N7Yu+tqV685FX/frz5NqOVR4q8tmH0LJzuAekfb2pG6W 4VErrm2OpmtvemtszaeEYgaiijllQG+6MoKPnPKoGZK5+z2+Zr3AnoMIpXBxqjkCAOyhnP ALN8TL6sMuz1D46gZy1U5iGlxbfxHehlL02/IM/rv8s7scBjXTTDkKCvBNa45w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730236022; a=rsa-sha256; cv=none; b=ahFWumAFXlhIbxOBqCah6pcyYWsxoxSRuTV4n24n6vlPBAVi/VJCogU5DZxbf5O1fJeNC5 m1ASjBJetGMGhSda6DlXtJAhxjSwKly4nPwifyOBSjV2/tFHjiprIS1+9QgZcou9e5DFh5 hM3hKT4LlvydoAbGpaZsRONgLmdA+U66aHuY0OIM8jKxSy1OImRwf9ArOeSJeQX8WjGPsy l02pELcxKOxLQi+tb3v4fmhS4RYNUAjmTezwONKJsTZDt3wliC8qCkGgD9giqPAGIGrKiV 1kzh5DT6uU/T1h17EUWI8/jfN7liJ3hocATwEO1a4tdTNEd/IfRAQwCVSNwEUw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XdN9f414mzg90 for ; Tue, 29 Oct 2024 21:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49TL720p038103 for ; Tue, 29 Oct 2024 21:07:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49TL72MR038102 for usb@FreeBSD.org; Tue, 29 Oct 2024 21:07:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 282411] ukbd: apple_swap not enabled on Apple ISO keyboard Date: Tue, 29 Oct 2024 21:07:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: frank.hilgendorf@posteo.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282411 Bug ID: 282411 Summary: ukbd: apple_swap not enabled on Apple ISO keyboard Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: frank.hilgendorf@posteo.de On my MacBookPro 3,1 with internal ISO keyboard, apple_swap is not enabled although it is required. sysadmin@hilschubookBSD:~ $ sudo usbconfig -d ugen5.3 dump_device_desc ugen5.3: at usbus5, cfg= =3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (40mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0000 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x05ac=20 idProduct =3D 0x021b=20 bcdDevice =3D 0x0018=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 In ukbd.c, currently apple_swap is enabled when the Eject key is found in t= he usage page.=20 IMO it would be better to enable apple_swap on all ISO keyboards. In this post=20 https://stackoverflow.com/questions/3202629/where-can-i-find-a-list-of-mac-= virtual-key-codes the situation is explained, referring to 'Apple toolbox essentials'=20 https://developer.apple.com/library/archive/documentation/mac/pdf/Macintosh= ToolboxEssentials.pdf There, the key swap between ANSI and ISO layouts is depicted on page 2-43. I have prepared a patch in Pull Request https://github.com/freebsd/freebsd-src/pull/1487 --=20 You are receiving this mail because: You are the assignee for the bug.=