gxkb
gxkb copied to clipboard
Gxkb stops working after notebook awakes from the sleep mode
Hello,
I have the following issue. I have a config with two layouts: us and ru. All works fine untill notebook goes to sleep mode. When it awakes - there is only one layout in gxkb - us. If I close gxkb, then config becomes to:
[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=us
variants=
toggle_option=
compose_key_position=
There is one more strange thing: I get able to change the layout between ru and us when I close gxkb after this o_O
Is there anyway to solve this issue?
My config:
[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=us,ru
variants=,
toggle_option=grp:ctrl_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp
compose_key_position=
System: Ubuntu 16.04 x64. I have only one keyboard layout in the ubuntu text entry settings without hotkey to change layout and "Use the same source for all windows" option activated. There are no any setxkbmap commands in startup or somewhere else... Gxkb: 0.7.7
Thank you in advance.
@niberius, @adeptg
Guys, I can't reproduce this bug on my notebook, so I need your help.
Recently, I have added some fixes in the master branch. And I hope they can resolve this issue. Can you please test the last build from ppa:zen-root/gxkb-daily-ppa?
Hi, Thanks for answer. I'll test build. Finally I fixed issue with current stable version by some magic key in gconftool (but unfortunately I don't remember which key I've used exactly)
Hello @zen-tools,
Sorry, but unfortunately, I can't retest it at the moment because I'm using another OS :(
Anyway, I would like to say thank you very much for your tool and fixes. I think that Unity / Gnome3 are becoming too painful for using with their keyboard layout issues (e.g., like this for Unity: https://bugs.launchpad.net/unity/+bug/1226962) without Gxkb.
Hello @zen-tools I have this issue once during 2 weeks
At the moment I'm using gxkb 0.7.8 within i3 WM a couple of days and I'm not observing this issue. I'll post a comment, if the issue appears. Thanks.
It's just repeated. After wake up form suspend my config was swapped to some sort of default
[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=us,ru
variants=,
toggle_option=grp:shift_caps_switch,grp_led:scroll,terminate:ctrl_alt_bksp
compose_key_position=
My config:
[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=us,ru
variants=,
toggle_option=grp:shift_caps_switch,grp_led:scroll,terminate:ctrl_alt_bksp
compose_key_position=
And my usual fix is: cp ~/.config/gxkb/gxkb.cfg_works ~/.config/gxkb/gxkb.cfg && gxkb &
I have Ubuntu 16.04 (Unity) and gxkb 999.9.9+24~ubuntu16.04.1
Thanks for the feedback! I am still investigating this issue, but unfortunately I can't reproduce it... Anyway, I have an idea how to fix it. From my point of view, this issue happens due to pre-installed ibus on ubuntu like distros. So, let's try to open console and execute "sudo im-config" to switch from "default (use auto mode set by /etc/default/im-config)" on XIM as the input method. Here is link on screencast with described above steps: http://giphy.com/gifs/ubuntu-im-config-3o7TKHYehNHEBviDO8
Thanks! If it's possible to collect logs somehow - I can enable debug log (it it exists) and send logs when issue will reoccure
Hi @zen-tools, same issue in awesome4, so can't find any ibus related software.
Hi, guys!
I have made some investigation and seems like I have found something. Looks like this issue is related to bug in gnome-settings-daemon/unity-settings-daemon. https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1246272
Also I think I found a workaround to fix issue when laptop awakes. But, it also related to *-settings-daemon. Try the next command to prevent the system from resetting keyboard settings:
gsettings set org.gnome.settings-daemon.plugins.keyboard active false
Here is link on the source of a workaround: https://elementaryos.stackexchange.com/questions/1731/prevent-keyboard-layout-and-options-from-being-reset-by-system
Hi @zen-tools! Thanks for your findings! Unfortunately I've migrated to KDE (where my preferred layout switch works out of the box) and can't confirm that it works.
Hello, dear Zen))) You closed my issue as a duplicate. Therefore i write here. I found the cause of my problem. And this is not your fault! I use the program Double Commander. And months ago I created a script for the commander to work correctly based on the Internet tips. Here is what was there: "setxkbmap -layout us && doublecmd %F" I deleted the excess(left only "doublecmd %F") and your program works like a clock without a glitch! Thank you so much for your wonderful program!