Bug 355354 - Swap CapsLock and Escape feature disabled spontaneously
Summary: Swap CapsLock and Escape feature disabled spontaneously
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: 5.4.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-14 21:16 UTC by Dotan Cohen
Modified: 2020-11-19 11:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2015-11-14 21:16:19 UTC
he "Swap CapsLock and Escape feature" is disabled after returning from suspend. This feature worked fine in all versions of Kubuntu and KDE that I've tested since 2005 or so. I can sometimes reproduce the issue by suspending and then returning, and sometimes the issue occurs spontaneously while I am working. I can reenable the swap by going into System Settings -> Input Devices -> Keyboard -> Advanced then disabling the appropriate option, hitting Apply, then reenabling the option and hitting Apply again.

To clarify, sometimes I'll be in the middle of working and - whoops - the physical CapsLock key, which I use for Escape, has become CapsLock again.

I have for years used the "Swap CapsLock and Escape" option in KDE, and then when this issue cropped up I disabled that option and started using the following ~/.Xmodmap file instead:

clear Lock
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
add Lock = Caps_Lock

Both methods are affected by this issue.

Note that this bug may be related to Bug #351335 ( Swap Ctrl and Caps lock negated by KVM switch). In that bug, the user lost his Ctrl/CapsLock swap after returning from another machine via KVM switch. In this bug, I loose my Escape/CapsLock swap spontaneously, with no discernible related action sometimes.

The system is a new install of Kubuntu 15.10, not an upgrade from a previous version. The /home/user/ directory is carryover from a previous version, but I moved ~/.kde to ~/.kde-old so that the KDE settings for Plasma 5 will be clean.

Regarding the KDE software version, the System Settings Help menu no longer states the KDE version so I put version 5.4 as I know that it is running Plasma 5.4 (Kubuntu 15.10). The Version field here has the 4.x branch only up to 4.11.10, but this is what I get for the current KDE version on the CLI:
$ kde4-config -v
Qt: 4.8.6
KDE Development Platform: 4.14.13
kde4-config: 1.0

Reproducible: Sometimes

Steps to Reproduce:
1. Set KDE to swap Escape / Caps Lock via System Settings -> Input Devices -> Keyboard -> Advanced
2. Enjoy the use of Escape right near the home row
3. After working for a few hours, notice that the physical key to the left of "A" has become CapsLock!
Comment 1 Stephan Diestelhorst 2016-02-26 13:50:35 UTC
This might be related to #356851 and to my recent report Kubuntu bugs: https://bugs.launchpad.net/ubuntu/+source/systemsettings/+bug/1545293
Comment 2 Stephan Diestelhorst 2016-02-26 13:55:43 UTC
I meant bug 356851.  If I look at my log output, it seems that sometimes (for me it is after resume and undocking / docking) the keyboard settings get reset from

symbols: pc+us+inet(evdev) geometry: pc(pc105)

to

symbols: pc+us+inet(evdev)+capslock(escape) geometry: pc(pc101)

My config in KDE suggests the latter (pc101) and the caps as an additional escape.
Comment 3 Justin Zobel 2020-11-19 05:33:24 UTC
Thanks for the report.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 4 Stephan Diestelhorst 2020-11-19 11:04:40 UTC
I am not the OP, but I have not noticed this behaviour for quite a while.  So from my POV, this can be closed, thanks!
Comment 5 Justin Zobel 2020-11-19 11:11:31 UTC
Dotan I'm marking this as resolved. If this issue is still present for you please reopen this bug report.