Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Plasma Desktop Plasma Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 52
    • Merge requests 52
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Plasma DesktopPlasma Desktop
  • Merge requests
  • !951

kcms/keyboard: Initialize keyboard layout after attaching any input device

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Slava Aseev requested to merge ptrnine/plasma-desktop:fork into master May 20, 2022
  • Overview 16
  • Commits 1
  • Pipelines 5
  • Changes 1

Looks like Xorg server resets xkb mappings after attaching any input device, not only the keyboard or mouse (for example, after attaching a web camera device). So attaching an input device that is not keyboard/mouse may cause shortcuts to stop working.

How to reproduce:

  1. View current mappings via setxkbmap -print -verbose 10
  2. Attach (or re-attach) webcam:
  • this can be used for integrated web cameras on laptops:
# Enables webcam
echo "1" > /sys/bus/usb/devices/1-7/bConfigurationValue
# Disables webcam
echo "0" > /sys/bus/usb/devices/1-7/bConfigurationValue
  • or this to simply re-add uvcvideo module:
modprobe -r uvcvideo
modprobe uvcvideo
  1. View mappings again via setxkbmap -print -verbose 10: it will look reset. Hotkeys may stop working after switching the active window.

This is not a final change, perhaps DEVICE_KEYBOARD should be removed, because it actually doing the same as DEVICE_ANY.

Edited May 23, 2022 by Slava Aseev
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fork