Error activating XKB configuration

Bug #538474 reported by toobuntu
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running Lucid in virtualbox-ose on a macbook pro 5,3 host. Keyboard model is set to MacBook.MacBook Pro. Tried to make the Option_R/Alt_R key function as Alt_R instead of ISO_Level3_Shift in System>Preferences>Keyboard>Layouts>Options. It did not take, and the following pop-up appeared:

Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10705000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "us", "mac", ""
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "mac", ""

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [us mac]
 options = [lv3 lv3:ralt_alt]
 model = macbook78

$ lsb_release -dr
Description: Ubuntu lucid (development branch)
Release: 10.04
---
Architecture: amd64
DistroRelease: Ubuntu 11.04
DkmsStatus: virtualbox-ose-guest, 3.2.10, 2.6.35-22-generic, x86_64: installed
EcryptfsInUse: Yes
Lsusb:
 Bus 002 Device 002: ID 80ee:0021
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: innotek GmbH VirtualBox
Package: xserver-xorg-input-keyboard (not installed)
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=/dev/mapper/vg--root-lv--root_crypt ro splash quiet
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Tags: natty natty
Uname: Linux 2.6.35-22-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 codename: natty
 architecture: x86_64
 kernel: 2.6.35-22-generic

Revision history for this message
toobuntu (toobuntu) wrote :

I suppose I should add:
$ cat /etc/default/locale
LANG="en_US.UTF-8"

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello
Is this problem present with the latest updated Karmic's, Lucid's or Maverick's packages?
Thanks in advance
Fabio

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
toobuntu (toobuntu) wrote :

Sure is. I'm now running natty and tested it there. Using the mini.iso to install, I selected Apple, USA Macintosh as my keyboard. There were no other Apple options listed in the installer. Then upgraded to natty. System>Preferences>Keyboard however shows a graphic of USA Macintosh to be the Apple extended keyboard, so I attempted to change it to Keyboard Model: Macbook/Macbook Pro and got the same error dialog:

Error activating XKB configuration.
It can happen under various circumstances:
 • a bug in libxklavier library
 • a bug in X server (xkbcomp, xmodmap utilities)
 • X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10900000

If you report this situation as a bug, please include:
 • The result of xprop -root | grep XKB
 • The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

Here's the output:
$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "us", "mac", "lv3:ralt_switch"
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "mac", "lv3:ralt_switch"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 options = []
 model = macbook78

$ apt-cache policy libxklavier16
libxklavier16:
  Installed: 5.0-2
  Candidate: 5.0-2
  Version table:
 *** 5.0-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        400 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy xkbcomp
N: Unable to locate package xkbcomp
$ dpkg -S xkbcomp
x11-xkb-utils: /usr/share/man/man1/xkbcomp.1.gz
x11-xkb-utils: /usr/bin/xkbcomp
$ apt-cache policy x11-xkb-utils
x11-xkb-utils:
  Installed: 7.5+5
  Candidate: 7.5+5
  Version table:
 *** 7.5+5 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        400 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy xmodmap
xmodmap:
  Installed: (none)
  Candidate: (none)
  Version table:

Revision history for this message
toobuntu (toobuntu) wrote :

$ apt-cache show xmodmap
N: Can't select versions from package 'xmodmap' as it purely virtual
N: No packages found

$ apt-cache search xmodmap
x11-xserver-utils - X server utilities
python-mmkeys - Multimedia key support as a PyGTK object
xkeycaps - manipulate X11 keymaps (for xmodmap) graphically

$ apt-cache show x11-xserver-utils | grep xmodmap
Replaces: iceauth, sessreg, xbase-clients (<< 1:7.3), xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xutils (<< 1:7.2), xvidtune
Conflicts: iceauth, sessreg, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
  - xmodmap, a utility for modifying keymaps and pointer button mappings in X;

$ apt-cache show x11-xserver-utils | tail -n 28
Description: X server utilities
 An X client is a program that interfaces with an X server (almost always via
 the X libraries), and thus with some input and output hardware like a
 graphics card, monitor, keyboard, and pointing device (such as a mouse).
 .
 This package provides a miscellaneous assortment of X Server utilities
 that ship with the X Window System, including:
  - iceauth, a tool for manipulating ICE protocol authorization records;
  - rgb;
  - sessreg, a simple program for managing utmp/wtmp entries;
  - xcmsdb, a device color characteristic utility for the X Color Management
    System;
  - xgamma, a tool for querying and setting a monitor's gamma correction;
  - xhost, a very dangerous program that you should never use;
  - xmodmap, a utility for modifying keymaps and pointer button mappings in X;
  - xrandr, a command-line interface to the RandR extension;
  - xrdb, a tool to manage the X server resource database;
  - xrefresh, a tool that forces a redraw of the X screen;
  - xset, a tool for setting miscellaneous X server parameters;
  - xsetmode and xsetpointer, tools for handling X Input devices;
  - xsetroot, a tool for tailoring the appearance of the root window;
  - xstdcmap, a utility to selectively define standard colormap properties;
  - xvidtune, a tool for customizing X server modelines for your monitor.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m
Task: ubuntu-desktop, ubuntu-uec-live, kubuntu-desktop, kubuntu-mobile, kubuntu-netbook, edubuntu-desktop, edubuntu-uec-live, xubuntu-desktop, mythbuntu-backend-master, mythbuntu-backend-slave, mythbuntu-desktop, mythbuntu-frontend, ubuntu-netbook

$ apt-cache policy x11-xserver-utils
x11-xserver-utils:
  Installed: 7.5+2ubuntu1
  Candidate: 7.5+2ubuntu1
  Version table:
 *** 7.5+2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        400 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status

$ lsb_release -dr
Description: Ubuntu natty (development branch)
Release: 11.04

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello toobuntu
can you please run in a terminal
apport-collect -p xserver-xorg-input-keyboard 538474
Thanks
Fabio

affects: ubuntu → xserver-xorg-input-keyboard (Ubuntu)
Changed in xserver-xorg-input-keyboard (Ubuntu):
status: Incomplete → New
Revision history for this message
toobuntu (toobuntu) wrote : BootDmesg.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
toobuntu (toobuntu) wrote : CurrentDmesg.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : GdmLog.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : GdmLog1.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : GdmLog2.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : Lspci.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : PciDisplay.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : ProcInterrupts.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : ProcModules.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : RelatedPackageVersions.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : UdevDb.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : UdevLog.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : XorgLog.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : XorgLogOld.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : Xrandr.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : peripherals.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : setxkbmap.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : xdpyinfo.txt

apport information

Revision history for this message
toobuntu (toobuntu) wrote : xkbcomp.txt

apport information

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello toobuntu
thanks for supporting Ubuntu.
Fabio

Bryce Harrington (bryce)
tags: added: lucid
Revision history for this message
Jan Beilicke (jotbe) wrote :

Confirming the bug on Natty when trying to change layout from default pc105 to "MacBook/MacBook Pro (Intl.)":

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "de", "mac_nodeadkeys", ""
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "de", "mac_nodeadkeys", ""

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 model = macbook79
 layouts = []
 options = []

Note: Layout "Apple Laptop" works.

Changed in xserver-xorg-input-keyboard (Ubuntu):
status: New → Confirmed
tags: added: natty
tags: added: maverick
Revision history for this message
Marius Gravdal (marius-dot42) wrote :

I've had this exact problem, running
"setxkbmap -model macbook79 -layout no"
from the command worked though, and the keyboard is now working as expected.

Revision history for this message
Bryce Harrington (bryce) wrote :

This was filed against the wrong driver package. -keyboard is no longer maintained; keyboards are managed via the -evdev driver now. However this is a generic error message and doesn't indicate a driver problem (at least, not necessarily). Bumping to xkb-data for further diagnosis.

affects: xserver-xorg-input-keyboard (Ubuntu) → xkeyboard-config (Ubuntu)
Changed in xkeyboard-config (Ubuntu):
status: Confirmed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xkeyboard-config (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.