Bug 417025 - xmodmap key configurations resets when usb is plugged
Summary: xmodmap key configurations resets when usb is plugged
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.17.5
Platform: Ubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 14:59 UTC by Alpi Tolvanen
Modified: 2021-03-09 04:58 UTC (History)
2 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 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.