From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 8 09:01:47 2005 Return-Path: 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 6C0B216A4CE for ; Tue, 8 Mar 2005 09:01:47 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A55443D48 for ; Tue, 8 Mar 2005 09:01:46 +0000 (GMT) (envelope-from mmuthmann@gmx.net) Received: (qmail invoked by alias); 08 Mar 2005 09:01:43 -0000 Received: from p54805CDE.dip.t-dialin.net (EHLO [192.168.0.2]) (84.128.92.222) by mail.gmx.net (mp025) with SMTP; 08 Mar 2005 10:01:43 +0100 X-Authenticated: #1009348 From: Matthias Muthmann To: freebsd-sparc64@freebsd.org In-Reply-To: <200503072217.05939.dejan.lesjak@ijs.si> References: <200502240244.03104.dejan.lesjak@ijs.si> <200503022010.39072.dejan.lesjak@ijs.si> <1109950493.21431.5.camel@localhost> <200503072217.05939.dejan.lesjak@ijs.si> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DOU4FVw8UWbwinheMwk2" Date: Tue, 08 Mar 2005 10:01:46 +0100 Message-Id: <1110272506.18532.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 X-Y-GMX-Trusted: 0 cc: Dejan Lesjak Subject: Re: Problems with X.. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 09:01:47 -0000 --=-DOU4FVw8UWbwinheMwk2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mo, 2005-03-07 at 22:17 +0100, Dejan Lesjak wrote: > I see, this should eliminate concern that previous patches remapped last = line=20 > to weird codes... Digging a bit through this I hope that we're at least a= bit=20 > closer to something. I think we could use the mapping for wsconsole for s= un=20 > keyboards: Looking at keycodes we should get (this is a type5 keyboard,=20 > right?) in /usr/X11R6/lib/X11/xkb/keycodes/sun - for de layout of type5=20 > keyboard key Y is so the code should be 107. Now before mapping in= =20 > driver (for which these patches are) is converted to this code, MIN_KEYCO= DE=20 > (defined as 8 in this case) is added to scancode, so that one should be 9= 9.=20 > As we already subtract 1 before addition of MIN_KEYCODE, scancode should = be=20 > 100 or 0x64, which is what we have in wsSun map in bsd_KbdMap.c. > Anyway... if my rambling above is correct, this is what you could try: of= =20 > previous patches keep only patch-kbd_sparc_2.c (remove patch-bsd_kbd.c an= d=20 > patch-bsd_KbdMap.c) and add the patch here: > http://www.ijs.si/~lesi/xorg/patch-bsd_KbdMap.c.2 > Better? Worse? Horrible? >=20 >=20 > Dejan >=20 Well, it depends on your definition of better worse an horrible, but I'd say something between worse to horrible ;). The keys are completely messed up (its a German type5c keyboard). Some examples: 1: keycode 9 (keysym 0x1005ff77, SunAudioLowerVolume) 0: keycode 18 (keysym 0xffc9, F12) a: keycode 37 (keysym 0x31, 1), XLookupString gives 1 bytes: (31) "1" l: keycode 45 (keysym 0x39, 9), XLookupString gives 1 bytes: (39) "9" y: keycode 51 (keysym 0xff63, Insert) .: keycode 59 (keysym 0xff50, Home) End: keycode 102 (keysym 0xff68, Find) --=20 Matthias Muthmann --=-DOU4FVw8UWbwinheMwk2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBCLWn6eA8bkj+29gMRAlSRAJ9813ZMn5HmjxxVVXoTOr5LJQAgAwCffPU/ BgDN1zylMwdYVswEk8OhRhA= =VU8H -----END PGP SIGNATURE----- --=-DOU4FVw8UWbwinheMwk2--