I've been hitting this problem for several weeks and tearing my hair
over it. (Basically, I'm setting up a semi-automated install environment
for rolling out about 250 Ubuntu 14.04 workstations - so fiddling about
with GUI settings on each machine wasn't an option.)

The variant of the problem which I experienced was that although
/etc/default/keyboard specifies gb layout, all the desktops except Unity
defaulted to US layout, and "ibus engine" reported "xkb:us::eng".

In my case, the following steps appear to have fixed the problem:

1) I edited
/usr/share/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml, and set
the value for "use-system-keyboard-layout" to "true". I then ran "glib-
compile-schemas /usr/share/glib-2.0/schemas". After this, all the
desktops defaulted to GB layout - but "ibus engine" still reported
"xkb:us::eng".

2) I had noticed in passing that when I ran "ibus list-engine", there
wasn't a setting for "xkb:gb::eng" -  only "xkb:gb:extd:eng", which
didn't quite match the definition in /etc/default/keyboard (there was
also one for the dvorak keyboard.)   So I tried editing
/usr/share/ibus/component/simple.xml, duplicating the engine definition
for "xkb:gb:extd:eng" as "xkb:gb::eng", and then running "ibus restart".
After this, "ibus engine" reported that it was using "xkb:gb::eng".

I've spent so long on this and run down so many false trails that I
don't fully believe it yet - I'll reinstall the test box from scratch
and apply the above again a few more times, then I'll report back.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1240198

Title:
  [SRU]Wrong keyboard layout active after booting into desktop

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1240198/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to