[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442479: XKB layout setting ignored with evdev keyboard driver



On Sun, Sep 16, 2007, Markus Schoder wrote:
> Package: xkb-data
> Version: 1.0~cvs.20070914-1
> Severity: normal
>
> The keyboard layout specified in xorg.conf (in my case de) with the
> XkbLayout option is ignored. Instead I get what I think is the us
> layout.
>
> I get the following error message in the Xorg log:
> (WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
>
> The problem as well as the message disappear if I either switch to the
> old version of /usr/share/X11/xkb/keycodes/evdev or change the minimum
> keycode setting back to 8 and remove the keycode mappings below 8.
>
> Just changing the minimum back to 1 will trigger the problem again.

Please could you try the following patch?

Index: evdev
===================================================================
--- evdev       2 Sep 2007 20:45:27 -0000       1.8
+++ evdev       14 Sep 2007 22:12:48 -0000      1.9
@@ -1,7 +1,7 @@
 // translation from evdev scancodes to something resembling xfree86 keycodes.

 default xkb_keycodes "evdev" {
-       minimum = 1;
+       minimum = 8;
        maximum = 255;

         # Added for pc105 compatibility
@@ -279,12 +279,12 @@
        <I253> = 253;   // #define KEY_DISPLAY_OFF         245

        // Fake keycodes for virtual keys
-       <MDSW> =   1;
-       <LVL3> =   2;
-       <ALT>  =   3;
-       <META> =   4;
-       <SUPR> =   5;
-       <HYPR> =   6;
+       <LVL3> =   92;
+       <MDSW> =   203;
+       <ALT>  =   204;
+       <META> =   205;
+       <SUPR> =   206;
+       <HYPR> =   207;

        indicator 1  = "Caps Lock";
        indicator 2  = "Num Lock";


-- 
Mohammed Adnène Trojette




Reply to: