FS#41046 - [libxklavier] 5.3-2 breaks layout switching

Attached to Project: Arch Linux
Opened by Artyom Kazak (artyom.kazak) - Tuesday, 01 July 2014, 16:00 GMT
Last edited by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 16:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description:

After upgrading libxklavier from 5.3-1 to 5.3-2 layout switching stopped working. In particular, after reboot the layout reported by xfce4's layout indicator was “us”; before it was my custom layout.

I tried removing the custom layout from the list and adding a couple of standard layouts (say, English (US) and Russian), and then rebooting. The chosen layout after reboot was still English (US), and layout switching didn't work. No matter what layouts are the list, the chosen/reported one is always English (US) – even when if it isn't on the list.

Downgrading libxklavier to 5.3-1 and rebooting solved the problem immediately.

(However, changing the layout with setxkbmap works regardless of libxklavier's version.)


Additional info:
* I'm using XFCE. I'll check whether the bug persists under a different DE.
* Versions of packages libxklavier depends on:
* glib2 2.40.0-1
* libxkbfile 1.0.8-1
* libxml2 2.9.1-5
* xkeyboard-config 2.12-1
* libxi 1.7.2-1
* iso-codes 3.52-1


Steps to reproduce:
* Upgrade libxklavier to 5.3-2.
* Reboot.
* Attempt to use any keyboard layout except for English (US).
This task depends upon

Closed by  Felix Yan (felixonmars)
Wednesday, 02 July 2014, 16:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.4-1
Comment by Artyom Kazak (artyom.kazak) - Tuesday, 01 July 2014, 16:34 GMT
The bug is also present under Cinnamon.
Comment by Felix Yan (felixonmars) - Tuesday, 01 July 2014, 17:31 GMT
I'm not sure what is the cause, so please test with the following version which was built with clang, and let me know if it makes any difference:

http://pkgbuild.com/~fyan/staging/libxklavier-5.3-3-i686.pkg.tar.xz
http://pkgbuild.com/~fyan/staging/libxklavier-5.3-3-x86_64.pkg.tar.xz
Comment by Artyom Kazak (artyom.kazak) - Tuesday, 01 July 2014, 17:40 GMT
Tested; unfortunately, it made no difference.
Comment by Alexander Mezin (Sanya_M) - Tuesday, 01 July 2014, 17:48 GMT
Same issue. Building package manually from ABS solves the problem. However, PKGBUILD from /var/abs/extra/libxklavier has pkgrel=1.
Comment by IMBJR (IMBJR) - Tuesday, 01 July 2014, 19:25 GMT
Confirmed on 2 seperate installations. Another work-around is to add a new .conf file to /etc/x11/xorg.conf.d. For example:

Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "cz,us"
Option "XkbModel" "pc104"
Option "XkbVariant" ",dvorak"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

as detailed here: https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg
Comment by Alexander (a_sosnovskiy) - Tuesday, 01 July 2014, 21:07 GMT
Same issue.
Comment by Realex (Realex) - Tuesday, 01 July 2014, 21:53 GMT
Same issue.
Comment by Claire Farron (clfarron4) - Tuesday, 01 July 2014, 23:13 GMT
I have this with x86_64 5.3-2 and @IMBJR's solution didn't work. Only downgrading this package did.
Comment by Carlo (arcieredorato) - Wednesday, 02 July 2014, 01:47 GMT
I have the same problem. I guess that before this upgrade my layout keyboard was OK, set on it. Now I have all my symbol bottom replaced in other positions on the keyboard. I hope that someone can fix this problem soon.

Comment by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 02:44 GMT
I've updated the staging packages, please give it one more try, and let me know if it works:

http://pkgbuild.com/~fyan/staging/libxklavier-5.3-3-i686.pkg.tar.xz
http://pkgbuild.com/~fyan/staging/libxklavier-5.3-3-x86_64.pkg.tar.xz
Comment by Joaquín Ignacio Aramendía (Samsagax) - Wednesday, 02 July 2014, 02:46 GMT
I can confirm Alexander Mezin's fix. Building the package locally fixed the issue for me. Is clang involved maybe (I'm using gcc)?
Comment by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 02:47 GMT
@Joaquín
The -2 version in the repo was built with gcc.
Comment by Joaquín Ignacio Aramendía (Samsagax) - Wednesday, 02 July 2014, 02:51 GMT
@felixonmars: That -3 package fixed the issue for me too.
Comment by Carlo (arcieredorato) - Wednesday, 02 July 2014, 03:05 GMT
I will wait with calm the normal upgrades by pacman. Tell me when it'll be ready.
Comment by Claire Farron (clfarron4) - Wednesday, 02 July 2014, 06:50 GMT
If one can wait until around 2pm today, I will test the -3 update then.
Comment by Realex (Realex) - Wednesday, 02 July 2014, 10:22 GMT
@felixonmars, it works (helped rebuild the package).
Comment by Borislav Borisov (bobolin) - Wednesday, 02 July 2014, 11:41 GMT
The packages provided by Felix Yan solved the problem for me.
Comment by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 12:55 GMT
Hi, I've pushed another -3 version (using a different approach than the one posted here) to [extra], please let me know if it fixes the problems for you, too.

Sorry for the trouble.
Comment by Claire Farron (clfarron4) - Wednesday, 02 July 2014, 13:27 GMT
The -3 package provided here (we should call this the "private build") works for me. I can go try the update in [extra] later (on a lunch break right now).
Comment by Kalsan (kalsan) - Wednesday, 02 July 2014, 13:55 GMT
@felixonmars, please excuse me if this is a stupid question, but does "push to extra" mean that the package should now be officially out? Because when I upgrade with -Syu, it still installs -2.
Comment by silvik (silvik) - Wednesday, 02 July 2014, 14:34 GMT
I updated to -3 with pacman and still doens't work (on XFCE, up to date x64 system)
But felixonmars' package from comments works. Strange.
Comment by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 14:35 GMT
@Kalsan Yes :)

@silvik Thanks for confirming, I've pushed a newer version (5.4-1) to [extra], it should have fixed all the problems :)
Comment by Carlo (arcieredorato) - Wednesday, 02 July 2014, 15:19 GMT
I've just made the update of this packet by pacman and it doesn't work. After the fix and I had tried to reboot for checking if It'd work.

I have the keys exchanged !

For example
_ = /
@ = Shift + 2
And others keys have exchanged!
Please fix it soon!
Thanks.
Comment by Felix Yan (felixonmars) - Wednesday, 02 July 2014, 15:52 GMT
@Carlo You updated to the 5.4-1 version?
Comment by Carlo (arcieredorato) - Wednesday, 02 July 2014, 16:16 GMT
I confirm now it's fixed. IT WORKS!
I have just upgraded to 5.4-1 and after reboot the keys are in right position.
Thank you very much.

Loading...