Date: Wed, 13 Jul 2005 19:32:45 +0200 From: Matthias Muthmann <mmuthmann@gmx.net> To: Dejan Lesjak <dejan.lesjak@ijs.si> Cc: freebsd-sparc64@freebsd.org Subject: Re: sparc64 X and kbd keyboard driver Message-ID: <1121275965.32505.6.camel@localhost> In-Reply-To: <200506201856.19739.dejan.lesjak@ijs.si> References: <200506201856.19739.dejan.lesjak@ijs.si>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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 <mmuthmann@gmx.net> --=-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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1121275965.32505.6.camel>