Subject: Re: XFree86 and clamshell ibook keyboard
To: Michael Lorenz <macallan@netbsd.org>
From: Bruce O'Neel <edoneel@sdf.lonestar.org>
List: port-macppc
Date: 12/23/2005 14:52:58
Hi,
Thanks very much, this completely fixed it!
cheers
bruce
On Thu, Dec 22, 2005 at 08:43:25AM -0500, Michael Lorenz wrote:
> Hello,
>
> > Oddly enough though the keyboard isn't quite right. Only the down
> > arrow sends something recognized as down arrow. The up arror, for
> > example, sends an '='.
>
> In 3.0 use something like this:
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "kbd"
> Option "XkbRules" "xfree86"
> Option "XkbModel" "pc105"
> Option "XkbLayout" "us"
> Option "Protocol" "wskbd"
> Option "Device" "/dev/wskbd0"
> EndSection
>
> Yes, it's a blatant lie but XFree translates everything to some PCish
> set of scancodes anyway before doing any further processing. This should
> make most keys work without any xmodmap stunts ( and "XkbLayout" "de"
> should Just Work )
>
> The point is - there are two keyboard drivers in XFree - 'keyboard' and
> 'kbd'. The former is a horrible mess that only works properly with
> PS/2-ish keyboards, the latter is a module that works just fine with
> USB, Sun and ADB keyboards but has problems with PS/2 ones ( apparently
> some of the scancode mangling done in 'keyboard' doesn't work in 'kbd' -
> didn't have time to investigate further yet )
> The error you describe sounds like you're either using 'keyboard' or
> some outdated xmodmap hack.
>
> have fun
> Michael
--
edoneel@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org