Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2024 21:07:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 282411] ukbd: apple_swap not enabled on Apple ISO keyboard
Message-ID:  <bug-282411-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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: <Apple Computer Apple Internal Keyboard / Trackpad> 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  <Probed by interface class>
  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  <Apple Computer>
  iProduct =3D 0x0002  <Apple Internal Keyboard / Trackpad>
  iSerialNumber =3D 0x0000  <no string>
  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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282411-19105>