Bug 417025

Summary: xmodmap key configurations resets when usb is plugged
Product: [Plasma] plasmashell Reporter: Alpi Tolvanen <alpi.tolvanen>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED UPSTREAM    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.17.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alpi Tolvanen 2020-02-01 14:59:42 UTC
SUMMARY
Key configurations set with xmodmap resets when any usb device is plugged.

STEPS TO REPRODUCE
1. Run xmodmap command. For example, the following command changes caps lock to shift.
xmodmap -e "keycode 66 =  Shift_L"
2. Press configured button, to test that remapping works.
3. Plug usb device such as mouse.
4. Press configured button, and that reconfiguration has disappeared.

OBSERVED RESULT
Xmodmap settings has reseted.

EXPECTED RESULT
Xmodmap settings would stay the same.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kernel is 5.3.0-29-generic
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66
Qt Version: 5.12.4

ADDITIONAL INFORMATION
There is easy to work-around if key configurations are placed in ~/.Xmodmap. I have therefore no problems with this issue, but I reported it because that behaviour was not expected. This behaviour was not present in Kubuntu 18.04. (I'm noob, sorry if this issue is not kde related.)
Comment 1 Nate Graham 2021-03-09 04:58:19 UTC
This is not a KDE problem. Could be a kernel issue, or an xkb issue, or an xorg issue... But it's definitely below us.