Subject: Re: X, keyboard and powerbook
To: Michael Lorenz <macallan@netbsd.org>
From: Emmanuel Hainry <ehainry@free.fr>
List: port-macppc
Date: 03/09/2006 18:53:57
On Thu, Mar 09, 2006 at 12:25:05PM -0500, Michael Lorenz wrote:
> > Whenever I launch X, the keyboard of my powerbook becomes quite
> > strange: instead of azerty (it is a french keyboard), I get ijkl. I
> > would have done some xmodmap'ing if not for some keys (qsdf for
> > example) that do nothing (xev does not report anything when I hit
> > them). However, my USB keyboard works well... Also, in console,
> > everything is fine.  Any ideas, suggestions?
> > 
> > The keyboard section of my XFree86Config looks like this:
> >  
> > Section "InputDevice"
> > 	Identifier  "Keyboard0"
> > 	#Driver      "kbd"
> > 	Driver      "keyboard"
> > 	Option	    "Protocol" "wskbd"
> > 	Option	    "Device" "/dev/wskbd"
> > 	Option	    "XkbRules" "xfree86"
> > 	Option      "XkbModel" "macintosh"
> > 	Option      "XkbLayout" "fr"
> > EndSection
> > 
> > (I have tried both kbd and keyboard as Driver, they do the same)
> > 
> > Running NetBSD-Current from yesterday, xsrc from yesterday too. But
> > the problem was already there with 3.0.
> 
> Try Option "XkbModel" "pc105"

Same result. 
More, I am afraid that if I do not put macintosh somewhere, I will never
be able to input |, \, [ or ~...  

> This is not a bug, just the weird way XFree processes keyboard events -
> it translates everything to a PC-derived set of scancodes before handing
> anything over to xkb.
> Driver should be "kbd" - "keyboard" will get some keys wrong.

-- 
Emmanuel