Bug 475435

Summary: default system keyboard model is not correctly set on Wayland
Product: [Applications] systemsettings Reporter: Hector Martin <marcan>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: butirsky, davide, jyrkiylinokari, m.kurz, natalie_clarius, nate, ngompa13
Priority: NOR    
Version: 5.27.8   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Hector Martin 2023-10-10 15:56:35 UTC
On a fresh user account, the keyboard layout is set by default to the value configured in `localectl`. However, the keyboard model is not, and ends up at "Generic 101-key PC".

This matters particularly for Apple machines (on Asahi Linux), where we strive to set the default keyboard model systemwide properly since the Apple models have subtle but important changes vs the standard layouts.

STEPS TO REPRODUCE
1. localectl set-x11-keymap jp applealu_jis
2. Create a fresh user account and log in
3. Go into kcm_keyboard

OBSERVED RESULT

Keyboard model is listed as "Generic 101-key PC" and behaves as such.

EXPECTED RESULT

Keyboard model should be "Apple Aluminum (JIS)".

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux Asahi Remix 39
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.6-400.asahi.fc39.aarch64+16k (64-bit)
Graphics Platform: Wayland
Processors: 8 × Apple Firestorm (M1 Pro), 2 × Apple Icestorm (M1 Pro)
Memory: 30.6 GiB of RAM
Graphics Processor: Apple M1 Pro
Product Name: Apple MacBook Pro (14-inch, M1 Pro, 2021)
U-Boot Version: 2023.07