Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Nov 2024 23:43:29 +0000
From:      Frank Hilgendorf <frank.hilgendorf@posteo.de>
To:        freebsd-usb@freebsd.org
Subject:   Apple Notebooks - Enable the FN key
Message-ID:  <E3C9FFD0-1F4E-4CE2-9BD5-7DDE714DBB56@posteo.de>

next in thread | raw e-mail | index | archive | help
Hello,

trying to adopt FeeBSD to my old MacBookPro 3,1  I ran into the problem =
- like many others before - that the media key functions on the internal =
keyboard cannot be used. Expectation is, that pressing the FN key in =
conjunction with one of the function keys F1..F12 generates the =
respective event, e.g. Screen Brightness UP or DOWN. This does not work =
because FN key state changes do not pass the ukbd (and hkbd) keyboard =
driver.

Currently, the FN key is recognized by the driver. It has code 0x0003 on =
the non-standard usage page 0xffff. Currently, when FN is pressed the =
four arrow keys are mapped to Home / End / PgUp / PgDown. that's all, =
the FN key state itself is not output by the driver.
This is what I would like to change, by implementing two things:

1) Remap FN to an unused keyboard HID usage code (which?)
2) Treat FN like any of the other modifier keys

Then, FN can be used as a modifier in xkb mappings of the media keys.   =20=

There should be no entry in the AT scan code translation table. Hence, =
FN key actions should not cause problems with the console key mappings.

Is this a useful approach? Any feedback is appreciated.

Regards, Frank=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E3C9FFD0-1F4E-4CE2-9BD5-7DDE714DBB56>