Indication does not change when using XKB shortcut to change layout

Bug #1242567 reported by Filippos Kolyvas
76
This bug affects 16 people
Affects Status Importance Assigned to Milestone
indicator-keyboard (Ubuntu)
Expired
Low
Unassigned

Bug Description

On my first Ubuntu installation (13.10 upgraded from 13.04), the XKB layout switching shortcut works in parallel with the ι-bus layout switching shortcut.
The same stands for my 2nd installation (13.10 clean install).

Most of the times i tend to use the XKB shortcut for layout change as it is more convenient.
When using the XKB shortcut, the indication on the keyboard indicator does not change.

The same stands when i hit the two layout change shortcuts one after another.
For example, if i am typing in EN layout, hitting the XKB shortcut changes the layout to GR, but the indication remains as EN. Then, hitting the i-bus shortcut changes the indication to GR and layout remains to GR.
Hitting again the XKB shortcut changes the layout to EN, but but the indication remains as GR and i have to hit again the i-bus shortcut to change back the indication to EN.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-keyboard 0.0.0+13.10.20131010.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Mon Oct 21 10:55:36 2013
InstallationDate: Installed on 2013-09-01 (50 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=el
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=el_GR.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-keyboard
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Filippos Kolyvas (fkol-k4) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-keyboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, is the selected item in the indicator menu changing? Could you try if the gnome-settings-daemon version in saucy-proposed fixes the issue for you?

Changed in indicator-keyboard (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Filippos Kolyvas (fkol-k4) wrote :

Thanks for reply @Sebastien.
I am running now the 0.0.0+13.10.20131010.1-0ubuntu1 version from saucy-proposed (i couldn't find it in trusty-proposed though, so i couldn't test it to 14.04 as well).
The indication still does not change when i use the XKB shortcut to change layout. Neither does the selected item in the indicator menu.
THe symptoms are exactly as in the original description. It gives the impression that the indicator reads only the i-bus status.

I noticed that if i set the same shortcut for both the XKB and the i-bus (eg. alt+shift), then all changes are shown normally, but then i 'm affecterd by the bug #1226962 when using LibreOffice, so it seems that xhen i do that, the system gives priority to i-bus for the layout changes.

Revision history for this message
Filippos Kolyvas (fkol-k4) wrote :

Sorry for the mistake in the comment above, i wanted to write that now i'm using the 3.8.5-0ubuntu11.1 version of the gnome-settings-daemon (saucy-proposed), instead i gave you the indicator-keyboard version.
I can't edit the comment, so i'm adding that in this comment here.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) wrote :

Yesterday I installed the Trusty Tahr (daily build) and I can say that this bug affects this version as well.

An interesting thing is that I cannot change the indication neither from XKB or i-bus, nor from icon (mouse click). It stays there as (En) for ever.

Revision history for this message
Filippos Kolyvas (fkol-k4) wrote :

Hello @Sebastien
I noticed that the bug status has now been changed from confirmed to incomplete. Why is that?
Is there any kind of missing additional information that we can provide to help?
Please feel free to give any direction for testing things that may be of use.

Revision history for this message
florin (florin-arjocu) wrote :

I cannot change languages by keyboard either, only mouse seems to work.

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

What do you call 'XKB shortcut"? Could you describe exactly what you did and what is happening?

Revision history for this message
Filippos Kolyvas (fkol-k4) wrote :

@Sebastien:
Up until 13.04 version, layout switching was handled by XKB ( http://www.x.org/wiki/XKB/ ) and was set to alt+shift as a default shortcut. Setting this through any DE's graphical keyboard configurator was the equivalent of the following command:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,el

For 13.10 and 14.04, layout switching is primarily handled by i-bus, so Ubuntu's graphical keyboard configurator is not about changing some XKB setting via setxkbmap command, but is about changing an i-bus setting.
The point is that though there may not be a graphical keyboard configurator for XKB anymore, the setxkbmap command still works because it is a part of xorg and xorg is still installed.

So, a common workaround for users is to use a setxkbmap command setting for layout switching. This way, the user avoids the effects of the #1218322 and #1226962 bugs.

The #1218322 bug is now fixed. For the #1226962 bug things are also mainly ok, but there is still a problem with LibreOffice, so there still is a point using a setxkbmap command to set layout switching via XKB.
What is happening is that when changing layouts via the shortcut set by a setxkbmap command, the indicator does not see that a change has been made.

Sorry for the long reply, i hope this is clearer now.

Changed in indicator-keyboard (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) wrote :

After the latest updates in Ubuntu 14.04 Trusty Tahr, this works as expected. I can set <Alt>+<Shift_L> to change the keyboard layout and also the indications works.

@fkol-k4

can you confirm this ?

Changed in indicator-keyboard (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for indicator-keyboard (Ubuntu) because there has been no activity for 60 days.]

Changed in indicator-keyboard (Ubuntu):
status: Incomplete → Expired
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.