From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 8 12:15:33 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 786D116A4CE for ; Tue, 8 Mar 2005 12:15:33 +0000 (GMT) Received: from mx2.confluentasp.com (mx2.confluentasp.com [216.26.153.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 712B243D41 for ; Tue, 8 Mar 2005 12:15:25 +0000 (GMT) (envelope-from mikej@confluenttech.com) Received: from neo.confluentasp.local (35.in-addr.arpa.confluentasp.com [216.26.153.35] (may be forged))j28CFOGB065745 for ; Tue, 8 Mar 2005 07:15:24 -0500 (EST) (envelope-from mikej@confluenttech.com) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Date: Tue, 8 Mar 2005 07:15:19 -0500 Message-ID: <9D7F0DF3FB16D41184010050DA90E00001C874CB@neo.confluentasp.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Problems with X.. Thread-Index: AcUj2H5SnGbZP2TAR8WO3sBGI+x1ag== From: "Michael G. Jung" To: cc: dejan.lesjak@ijs.si 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 12:15:33 -0000 Patched as desrived below this seems to have fixed my problems with X on = Sparc Ultra 2. I tested the keyboard in xterm and KWord. While I only spend a few = minutes with it this morning, all the alphanumeric keys + keypad seemed = to work fine A-Z, a-z 0-1 !@#$%^% etc... PgUp/PgDown keys worked, the = keypad worked numerically and shifted and F1 brought up KHelp...=20 Thanks for all your efforts! Here is my version info. X was compiled with your single patch = patch-kbd_sparc_2.c. X Window System Version 6.8.1 Release Date: 17 September 2004 X Protocol Version 11, Revision 0, Release 6.8.1 Build Operating System: FreeBSD 6.0 sparc64 [ELF]=20 Current Operating System: FreeBSD dual2.mikej.com 6.0-CURRENT FreeBSD = 6.0-CURRENT #1: Sat Feb 5 12:03:53 EST 2005 = root@dual2.mikej.com:/usr/obj/usr/src/sys/DUAL2-2 sparc64 Build Date: 08 March 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present FreeBSD dual2.mikej.com 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Sat Feb 5 = 12:03:53 EST 2005 root@dual2.mikej.com:/usr/obj/usr/src/sys/DUAL2-2 = sparc64 --=3D-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 =3D line=3D20 > to weird codes... Digging a bit through this I hope that we're at = least a=3D bit=3D20 > closer to something. I think we could use the mapping for wsconsole = for s=3D un=3D20 > keyboards: Looking at keycodes we should get (this is a type5 = keyboard,=3D20 > right?) in /usr/X11R6/lib/X11/xkb/keycodes/sun - for de layout of = type5=3D20 > keyboard key Y is so the code should be 107. Now before mapping = in=3D =3D20 > driver (for which these patches are) is converted to this code, = MIN_KEYCO=3D DE=3D20 > (defined as 8 in this case) is added to scancode, so that one should = be 9=3D 9.=3D20 > As we already subtract 1 before addition of MIN_KEYCODE, scancode = should =3D be=3D20 > 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=3D =3D20 > previous patches keep only patch-kbd_sparc_2.c (remove patch-bsd_kbd.c = an=3D d=3D20 > patch-bsd_KbdMap.c) and add the patch here: > http://www.ijs.si/~lesi/xorg/patch-bsd_KbdMap.c.2 > Better? Worse? Horrible? >=3D20 >=3D20 > Dejan >=3D20 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) --=3D20 Matthias Muthmann --=3D-DOU4FVw8UWbwinheMwk2 Content-Type: application/pgp-signature; name=3Dsignature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBCLWn6eA8bkj+29gMRAlSRAJ9813ZMn5HmjxxVVXoTOr5LJQAgAwCffPU/ BgDN1zylMwdYVswEk8OhRhA=3D =3DVU8H -----END PGP SIGNATURE----- --=3D-DOU4FVw8UWbwinheMwk2--