No keyboard previews

Bug #58083 reported by Micah Cowan
78
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
Ubuntu
Invalid
Undecided
Unassigned
control-center (Ubuntu)
Invalid
Undecided
Ubuntu Desktop Bugs
xorg (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

In "System" -> "Preferences" -> "Keyboard Preferences", "Layout" tab, "+Add" button (brings up the dialog)... the frame labeled "Preview" never shows the currently selected keyboard. Everytime a keyboard is selected, stderr gets "** (gnome-keyboard-properties:8918): CRITICAL **: XkbGetKeyboard failed to get keyboard from the server!"

Revision history for this message
In , Daniel Stone (daniels) wrote :

if you only revert the change to XkbWriteXKBKeymapForNames in xkbfmisc.c, does
it improve? obviously, it works fine for me on Xorg; what you're seeing is a
failure to build the keymap at all.

Revision history for this message
In , Dan Winship (danw-gnome) wrote :

> if you only revert the change to XkbWriteXKBKeymapForNames in xkbfmisc.c, does
> it improve?

No, reverting just rev 1.9 doesn't help, I have to revert both 1.9 and 1.8.

> obviously, it works fine for me on Xorg;

really? Hm... David, are there any xkb-related changes from Xorg to Xgl?

Revision history for this message
In , Sylvain BERTRAND (sylvain-bertrand) wrote :

I have the same issue, with plain(err... gentoo) X.org 7.1 with gnome 2.14.x.
server-0.xkm is corrupted then fails to be reloaded when generating the response
to xkGetKbdByName request.

Revision history for this message
In , Sylvain BERTRAND (sylvain-bertrand) wrote :

Created an attachment (id=5836)
xkm file that xkbcomp is unable to load for kbGetKbdByName response

Revision history for this message
In , Davidr-novell (davidr-novell) wrote :

(In reply to comment #2)
> really? Hm... David, are there any xkb-related changes from Xorg to Xgl?
>

Initialization code in ddx is probably a bit different but other than that it
should be the same xkb code.

Revision history for this message
In , Daniel Stone (daniels) wrote :

(In reply to comment #2)
> > if you only revert the change to XkbWriteXKBKeymapForNames in xkbfmisc.c, does
> > it improve?
>
> No, reverting just rev 1.9 doesn't help, I have to revert both 1.9 and 1.8.

okay, so it's just XkbWriteXKBKeymapForNames? this could be fun. i'll have to
get an Xgl setup going, but this won't happen until after the weekend, probably
(travel hilarity).

Revision history for this message
In , Matthias Clasen (mclasen) wrote :

FWIW, I'm seeing the same issue

** (gnome-keyboard-properties:3166): CRITICAL **: XkbGetKeyboard failed to get
keyboard from the server!

on the rawhide X server, no Xgl involved.

Revision history for this message
In , Simos Xenitellis  (simosx) wrote :

(In reply to comment #7)
> FWIW, I'm seeing the same issue
>
> ** (gnome-keyboard-properties:3166): CRITICAL **: XkbGetKeyboard failed to get
> keyboard from the server!
>
> on the rawhide X server, no Xgl involved.

AFAIK, noone maintains the xkbdata package which is the default in Xorg.

You would need to upgrade to xkeyboard-config,
http://www.freedesktop.org/wiki/Software_2fXKeyboardConfig

Revision history for this message
In , Dan Winship (danw-gnome) wrote :

We're using xkeyboard-config 0.7 in SUSE. It doesn't look like there were any
changes in 0.8 that would affect this...

Revision history for this message
In , Ben-bnc (ben-bnc) wrote :

I am seeing a similar issue here. I have a trimmend down compile of Xorg 7.1,
which reports this at startup:
    xkb_keycodes { include "xfree86+aliases(qwerty)" };
    xkb_types { include "complete" };
    xkb_compatibility { include "complete" };
    xkb_symbols { include "pc/pc(pc104)+pc/us" };
    xkb_geometry { include "pc(pc104)" };

But when I use numlockx to turn on NumLock, I get:
    xkb_types { include "%" };
    xkb_compatibility { include "%" };
    xkb_symbols { include "%" };
    xkb_geometry { include "%" };
(EE) Error loading keymap /usr/share/X11/xkb/compiled/server-0.xkm

numlockx uses XkbLockModifiers() to turn NumLock on or off.

I am not completely sure this is the same bug, but am reluctant to file a new
bug that might be marked as a duplicate of this bug.

Revision history for this message
In , Kem (kem) wrote :

We are seeing the same issue in FC6, and I've tracked down the problem to the
0e88cefbfecbff0c7dd606ce0caca840f45cbc0d and
7c44bb8c49656133eae675377edea55322d254ca commits.

I've got a fix for this locally, but my patch needs a bit of cleanup. I'll
check it in once I finish my testing. FYI, what I did was to revert those two
commits but keep the parts that removed the unused !XKB_IN_SERVER and
HAVE_CONFIG_H code paths.

Revision history for this message
In , Kem (kem) wrote :

Should be fixed in git now. If you still see problems with the latest code,
please reopen the bug.

Revision history for this message
Micah Cowan (micahcowan) wrote :

In "System" -> "Preferences" -> "Keyboard Preferences", "Layout" tab, "+Add" button (brings up the dialog)... the frame labeled "Preview" never shows the currently selected keyboard. Everytime a keyboard is selected, stderr gets "** (gnome-keyboard-properties:8918): CRITICAL **: XkbGetKeyboard failed to get keyboard from the server!"

Changed in control-center:
status: Unconfirmed → Confirmed
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

It is not a control-center bug, it is something broken in xlib, XkbGetKeyboard returns NULL

Revision history for this message
didier (did447-deactivatedaccount) wrote :

Right and it's fixed upstream

Changed in control-center:
status: Confirmed → Rejected
Changed in xorg:
status: Unconfirmed → Confirmed
Changed in xorg-server:
status: Unknown → Fix Released
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

If you don't mind, could you please give a hint where was breakage - because people keep asking me (since I am g-k-p maintainer) and I would like to have an answer...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you Sergey and didier

Changed in xorg:
importance: Untriaged → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

Patch used by the current fedora package. The upstream commit corresponding seems to be http://lists.freedesktop.org/archives/xorg-commit/2006-July/008488.html

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Is this patch going to be applied in eft? The huge empty dialog in gnome-keyboard-properties looks very ugly.

Revision history for this message
Sebastien Bacher (seb128) wrote :

no, edgy is stable now and that patch is not trivial so probably not a candidate for a stable update :/

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

But this is a clear bug and regression! g-k-p is broken as it is. Same about g-k-i.

Revision history for this message
Corsaire01 (stephane-tranchemer) wrote :

Same here with Ubuntu 6.10 final, I get the list of the available keyboards but no image to show the key placements.

system is 6.10 x86_64, upgraded from a 6.06 with the 'gksu' command, worked on 6.06, forced to reinstall the gnome-control-center package to be sure, same result.

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

It is really ugly - especally two sets of buttons, you see?

Revision history for this message
Gert Kulyk (gkulyk) wrote :

I've build a fixed version for my own use (using a slightly-modified, that is a one that also changes Makefile.in, fedora patch), a .diff.gz file attached for people who do want to play around with it.

Sebastien: Please tell me, if such a changed version could enter edgy-updates (after a while in edgy-proposed). The patch applies cleanly, no problems encountered (although the source tells that it was build today, I'm using a patched version for a few days now). The bug is really annoying.

Regards,

Gert

Revision history for this message
Gert Kulyk (gkulyk) wrote :

PS: Here's a screenshot showing the keyboard-layout with the modified package :-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

not a control-center bug

Changed in control-center:
assignee: nobody → desktop-bugs
status: Unconfirmed → Rejected
Revision history for this message
Sebastien Bacher (seb128) wrote :

Sergey, it's clear that the dialog is ugly and bugged without that patch, still I don't know org enough to be wanting to push that patch to a stable serie. If somebody wants to do that, feel free

Gert, you can read https://wiki.ubuntu.com/StableReleaseUpdates about the procedure to get that update to edgy

Revision history for this message
TomasHnyk (sup) wrote :

I just tried Herd 1 (solely because of this because I wanted to make a keyboard screenshot) and the bug is still present. Is it supposed to be like that?

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

It goes beyound Ubuntu not showing keyboard previews and looking ugly. There are other applications that depend on XkbGetKeyboard. In my case, it's Superkb. This application doesn't run at all in Ubuntu 6.10 because of the bug. It worked in Ubuntu 6.06 LTS.

I kindly ask for this bugfix to get pushed to mainstream.

Revision history for this message
Martin Pool (mbp) wrote :

Just confirming this is still broken in edgy.

Revision history for this message
Áron Sisak (asisak) wrote :

Even worse, seems to be still broken in feisty as well.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Fixed with that upload:

 xorg-server (1:1.1.1-0ubuntu13) feisty; urgency=low
 .
   * 19_revert_xkb_change_breaking_XkbGetKeyboard.patch:
     - patch from fedora (with extra Makefile.in change), revert change that
       broke XkbGetKeyboard() (Ubuntu: #58083)
   * 37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff:
     - upstream patch copied from the Debian package, fix blue screen with
       compiz on ppc (Ubuntu: #58373)

Changed in xorg:
status: Confirmed → Fix Released
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Any chance to get it in edgy? Feisty is a bit long way to go till release...

Revision history for this message
Sebastien Bacher (seb128) wrote :

The patch is not trivial and I'm not an xorg hacker, I'm not comfortable to push it to stable. Maybe after some testing. Sergey, I can build a non-official deb for edgy if you want though, it would permit you to get a working version to look at the gnome-control-center bugs, what architecture do you use?

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

I would love debs for x86 (not 64) and ppc, if possible. Thanks a bunch.
But really, it would make sense to put it into testing, I think edgy users would love to get this one fixed as well.

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

We would gladly test it in Edgy and report any weirdness. I'm interested in sending the patch to stable.

(Yeah, it's not trivial, but it is a "revert to a previous known-to-be-working state" patch.)

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Sebastien, is there any progress with debs for Edgy? I have so many bugs and patches in gnome bugzilla regarding this preview...;)

Revision history for this message
VladAtNYC (vladatnyc) wrote :

Does anyone know if there is a package that i can install that will fix this issue, it is rather annoying and i really need to use the keyboard layout view.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Packages for edgy i386 are available on http://people.ubuntu.com/~seb128/xorg-server-edgy-update, you can download them and install with "sudo dpkg -i *.deb"

Revision history for this message
TomasHnyk (sup) wrote :

thanks, works like a charm (I will report if anything breaks in the future, but after one hour of running all seems to be just fine)

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Sebastien, thanks, this is really great. And it works. Would you please be able to build the same stuff for ppc please?

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

Sebastien, it works perfectly. Thanks a lot. I'll post any breakage.

Revision history for this message
ricardisimo (ricardisimo) wrote :

Sorry for the nũb question, but is it "sudo apt-get [each package listed there]" followed by "sudo dpkg -i [one-by-one]"? Or am I just finding one that is appropriate for my system? Thanks so much in advance. You guys do great work.

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

You should just download the packages you have installed (you might check with dpkg -l) and issue sudo dpkg -i *.deb.

Revision history for this message
ricardisimo (ricardisimo) wrote :

Thank you Octavio. This is the closest thing I have listed: ii xserver-xorg-i 1.1.0-0ubuntu1 X.Org X server -- keyboard input driver
Is it safe to assume I'm going with "core" rather than "dev"? I'm on Edgy, if that helps at all. Thanks again.

Revision history for this message
Tony Lewis (tonylewis) wrote :

There's another solution available, with a less drastic fix: http://ubuntuforums.org/showthread.php?t=309424

In short, this distilled down to removing the existing /usr/share/X11/xkb (e.g. renaming it to .xkb-broken or something) and linking /usr/share/X11/xkb to /etc/X11/xkb:

    cd /usr/share/X11
    sudo mv xkb .xkb-broken
    sudo ln -s ../../../etc/X11/xkb/

Further investigation seems to indicate that the xkb-data-legacy package will provide everything we need, but that package has dependencies that will regress your system badly.

But I see the fact that we can't fix it in the distro proper as a major setback. Is it considered low risk enough to include something like this symlink in the xkb-data package, and thus fix it within the distro?

That sounds better to me than Seb having to track these packages, and users having to manually install them for the life of Edgy.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Tony, please don't advice people to do manual changes like that, that sort of hacks can break upgrades months later and then people are confused and blame the distribution for things they broke themself and not good for anybody.

That can be fixed and is fixed to feisty. Preview from keymaps is a small feature why people make so much noise about it? The patch is non trivial and we have no xorg maintainer at the moment which explains why nobody is wanting to take the responsability to do that change on a stable distribution

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

This is really interesting though. That hack implies that xkb-data-legacy provides everything X need to work properly. Does this mean xkeyboard-config package is broken somehow or what?
(and I respectfully disagree with Sebastian - it is still 2 months till feisty, and this bug is visible to _everyone_ trying to add new layout to the keyboard configuration).

Revision history for this message
Tony Lewis (tonylewis) wrote :

Sebastian, it's more than just "preview from keymaps", whatever that is. After upgrading to Edgy, I lost my multimedia keys. I went to reassign my keyboard mapping from the pull down in the Kubuntu Systems Settings, and there were *no* keyboards to choose from, therefore no graphical way I could see to get my multimedia keys back.

Without being precious about it, IMO, this is a significant inconvenience.

If this is affecting everyone, then the small change to the packages as above might be worth it. If it's just me or a subset of people, then I don't understand what went wrong in my upgrade process (OK, so I didn't use update-manager)

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

> Preview from keymaps is a small feature why people make so much noise about it?

It goes beyound Ubuntu not showing keyboard previews and looking ugly. -- I can't use or develop my graphical keyboard launcher, so I had to change the way I launch applications because of this bug.

BTW, I have seen *no* negative side-effects from the packages you provided on you link above, two computers here have it installed, both are x86.

Revision history for this message
Octavio Alvarez (alvarezp) wrote :

Sebastien, now that Ubuntu released a new security fix numbered 0ubuntu12.2, the packages you kindly provided for testing are constantly being targeted for upgrading by Update Manager. The ones from stable are *not* fixed yet.

I can affirm I have had no issues whatsoever during all this time, using the packages you provided.

Revision history for this message
Sebastien Bacher (seb128) wrote :

edgy is not a LTS version and new stable will be available next will, it's not likely we will apply the change to edgy now

Revision history for this message
Daniel Saunders (daniel-saunders) wrote :

This has broken for me since upgrading from 7.10 to 8.04.

Revision history for this message
Sebastien Bacher (seb128) wrote :

don't comment on a closed bug only because you have a similar issue

Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xorg-server:
importance: Unknown → Medium
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.