Solved Force Xorg option XkbLayout to latam

Hi everybody.

Every time that I start Xorg I need do the command:

setxkbmap latam

to have the right keyboard layout of my laptop.

But I try many times to configure the /etc/X11/xorg.conf without successfull

My xorg.conf is:

Code:
Section "InputDevice"
   Identifier "Keyboard0"
   Driver "kbd"
   Option "XkbLayout" "latam"
EndSection
Section "Monitor"
   Identifier  "LVDS1"
   Option "PreferredMode" "1280x800_65.28"
EndSection
Section "Monitor"
   Identifier  "VGA1"
   Option "LeftOf" "LVDS1"
EndSection
Section "Device"
  Identifier "Device0"
  Driver "intel"
  Option  "Monitor-VGA1" "VGA1"
  Option  "Monitor-LVDS1" "LVDS1"
EndSection

My full/var/log/Xorg.0.log is:

Code:
[  29.568]
X.Org X Server 1.14.7
Release Date: 2014-06-05
[  29.568] X Protocol Version 11, Revision 0
[  29.568] Build Operating System: FreeBSD 10.1-RELEASE-p9 i386
[  29.568] Current Operating System: FreeBSD i710m 10.1-RELEASE FreeBSD 10.1-RELEASE #5: Tue May  5 07:27:58 CDT 2015  root@i710m:/usr/src/sys/i386/compile/I710M i386
[  29.568] Build Date: 20 April 2015  04:17:15PM
[  29.568] 
[  29.568] Current version of pixman: 0.32.8
[  29.568]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  29.568] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  29.569] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 15 17:22:58 2016
[  29.625] (==) Using config file: "/etc/X11/xorg.conf"
[  29.646] (==) No Layout section.  Using the first Screen section.
[  29.646] (==) No screen section available. Using defaults.
[  29.646] (**) |-->Screen "Default Screen Section" (0)
[  29.646] (**) |  |-->Monitor "<default monitor>"
[  29.659] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[  29.659] (**) |  |-->Device "Device0"
[  29.659] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[  29.659] (==) Automatically adding devices
[  29.659] (==) Automatically enabling devices
[  29.659] (==) Not automatically adding GPU devices
[  29.806] (==) FontPath set to:
   /usr/local/share/fonts/misc/,
   /usr/local/share/fonts/TTF/,
   /usr/local/share/fonts/OTF/,
   /usr/local/share/fonts/Type1/,
   /usr/local/share/fonts/100dpi/,
   /usr/local/share/fonts/75dpi/
[  29.806] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[  29.806] (II) The server relies on devd to provide the list of input devices.
   If no devices become available, reconfigure devd or disable AutoAddDevices.
[  29.806] (II) Loader magic: 0x822b188
[  29.806] (II) Module ABI versions:
[  29.806]    X.Org ANSI C Emulation: 0.4
[  29.806]    X.Org Video Driver: 14.1
[  29.806]    X.Org XInput driver : 19.1
[  29.806]    X.Org Server Extension : 7.0
[  29.807] (--) PCI:*(0:0:2:0) 8086:3582:1028:018d rev 2, Mem @ 0xe8000000/134217728, 0xe0000000/524288, I/O @ 0x00001800/8, BIOS @ 0x????????/65536
[  29.807] (--) PCI: (0:0:2:1) 8086:3582:1028:018d rev 2, Mem @ 0xf0000000/134217728, 0xe0080000/524288
[  29.807] Initializing built-in extension Generic Event Extension
[  29.807] Initializing built-in extension SHAPE
[  29.807] Initializing built-in extension MIT-SHM
[  29.807] Initializing built-in extension XInputExtension
[  29.807] Initializing built-in extension XTEST
[  29.807] Initializing built-in extension BIG-REQUESTS
[  29.807] Initializing built-in extension SYNC
[  29.807] Initializing built-in extension XKEYBOARD
[  29.807] Initializing built-in extension XC-MISC
[  29.807] Initializing built-in extension XINERAMA
[  29.807] Initializing built-in extension XFIXES
[  29.807] Initializing built-in extension RENDER
[  29.807] Initializing built-in extension RANDR
[  29.807] Initializing built-in extension COMPOSITE
[  29.807] Initializing built-in extension DAMAGE
[  29.807] Initializing built-in extension MIT-SCREEN-SAVER
[  29.807] Initializing built-in extension DOUBLE-BUFFER
[  29.807] Initializing built-in extension RECORD
[  29.807] Initializing built-in extension DPMS
[  29.807] Initializing built-in extension X-Resource
[  29.807] Initializing built-in extension XVideo
[  29.807] Initializing built-in extension XVideo-MotionCompensation
[  29.807] Initializing built-in extension XFree86-VidModeExtension
[  29.807] Initializing built-in extension XFree86-DGA
[  29.807] Initializing built-in extension XFree86-DRI
[  29.807] Initializing built-in extension DRI2
[  29.807] (II) LoadModule: "glx"
[  29.808] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  29.844] (II) Module glx: vendor="X.Org Foundation"
[  29.844]    compiled for 1.14.7, module version = 1.0.0
[  29.844]    ABI class: X.Org Server Extension, version 7.0
[  29.844] (==) AIGLX enabled
[  29.845] Loading extension GLX
[  29.845] (II) LoadModule: "intel"
[  29.882] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[  29.972] (II) Module intel: vendor="X.Org Foundation"
[  29.972]    compiled for 1.14.7, module version = 2.21.15
[  29.972]    Module class: X.Org Video Driver
[  29.972]    ABI class: X.Org Video Driver, version 14.1
[  29.972] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
   HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
   HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
   HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
   HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[  29.973] (--) Using syscons driver with X support (version 2.0)
[  29.973] (--) using VT number 9

[  33.261] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  33.262] (II) intel(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[  33.262] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[  33.262] (==) intel(0): RGB weight 888
[  33.262] (==) intel(0): Default visual is TrueColor
[  33.262] (--) intel(0): Integrated Graphics Chipset: Intel(R) 852GM/855GM
[  33.262] (**) intel(0): Relaxed fencing disabled
[  33.262] (**) intel(0): Wait on SwapBuffers? enabled
[  33.262] (**) intel(0): Triple buffering? enabled
[  33.262] (**) intel(0): Framebuffer tiled
[  33.262] (**) intel(0): Pixmaps tiled
[  33.262] (**) intel(0): 3D buffers tiled
[  33.262] (**) intel(0): SwapBuffers wait enabled
[  33.262] (==) intel(0): video overlay key set to 0x101fe
[  33.263] (II) intel(0): Output LVDS1 using monitor section LVDS1
[  33.263] (**) intel(0): Option "PreferredMode" "1280x800_65.28"
[  33.623] (II) intel(0): Output VGA1 using monitor section VGA1
[  33.623] (**) intel(0): Option "PreferredMode" "1280x800"
[  33.623] (**) intel(0): Option "LeftOf" "LVDS1"
[  33.636] (II) intel(0): EDID for output LVDS1
[  33.636] (II) intel(0): Manufacturer: AUO  Model: 2114  Serial#: 0
[  33.636] (II) intel(0): Year: 2005  Week: 1
[  33.636] (II) intel(0): EDID Version: 1.3
[  33.636] (II) intel(0): Digital Display Input
[  33.636] (II) intel(0): Max Image Size [cm]: horiz.: 26  vert.: 16
[  33.636] (II) intel(0): Gamma: 2.20
[  33.636] (II) intel(0): No DPMS capabilities specified
[  33.636] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[  33.636] (II) intel(0): First detailed timing is preferred mode
[  33.636] (II) intel(0): redX: 0.594 redY: 0.335  greenX: 0.328 greenY: 0.531
[  33.636] (II) intel(0): blueX: 0.152 blueY: 0.143  whiteX: 0.313 whiteY: 0.329
[  33.636] (II) intel(0): Manufacturer's mask: 0
[  33.636] (II) intel(0): Supported detailed timing:
[  33.636] (II) intel(0): clock: 75.0 MHz  Image Size:  261 x 163 mm
[  33.636] (II) intel(0): h_active: 1280  h_sync: 1301  h_sync_end 1333 h_blank_end 1408 h_border: 0
[  33.636] (II) intel(0): v_active: 800  v_sync: 804  v_sync_end 808 v_blanking: 816 v_border: 0
[  33.636] (II) intel(0): Unknown vendor-specific block 0
[  33.636] (II) intel(0):  W5382
[  33.636] (II) intel(0):  ÿýó黍o
[  33.636] (II) intel(0): EDID (in hex):
[  33.636] (II) intel(0):    00ffffffffffff0006af142100000000
[  33.636] (II) intel(0):    010f0103801a10780a30259855548827
[  33.636] (II) intel(0):    24505400000001010101010101010101
[  33.636] (II) intel(0):    0101010101014c1d0080502010301520
[  33.636] (II) intel(0):    440005a3100000190000000000000000
[  33.636] (II) intel(0):    00000000000000000001000000fe0057
[  33.636] (II) intel(0):    35333832004231323145570a000000fe
[  33.636] (II) intel(0):    00fffdf3e9bb8d6f0001010a2020005f
[  33.636] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
[  33.636] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
[  33.637] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
[  33.637] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
[  33.637] (II) intel(0): Printing probed modes for output LVDS1
[  33.637] (II) intel(0): Modeline "1280x800"x65.3  75.00  1280 1301 1333 1408  800 804 808 816 -hsync -vsync (53.3 kHz eP)
[  33.637] (II) intel(0): Modeline "1024x768"x60.0  65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[  33.637] (II) intel(0): Modeline "800x600"x60.3  40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[  33.637] (II) intel(0): Modeline "800x600"x56.2  36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  33.637] (II) intel(0): Modeline "640x480"x59.9  25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[  33.995] (II) intel(0): EDID for output VGA1
[  33.995] (II) intel(0): Output LVDS1 connected
[  33.995] (II) intel(0): Output VGA1 disconnected
[  33.995] (II) intel(0): Using user preference for initial modes
[  33.995] (II) intel(0): Output LVDS1 using initial mode 1280x800
[  33.995] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  33.995] (II) intel(0): Kernel page flipping support detected, enabling
[  33.995] (==) intel(0): DPI set to (96, 96)
[  33.995] (II) Loading sub module "fb"
[  33.995] (II) LoadModule: "fb"
[  33.995] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[  34.041] (II) Module fb: vendor="X.Org Foundation"
[  34.041]    compiled for 1.14.7, module version = 1.0.0
[  34.041]    ABI class: X.Org ANSI C Emulation, version 0.4
[  34.041] (II) Loading sub module "dri2"
[  34.041] (II) LoadModule: "dri2"
[  34.041] (II) Module "dri2" already built-in
[  34.041] (==) Depth 24 pixmap format is 32 bpp
[  34.099] (II) intel(0): [DRI2] Setup complete
[  34.099] (II) intel(0): [DRI2]  DRI driver: i915
[  34.099] (II) intel(0): Allocated new frame buffer 1280x800 stride 8192, tiled
[  34.132] (II) UXA(0): Driver registered support for the following operations:
[  34.132] (II)  solid
[  34.132] (II)  copy
[  34.132] (II)  composite (RENDER acceleration)
[  34.132] (II)  put_image
[  34.132] (II)  get_image
[  34.132] (==) intel(0): Backing store disabled
[  34.132] (==) intel(0): Silken mouse enabled
[  34.133] (II) intel(0): Initializing HW Cursor
[  34.133] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  34.142] (==) intel(0): DPMS enabled
[  34.142] (==) intel(0): Intel XvMC decoder disabled
[  34.142] (II) intel(0): Set up overlay video
[  34.142] (II) intel(0): direct rendering: DRI2 Enabled
[  34.150] (--) RandR disabled
[  34.409] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  34.409] (II) AIGLX: enabled GLX_INTEL_swap_event
[  34.409] (II) AIGLX: enabled GLX_ARB_create_context
[  34.410] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  34.410] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  34.410] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  34.410] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  34.410] (II) AIGLX: Loaded and initialized i915
[  34.410] (II) GLX: Initialized DRI2 GL provider for screen 0
[  34.411] (II) intel(0): Setting screen physical size to 338 x 211
[  35.037] (II) config/devd: probing input devices...
[  35.037] (II) config/devd: adding input device (null) (/dev/kbdmux)
[  35.037] (II) LoadModule: "kbd"
[  35.041] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[  35.046] (II) Module kbd: vendor="X.Org Foundation"
[  35.046]    compiled for 1.14.7, module version = 1.8.0
[  35.046]    Module class: X.Org XInput Driver
[  35.046]    ABI class: X.Org XInput driver, version 19.1
[  35.046] (II) Using input driver 'kbd' for 'kbdmux'
[  35.046] (**) kbdmux: always reports core events
[  35.046] (**) kbdmux: always reports core events
[  35.046] (**) Option "Protocol" "standard"
[  35.046] (**) Option "XkbRules" "base"
[  35.046] (**) Option "XkbModel" "pc105"
[  35.046] (**) Option "XkbLayout" "us"
[  35.046] (**) Option "config_info" "devd:kbdmux"
[  35.046] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[  35.064] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[  35.064] (II) config/devd: adding input device (null) (/dev/sysmouse)
[  35.064] (II) LoadModule: "mouse"
[  35.065] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[  35.080] (II) Module mouse: vendor="X.Org Foundation"
[  35.080]    compiled for 1.14.7, module version = 1.9.1
[  35.080]    Module class: X.Org XInput Driver
[  35.080]    ABI class: X.Org XInput driver, version 19.1
[  35.080] (II) Using input driver 'mouse' for 'sysmouse'
[  35.080] (**) sysmouse: always reports core events
[  35.080] (**) Option "Device" "/dev/sysmouse"
[  35.081] (==) sysmouse: Protocol: "Auto"
[  35.081] (**) sysmouse: always reports core events
[  35.081] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[  35.081] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[  35.081] (**) sysmouse: Buttons: 5
[  35.081] (**) Option "config_info" "devd:sysmouse"
[  35.081] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[  35.081] (**) sysmouse: (accel) keeping acceleration scheme 1
[  35.081] (**) sysmouse: (accel) acceleration profile 0
[  35.081] (**) sysmouse: (accel) acceleration factor: 2.000
[  35.081] (**) sysmouse: (accel) acceleration threshold: 4
[  35.081] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[  35.081] (II) sysmouse: SetupAuto: protocol is SysMouse
[  35.081] (II) config/devd: device /dev/psm0 already opened
[  35.399] (II) intel(0): EDID vendor "AUO", prod id 8468
[  35.399] (II) intel(0): Printing DDC gathered Modelines:
[  35.399] (II) intel(0): Modeline "1280x800"x0.0  75.00  1280 1301 1333 1408  800 804 808 816 -hsync -vsync (53.3 kHz eP)
[  35.753] (II) intel(0): EDID vendor "AUO", prod id 8468
[  35.753] (II) intel(0): Printing DDC gathered Modelines:
[  35.753] (II) intel(0): Modeline "1280x800"x0.0  75.00  1280 1301 1333 1408  800 804 808 816 -hsync -vsync (53.3 kHz eP)

This is the unexpected part:

Code:
[  35.037] (II) LoadModule: "kbd"
[  35.041] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[  35.046] (II) Module kbd: vendor="X.Org Foundation"
[  35.046]    compiled for 1.14.7, module version = 1.8.0
[  35.046]    Module class: X.Org XInput Driver
[  35.046]    ABI class: X.Org XInput driver, version 19.1
[  35.046] (II) Using input driver 'kbd' for 'kbdmux'
[  35.046] (**) kbdmux: always reports core events
[  35.046] (**) kbdmux: always reports core events
[  35.046] (**) Option "Protocol" "standard"
[  35.046] (**) Option "XkbRules" "base"
[  35.046] (**) Option "XkbModel" "pc105"
[  35.046] (**) Option "XkbLayout" "us"
[  35.046] (**) Option "config_info" "devd:kbdmux"
[  35.046] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[  35.064] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[  35.064] (II) config/devd: adding input device (null) (/dev/sysmouse)


Why is Xorg ignoring my config file?
 
Not sure why X ignores your config. However, many years ago I tried to succeed a similar thing and eventually ended up by adding setxkbmap(1) line to ~/.xinitrc. Works perfectly up till now.
 
master!

The 2 options works fine!

Option 1: first run setxkbmap latam in ~/.xinitrc

Code:
setxkbmap latam
exec /usr/local/bin/starte16

Option 2: (Best option) properly configure the file /etc/X11/xorg.conf

Code:
Section "InputClass"
   Identifier "KeyboardDefaults"
   Driver "keyboard"
   MatchIsKeyboard "on"
   Option "XkbLayout" "latam"
EndSection
 
Back
Top