Not possible to switch keyboard layout through gnome-shell

Bug #1385844 reported by Jens Georg
104
This bug affects 22 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Unknown
Low
Ubuntu GNOME
Fix Released
Low
Unassigned

Bug Description

I have de + sv configured, both in nodeadkeys variant. On 3.12 it was possible to switch the keyboard layout using Super-Shift or the menu on top-right. Not this doesn't work anzmore.

A similar issue is also reported upstream: https://bugzilla.gnome.org/show_bug.cgi?id=739157

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: gnome-shell 3.14.1-0ubuntu1~utopic3 [origin: LP-PPA-gnome3-team-gnome3-staging]
ProcVersionSignature: Ubuntu 3.16.0-23.31-generic 3.16.4
Uname: Linux 3.16.0-23-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Oct 26 11:41:45 2014
DisplayManager: gdm
GsettingsChanges:
 b'org.gnome.shell.calendar' b'show-weekdate' b'true'
 b'org.gnome.desktop.interface' b'menus-have-icons' b'true'
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.interface' b'monospace-font-name' b"'Monospace 11'"
 b'org.gnome.desktop.interface' b'clock-show-date' b'true'
InstallationDate: Installed on 2010-07-01 (1577 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to utopic on 2014-10-25 (0 days ago)

Revision history for this message
Jens Georg (yg-jensge) wrote :
Tim Lunn (darkxst)
Changed in ubuntu-gnome:
milestone: none → utopic-ppa
Changed in gnome-shell:
importance: Unknown → Low
status: Unknown → New
Changed in gnome-shell:
status: New → Incomplete
Revision history for this message
arturtr (arturtr) wrote :

I have the same problem after upgrade to GNOME 3.14 via staging ppa

Revision history for this message
arturtr (arturtr) wrote :

Found this answer for problem http://askubuntu.com/a/544194/76685

Revision history for this message
Jens Georg (yg-jensge) wrote :

I do have ibus-m17n installed and it does not help.

Revision history for this message
Behrooz Nobakht (nobeh) wrote :

Same here. Having `ibus-m17n` does not resolve the issue.

Revision history for this message
Dima (hummerd) wrote :

Jens and Behrooz, have you installed m17n languages, after installing ibus-m17n. I mean in layout settings you have to add your native language with suffix (kbd (m17n)). For me it was "Russian (kbd (m17n))".

Revision history for this message
Behrooz Nobakht (nobeh) wrote :

@Dima, thanks for the hint. Here is how it resulted on my installation Ubuntu 14.10 + GNOME Shell 3.14:

* sudo apt-get install ibus-m17n
* Go to GNOME Settings > Region & Languages (Input Sources)
* Add Persian (isiri (m17n))
* Use Super + / as the source changer

The observations:

* All GNOME applications (e.g. gedit) work as expected with the new input source, however, the layout is different
* All non-GNOME applications (e.g. Firefox) still have the same issue

Revision history for this message
Jens Georg (yg-jensge) wrote :

And on top of that that's for languages that have complex scripts. I just want to switch between two latin keyboard layouts. (de+sv)

Revision history for this message
aurelijusr (aurelijus-rozenas) wrote :

Same here: Ubuntu 14.10, Gnome Shell 3.14 (via staging ppa)
Have two languages: english and lithuanian. Installing ibus-m17n did not change anything because there is no additional layout for lithuanian.
Tried adding russian language as Dima suggested - does not work.
Login screen - does not work.
Downgraded to 3.12 version with ppa-purge - _works_ as it should. Updated again to 3.14 - does not work.
Changed shortcut keys - does not matter, does not work.

Another interesting thing: if I keep pressing my change layout button (scroll lock) and keep pressing symbols on keyboard sometimes I get symbol from other layout.

Revision history for this message
Jens Georg (yg-jensge) wrote :

So, I checked with

a) a new user on the ubuntu system
b) FC21 beta live cd

a) doesn't work
b) works fine.

So it looks like it's an ubuntu issue at least for my simple xkb switching

@infro: You removed everything from gnome ppas and went back to stock 14.10?

Revision history for this message
Jens Georg (yg-jensge) wrote :

Issue seems in gnome-settings-daemon. Replacing libkeyboard.so with the one from Fedora makes it work again.

Revision history for this message
Jens Georg (yg-jensge) wrote :

Looking at the applied patches, I'd suspect the fix for https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1318673 causing this

Revision history for this message
Jens Georg (yg-jensge) wrote :

Confirmed. Building gnome-settings-daemon without ubuntu-force-lock-group.patch makes switching working again.

Changed in gnome-shell:
status: Incomplete → Unknown
Revision history for this message
Jens Georg (yg-jensge) wrote :
Revision history for this message
Behrooz Nobakht (nobeh) wrote :

@Jens, thanks for the attachment. When do you think we can expect to get it from downstream repo?

Revision history for this message
Dmitry Golovin (cyb3r) wrote :

This suggested package suggests to remove gnome-shell and gdm. Needs update.

Revision history for this message
Dmitry Golovin (cyb3r) wrote :

Sorry, if I install it with dpkg, everything is okay, but ubuntu-software-center asks to uninstall half of the system to install this package.

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

Don't do it if it uninstalls all those packages. It didn't want me to do that although I don't user ubuntu-software-center but command-line tools 'aptitude'.
This package by @Jens was probably create more as a proof of possible solution then a permanent one. On the plus side it helped him and it helped me. We all be happy when an official fix version of such package will come from developers.

Revision history for this message
Michael Milligan (milli) wrote :

I confirm the above deb in comment #14 fixes the issue for me.

Revision history for this message
gregory bahde (nystal-deactivatedaccount) wrote :

Hello there, well it seems like it is not fixing for every one:

trying to install with dpkg or ubuntu software I have 2 unmet dependencies: "libupower-glib3 (>= 0.99.0) but it is not installable"
and "libgeocode-glib0"

So english kb for me still :[

Revision history for this message
gregory bahde (nystal-deactivatedaccount) wrote :

needless to say I tried to DL the libupower-glib3 package but it lead me nowhere as I had to apt-get -f install to fix my VM afterwards

Revision history for this message
gregory bahde (nystal-deactivatedaccount) wrote :

Work around for me is to use "setxkbmap -option grp:alt_shift_toggle us,fr" to toggle to french from terminal for those in pain.

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

It is fixed with new version 3.14.2-0ubuntu1~utopic1 of gnome-settings-daemon.

Revision history for this message
Dmitry Golovin (cyb3r) wrote :

Still not fixed for me. Only switches layout for the first time, then it is not possible to switch it back (only indicator changes, not actual keyboard layout). Maybe I should delete some old config files?

Revision history for this message
Behrooz Nobakht (nobeh) wrote :

The latest update of `gnome-settings-daemon` from the upstream ppa:gnome3-team/gnome-staging fixed the issue for me.

Revision history for this message
aurelijusr (aurelijus-rozenas) wrote :

Tried Jens solution - not fixed, only switches layout for the first. Latest update also did not fix the issue.
@Jens went back to stock just try if switching works - worked. Upgraded again to 3.14 - does not work.

Revision history for this message
Bruce Pieterse (octoquad) wrote :

I have tested this particular problem with 14.10 + main ppa + staging ppa.

1. Added new input methods: de (no dead keys) and sv
2. Able to switch using ctrl+space (custom mapping - virtualbox)
3. Logged out.
4. New input methods missing from login screen (not sure if this is normal or not - pending confirmation)
5. Last know input method is active (sv)
6. Input for gnome apps using sv works and de works
7. Switching back to en works with custom mapping
8. Input for non-gnome apps using sv and de works
9. Switching back to en works with custom mapping

ibus-m17n not installed.

Stock 14.10

1. Added new input methods: de (no dead keys) and sv
2. Able to switch using ctrl+space
3. Logged out
4. New input methods missing from login screen (might be normal - pending confirmation)
5. Last know input method is active (sv)
6. Input for gnome apps using sv works and de works
7. Switching back to en works with custom mapping
8. Input for non-gnome apps using sv and de works
9. Switching back to en works with custom mapping

ibus-m17n not installed.

gnome-settings-daemon:
  Installed: 3.14.2-0ubuntu1~utopic1
  Candidate: 3.14.2-0ubuntu1~utopic1
  Version table:
 *** 3.14.2-0ubuntu1~utopic1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status
     3.12.2-1ubuntu2 0
        500 http://za.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages

Please try updating all packages (sudo apt-get update and sudo apt-get dist-upgrade) and try again.

Thanks

Changed in ubuntu-gnome:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
aurelijusr (aurelijus-rozenas) wrote :

So after last dist-upgrade swithing is kind of working. The first time I usually need to press shortcut multiple times (completely unpreditable), then it start to work correctly. If I go to input data to another window, I have to press multiple times again.
What else can I do (either to resolve this or to provide more information)?

Revision history for this message
Bruce Pieterse (octoquad) wrote :

Infro, please can you provide me with the shortcut key that you are using. Maybe you are now experiencing this problem: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322 can you confirm?

Revision history for this message
Usama Akkad (uakkad-deactivatedaccount) wrote :

I've tried many shortcuts but none works to switch layout. When I click on language symbol in system top corner it changes the language but the symbol does not change.

What informations do you require to complete this bug report?
I'm using updated gnome from PPA. gnome3-team/gnome3 and gnome3-team/gnome3-staging

I was using unity but I installed gnome shell on top of it.

Changed in ubuntu-gnome:
milestone: utopic-ppa → none
Revision history for this message
Bruce Pieterse (octoquad) wrote :

Hi all,

Just checking in to see if you are still experiencing this problem with either 15.04 or the upcoming 15.10 release. Can anybody confirm that this problem still exists? Utopic is now end of life as well.

Revision history for this message
Waqar Ahmed (waqar-17a) wrote :

All is well in 14.04.3 release.

Revision history for this message
Waqar Ahmed (waqar-17a) wrote :

I have checked in 15.04. It's working fine there, too.

Changed in ubuntu-gnome:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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