Error Compiling Keymap Freebsd
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 keyboard initialization failed. this could be a missing or incorrect setup of xkeyboard-config. me the following error:(EE) Error compiling keymap (server-0) (EE) XKB: Couldn't compile keymap xvfb xkb failed to compile keymap (WW) Couldn't load XKB keymap, falling back to pre-XKB keymapxorg.conf# nvidia-xconfig: X configuration file generated by nvidia-xconfig# nvidia-xconfig: xkbcomp version 1.0 (buildmeister@builder3) Mon Oct 16 22:13:07 PDT 2006Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard1" "CoreKeyboard" InputDevice "mx518" error loading new keyboard description "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" FontPath "/usr/share/fonts/TTF" FontPath "/usr/share/fonts/Type1" FontPath "/usr/local/share/fonts"EndSectionSection "Module" Load "dbe" Load "extmod" Load "freetype"
Setxkbmap
Load "glx" Load "dri" Load "drm"EndSectionSection "InputDevice" Identifier "mx518" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "Buttons" "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
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 key become enabled again. So I pecked around at fixing it here and there, 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 https://bbs.archlinux.org/viewtopic.php?id=54015 (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 ""
Using first definition
With a little https://linuxcritic.wordpress.com/2009/10/19/xmodmap-and-xkb-couldnt-compile-keymap/ 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 work, but I can't. Both methods are still described in the xmodmap man page, and examples
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://unix.stackexchange.com/questions/152418/x-server-started-by-kdm-dies-during-startup-because-of-keymap-couldnt-be-loaded more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a http://forum.teamspeak.com/threads/97318-Linux-Keyboard-doesn-t-respond-since-3-0-14 question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer error compiling The best answers are voted up and rise to the top X server started by kdm dies during startup because of keymap couldn't be loaded up vote 1 down vote favorite I upgraded an OpenSUSE from 11.1 to 13.1, but after the upgrade, the X server refuses to start. If I execute kdm, the X server complains in /var/log/Xorg.0.log file that: (EE) Error compiling keymap (server-0) (EE) XKB: Couldn't compile error compiling keymap keymap XKB: Failed to compile keymap. Keyboard initialization failed. This could be missing or incorrect setup of xkeyboard-config. (EE) Fatal server error: (EE) Failed to activate core devices.(EE) None of the directories are full. Any ideas what might be wrong here? x11 x-server share|improve this question asked Aug 27 '14 at 12:39 Martin 21782970 Do you have xkb-data installed? That's the name of the package on Ubuntu - not sure it's the same on SUSE. –Volker Siegel Aug 27 '14 at 14:06 Do you have the file /usr/share/X11/xkb/compat/basic? –Volker Siegel Aug 27 '14 at 14:10 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote I too faced similar issue in angstrom distribution and found that xkbcomp program is missing. Installing it had fixed the issue. Try installing the xkbcomp program using the package manager (zypper) of OpenSuse. Reference for zypper: http://stackoverflow.com/questions/7158838/how-to-install-packages-from-command-line-on-suse share|improve this answer answered Oct 28 '14 at 18:05 SelvaKumaran P 111 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your
by CloudFlare Ray ID: 2efe668b954a2792