Solved Xorg ignoring Section InputDevice

Hi,

I'm trying to configure my keyboard to brazilian-portuguese, but I'm unable to get it working properly.

Actually, I could get my keyboard working in br layout, but I had to unset option AddAutoDevices in /etc/xorg.conf, but mouse and other stuff stopped working. So I had to enable AutoAddDevices again.

Looking /var/log/Xorg.0.log, I could see that Xorg was ignoring Section InputDevice, because AutoAddDevices was enabled. Is there a way to keep AutoAddDevices enabled and keep my keyboard configuration in xorg.conf?

By the way, I have read that it's not required to enable hal, so I didn't install it.

Here is the output of Xorg.0.log:
Code:
[    62.244]
X.Org X Server 1.14.7
Release Date: 2014-06-05
[    62.244] X Protocol Version 11, Revision 0
[    62.244] Build Operating System: FreeBSD 10.1-RELEASE-p8 amd64
[    62.244] Current Operating System: FreeBSD pandora 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
[    62.244] Build Date: 26 March 2015  06:44:26AM
[    62.244]
[    62.244] Current version of pixman: 0.32.6
[    62.244]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    62.244] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    62.245] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  8 09:11:54 2015
[    62.279] (==) Using config file: "/etc/X11/xorg.conf"
[    62.289] (==) ServerLayout "X.org Configured"
[    62.289] (**) |-->Screen "Screen0" (0)
[    62.289] (**) |   |-->Monitor "Monitor0"
[    62.291] (**) |   |-->Device "Card0"
[    62.291] (**) |-->Input Device "Keyboard0"
[    62.291] (**) Option "DontVTSwitch" "off"
[    62.291] (**) Option "DontZap" "off"
[    62.291] (==) Automatically adding devices
[    62.291] (==) Automatically enabling devices
...
[    64.544] (II) config/devd: probing input devices...
[    64.545] (II) config/devd: adding input device (null) (/dev/kbdmux)
[    64.545] (II) LoadModule: "kbd"
[    64.557] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[    64.558] (II) Module kbd: vendor="X.Org Foundation"
[    64.558]     compiled for 1.14.7, module version = 1.8.0
[    64.558]     Module class: X.Org XInput Driver
[    64.558]     ABI class: X.Org XInput driver, version 19.1
[    64.559] (II) Using input driver 'kbd' for 'kbdmux'
[    64.559] (**) kbdmux: always reports core events
[    64.559] (**) kbdmux: always reports core events
[    64.559] (**) Option "Protocol" "standard"
[    64.559] (**) Option "XkbRules" "base"
[    64.559] (**) Option "XkbModel" "pc105"
[    64.559] (**) Option "XkbLayout" "us"
[    64.559] (**) Option "config_info" "devd:kbdmux"
[    64.559] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[    64.560] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[    64.561] (II) config/devd: adding input device (null) (/dev/sysmouse)
[    64.561] (II) LoadModule: "mouse"
[    64.561] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[    64.574] (II) Module mouse: vendor="X.Org Foundation"
[    64.574]     compiled for 1.14.7, module version = 1.9.0
[    64.574]     Module class: X.Org XInput Driver
[    64.574]     ABI class: X.Org XInput driver, version 19.1
[    64.574] (II) Using input driver 'mouse' for 'sysmouse'
[    64.574] (**) sysmouse: always reports core events
[    64.574] (**) Option "Device" "/dev/sysmouse"
[    64.574] (==) sysmouse: Protocol: "Auto"
[    64.574] (**) sysmouse: always reports core events
[    64.574] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[    64.574] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[    64.574] (**) sysmouse: Buttons: 5
[    64.574] (**) Option "config_info" "devd:sysmouse"
[    64.574] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[    64.574] (**) sysmouse: (accel) keeping acceleration scheme 1
[    64.574] (**) sysmouse: (accel) acceleration profile 0
[    64.574] (**) sysmouse: (accel) acceleration factor: 2.000
[    64.574] (**) sysmouse: (accel) acceleration threshold: 4
[    64.574] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[    64.574] (II) sysmouse: SetupAuto: protocol is SysMouse
[    64.628] (II) config/devd: adding input device Mouse (/dev/psm0)
[    64.628] (II) Using input driver 'mouse' for 'Mouse'
[    64.628] (**) Mouse: always reports core events
[    64.628] (**) Option "Device" "/dev/psm0"
[    64.628] (==) Mouse: Protocol: "Auto"
[    64.628] (**) Mouse: always reports core events
[    64.682] (==) Mouse: Emulate3Buttons, Emulate3Timeout: 50
[    64.682] (**) Mouse: ZAxisMapping: buttons 4 and 5
[    64.682] (**) Mouse: Buttons: 5
[    64.682] (**) Option "config_info" "devd:psm0"
[    64.682] (II) XINPUT: Adding extended input device "Mouse" (type: MOUSE, id 8)
[    64.682] (**) Mouse: (accel) keeping acceleration scheme 1
[    64.682] (**) Mouse: (accel) acceleration profile 0
[    64.682] (**) Mouse: (accel) acceleration factor: 2.000
[    64.682] (**) Mouse: (accel) acceleration threshold: 4
[    64.700] (II) Mouse: SetupAuto: hw.iftype is 3, hw.model is 0
[    64.700] (II) Mouse: SetupAuto: protocol is PS/2
[    65.139] (II) Mouse: ps2EnableDataReporting: succeeded
[    70.782] (II) config/devd: ignoring device umass1
And here is my /etc/xorg.conf:
Code:
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    #Screen      1  "Screen1" RightOf "Screen0"

    #InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/local/lib/xorg/modules"
    FontPath     "/usr/local/share/fonts/misc/"
    FontPath     "/usr/local/share/fonts/TTF/"
    FontPath     "/usr/local/share/fonts/OTF/"
    FontPath     "/usr/local/share/fonts/Type1/"
    FontPath     "/usr/local/share/fonts/100dpi/"
    FontPath     "/usr/local/share/fonts/75dpi/"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "XkbModel"   "pc105"
    Option      "XkbLayout"   "br"
    #Option      "XkbVariant"  "abnt2"
EndSection

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

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

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "AccelMethod"           # <str>
        #Option     "Backlight"             # <str>
        #Option     "DRI"                   # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"     # [<bool>]
        #Option     "SwapbuffersWait"       # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"       # [<bool>]
        #Option     "HotPlug"               # [<bool>]
        #Option     "ReprobeOutputs"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"           # <str>
        #Option     "TearFree"               # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"         # [<bool>]
        #Option     "DebugFlushBatches"     # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"             # [<bool>]
        #Option     "BufferCache"           # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

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

Section "ServerFlags"
    Option "DontZap" "off"
    Option "DontVTSwitch" "off"
    #Option "AutoAddDevices" "on"
EndSection
Any help would be appreciated. Thanks in advance.
 
Please enter setxkbmap br in an x11 terminal. If it woks for you just add the command to your ~/.xinitrc or whatever is applied at startup of X11. This procedure should create less headache than modifiying xorg.conf.
 
Are you sure you don't want to use DE configuration or x11/setxkbmap ?
If no, syntax was slightly changed in new Xorg
Code:
Section "InputClass"
Identifier "Keyboard Defaults"
Driver "keyboard"
MatchIsKeyboard "on"
.... your options here
EndSection
 
I got it working with setxkbmap, but I didn't know the syntax of xorg.conf was updated, since X -configure generated the xorg.conf I've posted.

Now I'm curious to know how to get it working with via xorg.conf. I'll do some research on this.

Thanks for both of you.
 
X -configure is not recommended to be used any longer. Even when the command succeeds in creating the configuration file the resulting file doesn't work reliably a lot of the time. If you still would like to use an xorg.conf file, try adding only the following to the file and see if it works for you:
Code:
Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "XkbModel"   "pc105"
    Option      "XkbLayout"  "br"
EndSection
 
protocelt, it didn't work either. For some reason that I don't understand yet, Xorg is ignoring my manual configuration. I couldn't find anything about this. I guess I'll have to play with some settings to see what happens, but I would like to see some explanation on this.

P.S. either Ctrl + Alt + Backspace isn't working on X.
 
Hmm... that is odd. I don't use a configuration file so I'm not sure but I think X.org changed a bit when the xserver was updated to version 1.14. Can you try adding the following to your file and see if this might help?
Code:
[DEL]Section "InputClass"
    Identifier  "Keyboard0"
    Driver  "keyboard"
    MatchIsKeyboard  "on"
    Option  "XkbModel"  "pc105"
    Option  "XkbLayout" "br"
EndSection[/DEL]
EDIT: Oops. Sorry, just realized abishai already mentioned this.

Someone else may have better insight but unless I'm missing something, this seems like a bug of some sort to me. It really should work.
 
Please, provide Xorg logs with the following Xorg.conf file
Code:
Section "Device"
  Identifier  "Card0"
  Driver  "intel"
  BusID  "PCI:0:2:0"
EndSection

Section "InputClass"
  Identifier  "Keyboard0"
  Driver  "keyboard"
  MatchIsKeyboard  "on"
  Option  "XkbModel"  "pc105"
  Option  "XkbLayout" "br"
EndSection

Section "ServerFlags"
  Option "DontZap" "off"
  Option "DontVTSwitch" "off"
  #Option "AutoAddDevices" "on"
EndSection
 
wblock@, ok. I'll create another thread addressing this issue.

abishai, now it worked. I guess I shouldn't have used X -configure to generate xorg.conf...

Here is the /var/log/Xorg.0.log:

Code:
[  6384.957]
X.Org X Server 1.14.7
Release Date: 2014-06-05
[  6384.957] X Protocol Version 11, Revision 0
[  6384.957] Build Operating System: FreeBSD 10.1-RELEASE-p8 amd64
[  6384.957] Current Operating System: FreeBSD playground 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
[  6384.958] Build Date: 26 March 2015  06:44:26AM
[  6384.958]  
[  6384.958] Current version of pixman: 0.32.6
[  6384.958]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  6384.958] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  6384.958] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 10 16:34:09 2015
[  6384.958] (==) Using config file: "/etc/X11/xorg.conf"
[  6384.958] (==) No Layout section.  Using the first Screen section.
[  6384.958] (==) No screen section available. Using defaults.
[  6384.958] (**) |-->Screen "Default Screen Section" (0)
[  6384.958] (**) |  |-->Monitor "<default monitor>"
[  6384.958] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[  6384.958] (**) |  |-->Device "Card0"
[  6384.958] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[  6384.958] (**) Option "DontVTSwitch" "off"
[  6384.958] (**) Option "DontZap" "off"
[  6384.958] (==) Automatically adding devices
[  6384.958] (==) Automatically enabling devices
...
[  6385.165] (II) config/devd: probing input devices...
[  6385.165] (II) config/devd: adding input device (null) (/dev/kbdmux)
[  6385.165] (**) kbdmux: Applying InputClass "Keyboard0"
[  6385.165] (II) LoadModule: "kbd"
[  6385.165] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[  6385.165] (II) Module kbd: vendor="X.Org Foundation"
[  6385.165]    compiled for 1.14.7, module version = 1.8.0
[  6385.165]    Module class: X.Org XInput Driver
[  6385.165]    ABI class: X.Org XInput driver, version 19.1
[  6385.165] (II) Using input driver 'kbd' for 'kbdmux'
[  6385.165] (**) kbdmux: always reports core events
[  6385.165] (**) kbdmux: always reports core events
[  6385.165] (**) Option "Protocol" "standard"
[  6385.165] (**) Option "XkbRules" "base"
[  6385.165] (**) Option "XkbModel" "pc105"
[  6385.165] (**) Option "XkbLayout" "br"
[  6385.165] (**) Option "config_info" "devd:kbdmux"
[  6385.166] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[  6385.193] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[  6385.193] (II) config/devd: adding input device (null) (/dev/sysmouse)
[  6385.193] (II) LoadModule: "mouse"
[  6385.193] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[  6385.193] (II) Module mouse: vendor="X.Org Foundation"
[  6385.193]    compiled for 1.14.7, module version = 1.9.0
[  6385.193]    Module class: X.Org XInput Driver
[  6385.193]    ABI class: X.Org XInput driver, version 19.1
[  6385.193] (II) Using input driver 'mouse' for 'sysmouse'
[  6385.193] (**) sysmouse: always reports core events
[  6385.193] (**) Option "Device" "/dev/sysmouse"
[  6385.193] (==) sysmouse: Protocol: "Auto"
[  6385.193] (**) sysmouse: always reports core events
[  6385.193] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[  6385.193] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[  6385.193] (**) sysmouse: Buttons: 5
[  6385.194] (**) Option "config_info" "devd:sysmouse"
[  6385.194] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[  6385.194] (**) sysmouse: (accel) keeping acceleration scheme 1
[  6385.194] (**) sysmouse: (accel) acceleration profile 0
[  6385.194] (**) sysmouse: (accel) acceleration factor: 2.000
[  6385.194] (**) sysmouse: (accel) acceleration threshold: 4
[  6385.194] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[  6385.194] (II) sysmouse: SetupAuto: protocol is SysMouse
[  6385.248] (II) config/devd: adding input device Mouse (/dev/psm0)
[  6385.248] (II) Using input driver 'mouse' for 'Mouse'
[  6385.248] (**) Mouse: always reports core events
[  6385.248] (**) Option "Device" "/dev/psm0"
[  6385.248] (==) Mouse: Protocol: "Auto"
[  6385.248] (**) Mouse: always reports core events
[  6385.303] (==) Mouse: Emulate3Buttons, Emulate3Timeout: 50
[  6385.303] (**) Mouse: ZAxisMapping: buttons 4 and 5
[  6385.303] (**) Mouse: Buttons: 5
[  6385.303] (**) Option "config_info" "devd:psm0"
[  6385.303] (II) XINPUT: Adding extended input device "Mouse" (type: MOUSE, id 8)
[  6385.304] (**) Mouse: (accel) keeping acceleration scheme 1
[  6385.304] (**) Mouse: (accel) acceleration profile 0
[  6385.304] (**) Mouse: (accel) acceleration factor: 2.000
[  6385.304] (**) Mouse: (accel) acceleration threshold: 4
[  6385.320] (II) Mouse: SetupAuto: hw.iftype is 3, hw.model is 0
[  6385.320] (II) Mouse: SetupAuto: protocol is PS/2
[  6385.761] (II) Mouse: ps2EnableDataReporting: succeeded
[  6507.164] (II) AIGLX: Suspending AIGLX clients for VT switch
[  6507.164] (WW) intel(0): drmDropMaster failed: Unknown error: -22
[  6510.483] (II) AIGLX: Resuming AIGLX clients after VT switch
[  6510.536] (II) intel(0): EDID vendor "AUO", prod id 6460
[  6510.536] (II) intel(0): Printing DDC gathered Modelines:
[  6510.536] (II) intel(0): Modeline "1366x768"x0.0  71.00  1366 1404 1426 1472  768 771 777 803 +hsync -vsync (48.2 kHz eP)
[  6510.536] (II) intel(0): Modeline "1366x768"x0.0  71.00  1366 1404 1426 1760  768 771 777 1008 +hsync -vsync (40.3 kHz e)
 
Back
Top