Cowardly resets the keyboard layout to US in background

Bug #1441127 reported by Eduard Bloch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ibus (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 14.04.2 LTS
Release: 14.04

im-config (0.24-1ubuntu4.1)
language-selector-selector-gnome (0.129.3)

Scenario:
I have an XUbuntu LTS 12 installation, upgraded to the latest 14.xx LTS. I don't longer use xfce but icewm.

Repro steps and what happened so far:

lightdm starts. I choose icewm-session from session selector and login. My keyboard layout is suddenly US. I open a terminal and run "setxkbmap de nodeadkeys" and it works and is effective, so the xkb support must be OK.

Checking Xorg.0.log and getting confused. The reported kbd configuration there is just fine.
Dumped xorg.conf with X -configure, adapted the layout, restarted lightdm (and X), problem persists. Removed custom xorg.conf again, restarted X, still the same game.

I stop lightdm. Run startx /usr/bin/icewm-session from the console. And the keyboard config is the normal one! (consistent with Xorg.0.log)

So I decide to work around that problem for now, I edit .icewm/startup and add the setkxbmap command there (the script is fine, it runs other stuff already). I re-login from lightdm and I still get the same behavior and above.

Getting confused... I start to type a bug report against xorg... before sending that, I decide to add "sleep 1" to the mentioned startup script before the setxkbmap call. Et voila, problem is gone. How? No idea yet.

I decide to test make cross-checks, and use xfce-session and the problem does not appear. However, xfce session has really slow startup (I remember why I stopped using this thing) and I also brings its own keyboard configuration stuff so this will simply cover up the problem. I make another test with wmaker and the problem is reproducible there just like with icewm.

I start to suspect some crazy package that installed some Xsession.d extension so I check Xsession.d directory and I remove the packages that I don't need, one by one. The solution to my problem was the removal of im-config:

$ sudo apt-get --purge remove im-config
...
Entfernen von language-selector-gnome (0.129.3) ...
Entfernen von im-config (0.24-1ubuntu4.1) ...

So, whatever evil stuff you are doing there, it seems to break the keyboard layout on certain systems, silently and in background.

Revision history for this message
Aron Xu (happyaron) wrote :

im-config does not deal with keyboard layout, reassigning to more relevant component.

affects: im-config (Ubuntu) → ibus (Ubuntu)
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.