USB keyboard translation - Apple hardware

Rui Paulo rpaulo at fnop.net
Tue Dec 25 19:04:31 PST 2007


At Mon, 24 Dec 2007 10:50:52 +0000,
Rui Paulo wrote:
> 
> At Mon, 24 Dec 2007 10:46:42 +0100,
> Ed Schouten wrote:
> > 
> > [1  <text/plain; us-ascii (quoted-printable)>]
> > Hello everyone,
> > 
> > One of the things that really made me mad when I got FreeBSD working on
> > my Apple MacBook, was that the Fn button on the keyboard doesn't work.
> > This means that I don't have the Delete, Page-{Up,Down}, Home and End
> > buttons.
> > 
> > I took a look at kbdmap(1), but it turned out you can't add any new
> > modifiers, which is needed in this case, because we have a new Fn
> > modifier key. Maybe you could solve this in X, but I also work a lot
> > outside of X, so I really want to have the translation to be performed
> > everywhere.
> > 
> > I've written the following patch for ukbd, which adds a method for
> > easily adding translation functions to the driver, to remap keys:
> > 
> > 	http://g-rave.nl/unix/freebsd/freebsd-ukbd-translate.diff
> > 
> > I tried to keep the code as clean as possible, so I also put some
> > #ifdef's around it, so that people who dislike it, can just undef it.
> > I've only added the quirks for the Apple MacBook keyboard, but there are
> > some other Apple keyboards that have some strange scancodes. I still
> > have to add those.
> > 
> > Any comments so far?
> 
> I do like this approach.

Oops, I mean "I don't like this approach"

Sorry.

--
Rui Paulo


More information about the freebsd-usb mailing list