You are not logged in.

#1 2008-09-30 23:04:49

DZello
Member
From: Montreal, Canada
Registered: 2006-03-04
Posts: 10
Website

Xorg: Keyboard not working when xkeyboard-config is installed

My keyboard doesn't work when xkeyboard-config is installed. I tried multiple layout in xorg.conf without any result. It the same when I downgrade to Xorg-server 1.4.
The only trick I found to type is to remove xkeyboard-config sad

Can you help?

Thanks!

My xorg.conf:

Section "ServerLayout"           
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0     
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection                                       

Section "Files"
#       RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/100dpi:unscaled"
        FontPath     "/usr/share/fonts/75dpi:unscaled" 
        FontPath     "/usr/share/fonts/TTF"            
        FontPath     "/usr/share/fonts/Type1"          
EndSection                                             

Section "Module"
        Load  "glx"
        Load  "record"
        Load  "dri"   
        Load  "extmod"
        Load  "xtrap" 
        Load  "dbe"   
        Load  "freetype"
EndSection              

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"      
        Option "XkbRules"   "xorg"
        Option "XkbModel" "microsoftmult"
       Option          "XkbLayout"     "ca"
       Option          "XkbVariant"    "fr"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "GeForce 8500 GT"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Offline

#2 2008-10-01 09:34:23

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: Xorg: Keyboard not working when xkeyboard-config is installed

I am switching between two XkbVariants of US XkbLayout using the right ctrl and the numlock led as indicator and it works fine as long as I don't enter Gnome.

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules"    "xorg"
    Option         "XkbModel"    "pc105"
    Option         "XkbLayout"   "us,us"
    Option         "XkbVariant"  ",intl"
    Option         "XkbOptions"  "grp:rctrl_toggle,grp_led:num"
EndSection

Gnome has it's own way of managing the keyboard , but the xorg way is better in my opinion. You can make it work in Gnome by putting this in System/Preferences/Sessions:

setxkbmap -rules xorg -model pc105 -layout "us,us" -variant ",intl" -option "grp:rctrl_toggle,grp_led:num"

This command does the same as the code in the xorg.conf


I hope that helps. smile

Last edited by thunderogg (2008-10-01 09:36:36)

Offline

#3 2008-10-01 12:55:54

DZello
Member
From: Montreal, Canada
Registered: 2006-03-04
Posts: 10
Website

Re: Xorg: Keyboard not working when xkeyboard-config is installed

Thanks for your reply but I use KDEmod 4.1. The problem also occurs with TWM so it's not a window manager bug.

Offline

#4 2008-10-01 14:00:00

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: Xorg: Keyboard not working when xkeyboard-config is installed

DZello wrote:

Thanks for your reply but I use KDEmod 4.1. The problem also occurs with TWM so it's not a window manager bug.

The setxkbmap command has nothing to do with Gnome. You can try it in KDE.

Offline

#5 2008-10-07 16:48:09

DZello
Member
From: Montreal, Canada
Registered: 2006-03-04
Posts: 10
Website

Re: Xorg: Keyboard not working when xkeyboard-config is installed

Here is what I tried:

1. Removed xkeyboard-config (Keyboard doesn't work at all with it)
2. Started KDM
3. Installed xkeyboard-config
4. When using setxkbmap, keyboard stop working!

KDM.log when KDM is started with xkeyboard-config is installed:

expected keysym, got XF86_Switch_VT_1: line 8 of xfree86
expected keysym, got XF86_Switch_VT_2: line 11 of xfree86
expected keysym, got XF86_Switch_VT_3: line 14 of xfree86
expected keysym, got XF86_Switch_VT_4: line 17 of xfree86
expected keysym, got XF86_Switch_VT_5: line 20 of xfree86
expected keysym, got XF86_Switch_VT_6: line 23 of xfree86
expected keysym, got XF86_Switch_VT_7: line 26 of xfree86
expected keysym, got XF86_Switch_VT_8: line 29 of xfree86
expected keysym, got XF86_Switch_VT_9: line 32 of xfree86
expected keysym, got XF86_Switch_VT_10: line 35 of xfree86
expected keysym, got XF86_Switch_VT_11: line 38 of xfree86
expected keysym, got XF86_Switch_VT_12: line 41 of xfree86
expected keysym, got XF86_Ungrab: line 45 of xfree86
expected keysym, got XF86_ClearGrab: line 48 of xfree86
expected keysym, got XF86_Next_VMode: line 51 of xfree86
expected keysym, got XF86_Prev_VMode: line 54 of xfree86
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
expected keysym, got XF86Display: line 69 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc

By the way, my keyboard is a Microsoft Ergonomic Keyboard 4000 (usb).

Bus 002 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
Device Descriptor:                                                                   
  bLength                18                                                         
  bDescriptorType         1                                                         
  bcdUSB               2.00                                                         
  bDeviceClass            0 (Defined at Interface level)                             
  bDeviceSubClass         0                                                         
  bDeviceProtocol         0                                                         
  bMaxPacketSize0         8                                                         
  idVendor           0x045e Microsoft Corp.                                         
  idProduct          0x00db Natural Ergonomic Keyboard 4000 V1.0                     
  bcdDevice            1.73                                                         
  iManufacturer           1 Microsoft                                               
  iProduct                2 Natural Ergonomic Keyboard 4000                         
  iSerial                 0                                                         
  bNumConfigurations      1                                                         
  Configuration Descriptor:                                                         
    bLength                 9                                                       
    bDescriptorType         2                                                       
    wTotalLength           59                                                       
    bNumInterfaces          2                                                       
    bConfigurationValue     1                                                       
    iConfiguration          0                                                       
    bmAttributes         0xa0                                                       
      (Bus Powered)                                                                 
      Remote Wakeup                                                                 
    MaxPower              100mA                                                     
    Interface Descriptor:                                                           
      bLength                 9                                                     
      bDescriptorType         4                                                     
      bInterfaceNumber        0                                                     
      bAlternateSetting       0                                                     
      bNumEndpoints           1                                                     
      bInterfaceClass         3 Human Interface Device                               
      bInterfaceSubClass      1 Boot Interface Subclass                             
      bInterfaceProtocol      1 Keyboard                                             
      iInterface              0                                                     
        HID Device Descriptor:                                                       
          bLength                 9                                                 
          bDescriptorType        33                                                 
          bcdHID               1.11                                                 
          bCountryCode            0 Not supported                                   
          bNumDescriptors         1                                                 
          bDescriptorType        34 Report                                           
          wDescriptorLength      60                                                 
         Report Descriptors:                                                         
           ** UNAVAILABLE **                                                         
      Endpoint Descriptor:                                                           
        bLength                 7                                                   
        bDescriptorType         5                                                   
        bEndpointAddress     0x81  EP 1 IN                                           
        bmAttributes            3                                                   
          Transfer Type            Interrupt                                         
          Synch Type               None                                             
          Usage Type               Data                                             
        wMaxPacketSize     0x0008  1x 8 bytes                                       
        bInterval              10                                                   
    Interface Descriptor:                                                           
      bLength                 9                                                     
      bDescriptorType         4                                                     
      bInterfaceNumber        1                                                     
      bAlternateSetting       0                                                     
      bNumEndpoints           1                                                     
      bInterfaceClass         3 Human Interface Device                               
      bInterfaceSubClass      0 No Subclass                                         
      bInterfaceProtocol      0 None                                                 
      iInterface              0                                                     
        HID Device Descriptor:                                                       
          bLength                 9                                                 
          bDescriptorType        33                                                 
          bcdHID               1.11                                                 
          bCountryCode            0 Not supported                                   
          bNumDescriptors         1                                                 
          bDescriptorType        34 Report                                           
          wDescriptorLength      86                                                 
         Report Descriptors:                                                         
           ** UNAVAILABLE **                                                         
      Endpoint Descriptor:                                                           
        bLength                 7                                                   
        bDescriptorType         5                                                   
        bEndpointAddress     0x82  EP 2 IN                                           
        bmAttributes            3                                                   
          Transfer Type            Interrupt                                         
          Synch Type               None                                             
          Usage Type               Data                                             
        wMaxPacketSize     0x0008  1x 8 bytes                                       
        bInterval              10                                                   
Device Status:     0x0000                                                           
  (Bus Powered)

Last edited by DZello (2008-10-07 16:53:07)

Offline

#6 2009-04-05 15:35:28

bardo
Member
Registered: 2004-12-06
Posts: 96

Re: Xorg: Keyboard not working when xkeyboard-config is installed

I'm sorry to resurrect this old thread, but it seems to be the only useful one in the forums (and elsewhere). I started experiencing the same problem when upgrading to the latest Xorg in [testing] (about one month ago), and it rendered one of my machines unusable until I read this. The workaround works (yay!!!), but it forces me to use a US layout, which is not my native one. Did you, by chance, find a solution? Otherwise I shall file a bug...


dreaming in digital / living in realtime / thinking in binary / talking in ip / welcome to our world

Offline

#7 2009-04-05 15:54:07

DZello
Member
From: Montreal, Canada
Registered: 2006-03-04
Posts: 10
Website

Re: Xorg: Keyboard not working when xkeyboard-config is installed

My solution? I switched to OpenSuse...

Offline

#8 2009-04-06 00:19:16

bardo
Member
Registered: 2004-12-06
Posts: 96

Re: Xorg: Keyboard not working when xkeyboard-config is installed

DZello wrote:

My solution? I switched to OpenSuse...

And you call it a solution big_smile Not an option for me, being an Arch contributor... Thanks anyway.


dreaming in digital / living in realtime / thinking in binary / talking in ip / welcome to our world

Offline

Board footer

Powered by FluxBB