From owner-freebsd-sparc64@FreeBSD.ORG Wed Jul 13 17:32:32 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F70E16A41C for ; Wed, 13 Jul 2005 17:32:32 +0000 (GMT) (envelope-from mmuthmann@gmx.net) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 50D4143D46 for ; Wed, 13 Jul 2005 17:32:30 +0000 (GMT) (envelope-from mmuthmann@gmx.net) Received: (qmail invoked by alias); 13 Jul 2005 17:32:29 -0000 Received: from p5492A029.dip0.t-ipconnect.de (EHLO [192.168.0.2]) [84.146.160.41] by mail.gmx.net (mp019) with SMTP; 13 Jul 2005 19:32:29 +0200 X-Authenticated: #1009348 From: Matthias Muthmann To: Dejan Lesjak In-Reply-To: <200506201856.19739.dejan.lesjak@ijs.si> References: <200506201856.19739.dejan.lesjak@ijs.si> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ppgNl+FPDFg7QN+9aHv4" Date: Wed, 13 Jul 2005 19:32:45 +0200 Message-Id: <1121275965.32505.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Y-GMX-Trusted: 0 Cc: freebsd-sparc64@freebsd.org Subject: Re: sparc64 X and kbd keyboard driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 17:32:32 -0000 --=-ppgNl+FPDFg7QN+9aHv4 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Am Montag, den 20.06.2005, 18:56 +0200 schrieb Dejan Lesjak: > Thanks to changes from marius, I seem to have working X on Ultra5 (with t= ype5=20 > keyboard) now. So I started playing with kbd driver a bit and so far it w= orks=20 > for me. The patch is the same that I already sent a while ago: >=20 Xorg fixed the error for themselves. I took their patch and removed the old patches and it works perfect! All of the sun-special keys work (but I think they are not used anyway). My keyboard-config is Section "InputDevice" Identifier "Keyboard0" Option "Protocol" "standard" Driver "kbd" Option "AutoRepeat" "500 30" Option "XkbRules" "sun" Option "XkbModel" "type5" Option "XkbLayout" "de" EndSection But I have one problem with my keyboard: The lights for Caps Lock, Num Lock and Scroll Lock don't work with X... don't know why. And here is the diff from xorg (you have to edit it to get it to work - I'm a noob and can't do it atm): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/input/keyboard/kbd.c,v rcsdiff: /cvs/xorg/xc/programs/Xserver/hw/xfree86/input/keyboard/kbd.c,v: w= arning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- kbd.c 2005/07/11 02:38:00 1.15 +++ kbd.c 2005/07/13 12:30:04 1.16 @@ -553,6 +553,19 @@ if (xf86inSuspend) return; + if (pKbd->sunKbd) { + /* + * XXX XXX XXX: + * + * I really don't know what's wrong here, but passing the real + * scanCode offsets by one from XKB's point of view. + * + * (ecd@skynet.be, 980405) + */ + scanCode--; + goto sunKeyboards; + } + /* * First do some special scancode remapping ... */ @@ -616,6 +629,7 @@ } #endif +sunKeyboards: /* * Now map the scancodes to real X-keycodes ... */ Happy Hacking --=20 Matthias Muthmann --=-ppgNl+FPDFg7QN+9aHv4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC1VA9eA8bkj+29gMRAseEAJ9wQ4iMaAxy2Y79qQN4ohPMLWrZGACfSksa cjA56tNoE8FPtwoCQ/4nCS8= =IoPt -----END PGP SIGNATURE----- --=-ppgNl+FPDFg7QN+9aHv4--