Bug 347784 - Remapping Caps Lock as Ctrl doesn't work
Summary: Remapping Caps Lock as Ctrl doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: 5.2.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-16 09:43 UTC by John Veitch
Modified: 2024-09-25 17:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Veitch 2015-05-16 09:43:06 UTC
In systemsettings > Input Devices > Keyboard > Advanced I select "Make Caps Lock an additional Ctrl" from the list of options. Nothing happens however, and it still behaves as a Caps Lock.

Reproducible: Always

Steps to Reproduce:
1. In systemsettings > Input Devices > Keyboard > Advanced select "Make Caps Lock an additional Ctrl"
2. Hit Apply
3. Test Caps Lock key

Actual Results:  
nothing

Expected Results:  
remapped Caps Lock to Ctrl
Comment 1 Lars Ivar Igesund 2015-06-07 14:59:47 UTC
I normally map my Caps Lock to Esc under the same options. This works, then stops working at some point aka Caps Lock becomes itself again. When it stops working, a restart seems to help. It is my impression that the mapping stops working again when the lock screen is enabled after being idle.

I have the latest KDE (Framework is at 5.9.0) installed via the Kubuntu backports PPA for 15.04.
Comment 2 John Veitch 2015-06-18 21:24:40 UTC
Hi Lars,
The remapping has never worked for me since I updated to version 5 with kubuntu 15.03. Even on a fresh boot, it doesn't work.
Can you try to reproduce my problem and see if remapping Caps as Ctrl works for you?

I also tried the options in the "Ctrl key position" submenu but no luck there either.
Comment 3 kde 2019-12-14 05:28:56 UTC
I have something similar -- my journalctl shows there's a double -option
Not sure if from manjaro settings manager keyboard module or from plasma's

Dec 14 00:08:34 potatoNUC kdeinit5[981]: org.kde.kcm_keyboard: Failed to run
"/usr/bin/setxkbmap -model macintosh -layout us -variant mac -option -option shift:both_capslock,caps:ctrl_modifier" return code: 251

Manually setting the value in my /etc/X11/xorg.conf.d/00-keyboard.conf does work though.
Comment 4 wincak 2020-12-22 10:40:12 UTC
Key remapping also doesn't work for me. I can select any remapping option I want, the configuration is remembered and correctly reappears after restarts but no behaviour is actually changed. I have tried also remapping Alt/Win - also no change.

This has been happening since I first tried months ago.

Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-58-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-3520M CPU @ 2.90GHz
Memory: 7,5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000
Comment 5 David Edmundson 2024-09-20 09:47:22 UTC
This works for me, please confirm if this is still an issue.

Please also include output of:
qdbus org.kde.kded6 /Layouts org.kde.KeyboardLayouts.getLayout

as it will confirm the Keyboard daemon is still active
Comment 6 wincak 2024-09-25 17:00:45 UTC
I just briefly tested this on Neon 6.0 and remapping Caps Lock as Ctrl works OK now.

That qdbus call returns an error though:
wincak@wincak-tablet:~$ qdbus org.kde.kded6 /Layouts org.kde.KeyboardLayouts.getLayout
Error: org.freedesktop.DBus.Error.UnknownObject
No such object path '/Layouts'