KDE Plasma can show a popup with accented or alternate characters when a key is held down.
Disabling it in your normal Plasma session does not necessarily disable it on the login screen, because Plasma Login Manager runs under its own system user and has its own configuration directory.
This guide applies to Plasma Login Manager (plasmalogin), not SDDM.
Open:
System Settings → Keyboard → On-Screen Keyboard
Disable:
Show popup when holding a key
This creates or updates:
~/.config/plasmakeyboardrc
The relevant contents are:
[General]
diacriticsHoldThresholdMs=600
diacriticsPopupEnabled=falseVerify:
cat ~/.config/plasmakeyboardrcDo not assume that it is always /var/lib/plasmalogin.
Check the plasmalogin system account:
getent passwd plasmaloginPrint only its home directory:
getent passwd plasmalogin | cut -d: -f6For example, on one Arch Linux installation this returned:
/usr/var/lib/plasmalogin
Therefore, the login manager configuration directory was:
/usr/var/lib/plasmalogin/.config/
The following command automatically uses the home directory configured for the plasmalogin account:
plasmalogin_home="$(getent passwd plasmalogin | cut -d: -f6)"
sudo install \
-D \
-o plasmalogin \
-g plasmalogin \
-m 600 \
~/.config/plasmakeyboardrc \
"$plasmalogin_home/.config/plasmakeyboardrc"This is preferable to hard-coding /var/lib/plasmalogin or /usr/var/lib/plasmalogin.
plasmalogin_home="$(getent passwd plasmalogin | cut -d: -f6)"
sudo -u plasmalogin cat \
"$plasmalogin_home/.config/plasmakeyboardrc"Expected output:
[General]
diacriticsHoldThresholdMs=600
diacriticsPopupEnabled=falseYou can also verify the ownership and permissions:
ls -l "$plasmalogin_home/.config/plasmakeyboardrc"It should be owned by plasmalogin.
Reboot the system:
systemctl rebootAfter rebooting, holding a key on the Plasma Login Manager screen should no longer display the alternate-character popup.
- The correct filename is
plasmakeyboardrc, without a hyphen. - This procedure is for Plasma Login Manager.
- SDDM configuration such as
/etc/sddm.conf.d/does not apply when Plasma Login Manager is being used. - The
plasmaloginhome directory can vary between distributions or package versions. Always confirm it withgetent passwd plasmalogin. - Copying the complete
plasmakeyboardrcfile may also copy other keyboard-related settings stored in that file.