Double-tap Shift to fix the last word or Hold one Shift and double-tap the other to fix the current phrase stopped to work
gswitch version
0.8.0
Installation method
rpm package
Distribution
openSUSE Tumbleweed
Desktop environment and session type
KDE+X11
Keyboard layouts
us, ru
What happened
Double-tap Shift to fix the last word or Hold one Shift and double-tap the other to fix the current phrase stopped to work: it reprints the phrase or word on the current language again and does not switch the language. Holding Ctrl and double-shift works on selected word/phrase.
Config
[gswitch]
layout-switch=auto
convert-key=0
delay=10
layout-switch-delay=100
blacklist=
layout1=us
layout2=ru
Layout switch detection
{"schema":1,"status":"found","result":{"scancodes":[125],"source":"xkb","raw":"grp:lwin_toggle","keys":"LSuper"},"attempts":[{"provider":"xkb","status":"found","raw":"grp:lwin_toggle","keys":"LSuper"}]}
Logs
-- Boot --
окт 04 16:10:30 Aleksey systemd[5459]: Started gswitch - keyboard layout switcher.
окт 04 16:10:30 Aleksey gswitch[6187]: Clipboard backend: x11
окт 04 16:10:30 Aleksey gswitch[6187]: Layout converter initialized: us <-> ru
окт 04 16:10:30 Aleksey gswitch[6187]: Starting gswitch 0.8.0...
окт 04 16:10:30 Aleksey gswitch[6187]: gswitch started successfully (auto-detect mode)
окт 04 16:10:41 Aleksey gswitch[6187]: Added device /dev/input/event2: Logitech USB Receiver (UID=0003:046d:c541:0111:30e2c6f8c96eeeab)
окт 06 12:27:04 Aleksey gswitch[6187]: Got signal to exit (terminated). Bye.
окт 06 12:27:04 Aleksey systemd[5459]: Stopping gswitch - keyboard layout switcher...
окт 06 12:27:04 Aleksey systemd[5459]: Stopped gswitch - keyboard layout switcher.
окт 06 12:27:04 Aleksey systemd[5459]: gswitch.service: Consumed 7min 2.166s CPU time over 1d 20h 16min 33.865s wall clock time.
окт 06 12:27:04 Aleksey systemd[5459]: Started gswitch - keyboard layout switcher.
окт 06 12:27:04 Aleksey gswitch[1911090]: Clipboard backend: x11
окт 06 12:27:04 Aleksey gswitch[1911090]: Layout converter initialized: us <-> ru
окт 06 12:27:04 Aleksey gswitch[1911090]: Starting gswitch 0.8.0...
окт 06 12:27:04 Aleksey gswitch[1911090]: gswitch started successfully (auto-detect mode)
окт 06 12:27:15 Aleksey gswitch[1911090]: Added device /dev/input/event2: Logitech USB Receiver (UID=0003:046d:c541:0111:30e2c6f8c96eeeab)
окт 08 11:18:49 Aleksey gswitch[1911090]: Got signal to exit (terminated). Bye.
окт 08 11:18:49 Aleksey systemd[5459]: Stopping gswitch - keyboard layout switcher...
окт 08 11:18:49 Aleksey systemd[5459]: Stopped gswitch - keyboard layout switcher.
окт 08 11:18:49 Aleksey systemd[5459]: gswitch.service: Consumed 7min 4.746s CPU time over 1d 22h 51min 45.351s wall clock time.
окт 08 11:18:49 Aleksey systemd[5459]: Started gswitch - keyboard layout switcher.
окт 08 11:18:49 Aleksey gswitch[3964777]: Clipboard backend: x11
окт 08 11:18:49 Aleksey gswitch[3964777]: Layout converter initialized: us <-> ru
окт 08 11:18:49 Aleksey gswitch[3964777]: Starting gswitch 0.8.0...
окт 08 11:18:49 Aleksey gswitch[3964777]: gswitch started successfully (auto-detect mode)
окт 08 11:19:00 Aleksey gswitch[3964777]: Added device /dev/input/event2: Logitech USB Receiver (UID=)
lines 163-210/210 (END)
Seems works again after the service restart.
Thanks for the update. The restart helped, but the cause is still unclear.
If it happens again, could you check whether pressing Left Win manually still switches the layout before restarting the service? The detection output shows that gswitch uses that key.
Do you remember whether this started after resuming from sleep or changing keyboard settings?
If it happens again, could you check whether pressing Left Win manually still switches the layout before restarting the service? The detection output shows that gswitch uses that key.
I use left Win to switch layout.
Do you remember whether this started after resuming from sleep or changing keyboard settings?
Nothing changed in keyboard settings, maybe resuming from screensaver as my PC not going to sleep or long uptime work.
Thanks. When the problem occurred, did Left Win still switch the layout manually? If you did not check at the time, please try it if the problem returns, before restarting gswitch.
When the problem occurred, did Left Win still switch the layout manually?
Yes, it did.
Before this bug started, gswitch rpm was updated once or twice due to the overall openSUSE Tumbleweed update and rebuild process. While the application was still running. Could this be the cause?
After a long work (few days maybe) starts to works very unpredictable and unstable: some side effects, do not transform phrases, or transform them wrong etc. Restarting fixes things.
Very unstable, even restarting does not help. Transforms wrong or what I haven't typed. Ctrl+Double Shift does not work in web forms: browser want to upload some files or pictures. Become very inconvenient, turned off for now.
It is seems the same as mentioned here: https://github.com/arumata/gswitch/issues/36#issue-5764256797.