[CentOS] XKB: Failed to compile keymap

Sun Mar 10 04:52:25 UTC 2013
Yves Bellefeuille <yan at storm.ca>

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