sparc64 X and kbd keyboard driver

Matthias Muthmann mmuthmann at gmx.net
Wed Jul 13 17:32:32 GMT 2005


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 type5 
> keyboard) now. So I started playing with kbd driver a bit and so far it works 
> for me. The patch is the same that I already sent a while ago:
> 
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):

===================================================================
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: warning: 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 at 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
-- 
Matthias Muthmann <mmuthmann at gmx.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20050713/2b38ac03/attachment.bin


More information about the freebsd-sparc64 mailing list