Subject: Re: X, keyboard and powerbook
To: Emmanuel Hainry <ehainry@free.fr>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 03/09/2006 12:25:05
--Signature_Thu__9_Mar_2006_12_25_05_-0500_kUf554uoDR7+IQDo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> 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?
>=20
> The keyboard section of my XFree86Config looks like this:
> =20
> 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
>=20
> (I have tried both kbd and keyboard as Driver, they do the same)
>=20
> Running NetBSD-Current from yesterday, xsrc from yesterday too. But
> the problem was already there with 3.0.

Try Option "XkbModel" "pc105"

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.

have fun
Michael

--Signature_Thu__9_Mar_2006_12_25_05_-0500_kUf554uoDR7+IQDo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBRBBk8cpnzkX8Yg2nAQJ3nQf/ahhWZZQeGfjLVLZG8x0KuUAQbBwyQ712
RZla2rGqhnhjh2FvLlG/va4a5sEF2HWpxPcRUJs0h8xXCKo03iaJ3y4B+xc6Z1dN
4xgopbNDxUay6u1iQXlIgZk6p6IoxrpSTLFoEfZeAhe72lWrUZQetPal1BnmFeEL
NjQkcmUZVOJVDxDlsgFmJe/uRo6M8rT0AzCVdQGiPRVM9r1Zj936XDc81SFoI/AX
fWEaAKEyQCioUssdGVisT9OOw4MucMvvU9snQ9wH7uq33a5OMAr6BNryjQeQsxPA
/Cb4x/tqHQHQX21c4X+y0SKgl6xc9qVvd0YX/Y/0cFAjOpcYDTdwoA==
=cSMs
-----END PGP SIGNATURE-----

--Signature_Thu__9_Mar_2006_12_25_05_-0500_kUf554uoDR7+IQDo--