Error Compiling Keymap Xorg
Contents |
12:41:00 bud Member From: swe Registered: 2006-07-12 Posts: 74 Couldn't load XKB keymap [SOLVED] HelloI recently noticed that my swedish keys refuse to work in X. Xorg log gives me the following error:(EE) Error compiling keymap (server-0) (EE) XKB: Couldn't compile keymap (WW)
Keyboard Initialization Failed. This Could Be A Missing Or Incorrect Setup Of Xkeyboard-config.
Couldn't load XKB keymap, falling back to pre-XKB keymapxorg.conf# nvidia-xconfig: X configuration file generated xvfb xkb failed to compile keymap by nvidia-xconfig# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon Oct 16 22:13:07 PDT 2006Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0"
Xkbcomp
0 0 InputDevice "Keyboard1" "CoreKeyboard" InputDevice "mx518" "CorePointer"EndSectionSection "Files" FontPath "/usr/share/fonts/100dpi:unscaled" FontPath "/usr/share/fonts/75dpi:unscaled" FontPath "/usr/share/fonts/artwiz-fonts" FontPath "/usr/share/fonts/cyrillic" FontPath "/usr/share/fonts/local" FontPath "/usr/share/fonts/misc:unscaled" error loading new keyboard description FontPath "/usr/share/fonts/TTF" FontPath "/usr/share/fonts/Type1" FontPath "/usr/local/share/fonts"EndSectionSection "Module" Load "dbe" Load "extmod" Load "freetype" Load "glx" Load "dri" Load "drm"EndSectionSection "InputDevice" Identifier "mx518" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "Buttons" setxkbmap "10" # adding this enables the extra buttons on the MX510 Option "ZAxisMapping" "4 5" # adding this maps wheel scrolling events to mouse buttons 9 & 10EndSectionSection "InputDevice" Identifier "Keyboard1" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "se" Option "XkbRules" "xorg" EndSectionSection "Monitor" Identifier "P90f"# HorizSync 30.0-83.0# VertRefresh 55.0-75.0 Option "DPMS" "true"EndSectionSection "Device" Identifier "nvidiakortet" Driver "radeon" VendorName "NVIDIA Corporation"EndSectionSection "DRI" Group "video" Mode 0666EndSection Section "Screen" Identifier "Screen0" Device "nvidiakortet" Monitor "p90f" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSectionEndSectionAlso alt keys refuse to work I have used the same xorg.conf in ages and never had any problems with this. I read in another thread about the problem and he got it to work after installing xorg-xkb-utils and xkbsel but that did not help me. Last edited by bud (2008-09-21 20:58:27) Hello, I am normal! Offline #2 2008-08-27 02:27:01 Evanlec Member From: NH, USA Registered: 2007-12-
window system - X11, aka X Window System. Certain additional packages need to be installed to enable keyboard support, hardware acceleration and more. Depending on the hardware more packages may need to be installed. They can be found in the xorg package that contains all dependencies however it is wasteful to install so many unused packages. Install X11 Install Xorg display server and xinitrc. sudo pacman -S xorg-server xorg-xinit Install keyboard dependencies. sudo pacman -S xf86-input-keyboard xorg-xkbcomp Failure to install keyboard packages the entire display manager will fail to start with the following error messages: https://bbs.archlinux.org/viewtopic.php?id=54015 (EE) Error compiling keymap (server-0) (EE) XKB: Couldn't compile keymap (EE) XKB: Failed to load keymap. Loading default keymap instead. (EE) XKB: Failed to compile keymap Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config. (EE)Fatal server error: (EE) Failed to activate core devices. (II) AIGLX: Suspending AIGLX clients for VT switch These errors can also occur if the the drive that http://dominicm.com/install-xorg-x11-window-system-on-arch-linux/ holds /root directory is full. Test X11 Install minimalistic desktop for testing. sudo pacman -S xorg-twm xorg-xclock xterm Start the test desktop. startx Several windows and a clock should appear. This means the drivers and display manager is working correctly. If all went well Install a Desktop Environment or run standalone graphical applications like Kodi or Steam. Related Command Line Home Server HTPC dom Related Posts Synergy Server on Arch Linux GPU Passthrough with QEMU on Arch Linux MusicBrainz VM Server under QEMU on Arch Linux ESP8266: Sming Framework on Arch Linux Install VFIO Kernel on Arch Linux Jackett on Arch Linux Leave a Comment Recently UpdatedInstall VFIO Kernel on Arch Linux Securely Wipe Disk with DD on Linux Replace Storage Drives with Rsync in Arch Linux ESP8266: Send & Receive Data Install uTorrent Server on Arch Linux Categories Arch Arduino Electronics ESP Linux Random Ubuntu Tags14.04 Automation Backup Cache Cloud Command Line Downloads Eclipse Error ESP8266 FTDI Games Home Automation Home Server HTPC IoT KVM Media Center Media Server Music Network Power Proxy Remote Access Security Self Host Sming Framework SSH Static IP Storage Torrent Transcode Usenet Virtualization Web Web Host Wireless
when I upgraded my distribution, several keys went wonky on me and ceased functioning according to my wishes. It was a minor inconvenience to have things like the Caps Lock https://linuxcritic.wordpress.com/2009/10/19/xmodmap-and-xkb-couldnt-compile-keymap/ key become enabled again. So I pecked around at fixing it here and there, https://lists.centos.org/pipermail/centos/2013-March/133062.html but never really put in much thought or effort until today. I remap my keys with the /etc/X11/xinit/.Xmodmap (aka ~/.Xmodmap) file. The problem was my .Xmodmap was borking when X started, so no remappings were taking place. (If one part of .Xmodmap fails, they all fail.) In my /var/log/Xorg.0.log I found this:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
And in the output from X - apparently from the keymap compiler (xkbcomp) - were repeated warnings/errors like this:
Warning:Duplicate shape name ""
Using last definition
Error:Section defined without a name
Definition ignored
Warning:Multiple doodads named ""
error compiling keymap Using first definition
With a little googling I came across this thread which gave some insight, but was of little help in fixing the problem. This Arch Linux forum thread has several people using various remapping methods reporting the same error. The thread is marked "Solved," however, the fixes suggested had no effect on my situation. Daedalus' suggestion of using the "keyboard" driver did manage to provide me with more helpful error messages that pointed out line numbers. This indicated my Caps_Lock remapping was the culprit. I quit searching on the error messages and began learning more about xmodmap. I didn't read anything of much use, but I did come across some examples of xmodmap commands I had never used before. I have always used the ‘clear' and ‘keycode' commands to disable Caps_Lock and assign different functions to keys, like this:
clear Lock
keycode 66 = Tab
What I found was the use of the ‘remove' and ‘keysym' commands to do the same thing:
remove Lock = Caps_Lock
keysym Caps_Lock = Tab
I tried those, and voila! Problem solved. I wish I could explain why the old method ceased to
by: [ date ] [ thread ] [ subject ] [ author ] I had to stop using the fglrx video driver from ELRepo, which isn't supported with CentOS 6.4. Now I can't start X; I get the following: > (II) [KMS] Kernel modesetting enabled. > The XKEYBOARD keymap compiler (xkbcomp) reports: > Error: Cannot open "/tmp/server-0.xkm" to write keyboard > description > Exiting > The XKEYBOARD keymap compiler (xkbcomp) reports: > Error: Cannot open "/tmp/server-0.xkm" to write keyboard > description > Exiting > XKB: Failed to compile keymap > Keyboard initialization failed. This could be a missing or incorrect > setup of xkeyboard-config. > > Fatal server error: > Failed to activate core devices. > (EE) > Please consult the CentOS support > at http://wiki.centos.org/Documentation > for help. > (EE) Please also check the log file at "/var/log/Xorg.0.log" for > additional information. > (EE) > Server terminated with error (1). Closing log file. /var/log/Xorg.0.log doesn't add much; it states: > [ 345.863] (EE) Error compiling keymap (server-0) > [ 345.863] (EE) XKB: Couldn't compile keymap > [ 345.863] (EE) XKB: Failed to load keymap. Loading default keymap > instead. > [ 345.884] (EE) Error compiling keymap (server-0) > [ 345.884] (EE) XKB: Couldn't compile keymap > [ 345.884] XKB: Failed to compile keymap > [ 345.884] Keyboard initialization failed. This could be a missing > or incorrect setup of xkeyboard-config. > [ 345.884] > Fatal server error: > [ 345.884] Failed to activate core devices. > [ 345.884] (EE) > Please consult the CentOS support > at http://wiki.centos.org/Documentation > for help. > [ 345.884] (EE) Please also check the log file at > "/var/log /Xorg.0.log" > for additional information. > [ 345.884] (EE) > [ 345.884] (II) AIGLX: Suspending AIGLX clients for VT switch > [ 345.897] Server terminated with error (1). Closing log file. How can I solve this? Thanks. Yves Bellefeuille Previous message: [CentOS] lost connection during yum update Next message: [CentOS] [Solved]XKB: Failed to compile keymap Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the CentOS mailing list