Alan Coopersmith wrote: > Jeff Chua wrote: >> On Sun, Jan 25, 2009 at 4:55 AM, Joel Feiner <[email protected]> wrote: >>> xf86-input-keyboard also doesn't build with similar errors: >>>> kbd.c:567: warning: passing argument 1 of 'InitKeyboardDeviceStruct' >>>> from incompatible pointer type >>>> kbd.c:567: warning: passing argument 2 of 'InitKeyboardDeviceStruct' >>>> from incompatible pointer type >>>> kbd.c:567: warning: passing argument 3 of 'InitKeyboardDeviceStruct' >>>> from incompatible pointer type >>>> kbd.c:567: warning: passing argument 4 of 'InitKeyboardDeviceStruct' >>>> from incompatible pointer type >>>> kbd.c:567: error: too many arguments to function >>>> 'InitKeyboardDeviceStruct' >>>> kbd.c: In function 'PostKbdEvent': >>>> kbd.c:699: error: 'KeyClassRec' has no member named 'state' >>>> kbd.c:702: error: 'KeyClassRec' has no member named 'state' >>>> kbd.c:714: error: 'KeyClassRec' has no member named 'state' >>>> kbd.c:726: error: 'KeyClassRec' has no member named 'curKeySyms' >>>> kbd.c:727: error: 'KeyClassRec' has no member named 'curKeySyms' >>>> kbd.c:728: error: 'KeyClassRec' has no member named 'curKeySyms' >>>> kbd.c:791: error: 'KeyClassRec' has no member named 'modifierMap' >>>> kbd.c:847: error: 'KeyClassRec' has no member named 'modifierMap' >>>> kbd.c:854: error: 'KeyClassRec' has no member named 'modifierKeyMap' >>>> kbd.c:854: error: 'KeyClassRec' has no member named >>>> 'maxKeysPerModifier' >>>> kbd.c:857: error: 'KeyClassRec' has no member named 'modifierKeyMap' >>>> kbd.c:857: error: 'KeyClassRec' has no member named >>>> 'maxKeysPerModifier' >>>> kbd.c: At top level: >>>> kbd.c:863: warning: 'ModuleInfoRec' is deprecated >> >> Any fix for this? I've tried the latest xserver. Compile fine. But >> xf86-input-keyboard still failed to compiled. Have tried with >> --disable-xnest, but still failed. > > You might try applying > http://people.freedesktop.org/~daniels/kbd-pass-the-absinthe.diff > but that's probably no more tested than the other recent XKB changes.
I just made a somewhat simpler version, that from some basic
tests only misses autorepeat, but I did not follow the code to
see how to actually set the repeat and intervals.
Maybe should be on the KeybdCtrl defaultKeyboardControl, as I
don't know if there is an api for calling it..., but would look
ugly to set that global variable, so, left as an exercise to
whoever wants to finish the patch; I am using evdev...
Hint on how I did test the patch, and some intermediate versions
that would fail to load due to unresolved symbols; add to
/etc/X11/xorg.conf something like:
-%<-
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "CoreKeyboard"
EndSection
-%<-
and to Section "ServerLayout":
-%<-
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
-%<-
and to Section "ServerFlags":
-%<-
Option "AutoEnableDevices" "True"
Option "AutoAddDevices" "False"
-%<-
Then, run something like:
% startx & sleep 15; killall X
If you have a ssh access, it will be easier...
Then, you may also need to run from a xterm something like:
% setxkbmap -rules xorg us_intl
Paulo
xf86-input-keyboard-git-master.patch
Description: Binary data
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
