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

Reply via email to