← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 478201] [NEW] GDM and subsequent sessions ignoring Xkb settings, startx from console works

 

Public bug reported:

Binary package hint: xorg

Hi,

after doing a clean install of Karmic on my new laptop, I noticed a very
annoying bug - all my Xkb settings are ignored. I normally use "us"
keymap as my primary, and "cz" with "qwerty" variant as secondary and
use both "shift" keys to switch between them. I tried using both
/etc/default/console-setup:

XKBMODEL="evdev"
XKBLAYOUT="us,cz"
XKBVARIANT=",qwerty"
XKBOPTIONS="grp:shift_toggle"

and XML file with appropriate keys in /etc/hal/fdi/policy (that worked
in Jaunty):

<match key="info.capabilites" contains="input.keys">
      <merge key="input.x11_options.XkbRules" type="string">base</merge>
      <merge key="input.x11_driver" type="string">kbd</merge>
      <merge key="input.x11_options.XkbModel" type="string">pc105</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
        <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
      </match>

      <merge key="input.x11_options.XkbLayout" type="string">us,cz</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:shift_toggle</merge>
      <merge key="input.x11_options.XkbVariant" type="string">,qwerty</merge>
    </match>

n get this behaviour if I use for example xfce4-xkb-plugin, getting it
to work with "plain X11" (for example in OpenBox sessions) seems to be
impossible.

I'm reasonably sure this isn't wrong configuration on my part, because when booting to a console session and then doing "startx", everything works as it should. If I however use a graphic login (GDM), they keyboard settings are busted - starting with the login screen (can't change keymap when entering my username). The keyboard settings get passed to X.org (they're shown in the xorg log), but ignored - doing "setxkbmap -print" results in:
dragon@yarlagash:~$ setxkbmap -print
 xkb_keymap {
 	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
 	xkb_types     { include "complete"	};
 	xkb_compat    { include "complete"	};
 	xkb_symbols   { include "pc+us+inet(evdev)"	};
 	xkb_geometry  { include "pc(pc104)"	};
 };

After setting it manualy with "setxkbmap -layout "us,cz" -variant
",qwerty" -option "grp:shift_toggle", it all works like I charm.

I guess I coud work around this by calling setxkbmap at start of every
session, but it doesn't sound like a "kosher" solution. I triggered this
bug with both Ubuntu and Xubuntu, however I'm not sure if it didn't
start manifesting only after "apt-get install xubuntu-desktop" in Ubuntu
- I did a clean install afterwards to make sure this isn't a side-effect
of the conversion.

I checked that this is not a ThinkPad-oddity bug by installing Slackware
13 on the same machine - it works there just fine (KDM as a login
manager there).

ProblemType: Bug
Architecture: amd64
Date: Sun Nov  8 11:01:02 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Xubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: LENOVO 74665HG
Package: xorg 1:7.4+3ubuntu7
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-14-generic root=UUID=5adb5048-4c48-4b3f-8f82-db6e9e16f820 ro quiet splash
ProcEnviron:
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu7
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel 2:2.9.0-1ubuntu2
 xserver-xorg-video-ati 1:6.12.99+git20090929.7968e1fb-0ubuntu1
SourcePackage: xorg
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
 (openbox:1957): Openbox-WARNING **: Openbox je nakonfigurován pro 4 ploch, ale současná session má 2. Konfigurace Openboxu bude změněna.
 (xfce4-terminal:2000): Terminal-WARNING **: Unable to load terminal preferences.
dmi.bios.date: 09/17/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 6DET60WW (3.10 )
dmi.board.name: 74665HG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6DET60WW(3.10):bd09/17/2009:svnLENOVO:pn74665HG:pvrThinkPadX200s:rvnLENOVO:rn74665HG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 74665HG
dmi.product.version: ThinkPad X200s
dmi.sys.vendor: LENOVO
fglrx: Not loaded
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro:             Ubuntu
 architecture:       x86_64kernel:             2.6.31-14-generic

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
GDM and subsequent sessions ignoring Xkb settings, startx from console works
https://bugs.launchpad.net/bugs/478201
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.



Follow ups

References