Bug 428675 - Missing keyboard layout button on SDDM login screen
Summary: Missing keyboard layout button on SDDM login screen
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Theme - Breeze (show other bugs)
Version: 5.20.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: visual-design
URL: https://github.com/sddm/sddm/issues/1528
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-04 11:11 UTC by Gauthier
Modified: 2024-05-22 19:31 UTC (History)
6 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 Gauthier 2020-11-04 11:11:26 UTC
I have two keyboard layouts (gb, fr) set on my system. The default is "gb" I added "fr" through system settings > keyboard > layouts > add.

On the lock screen (either when using the lock function or after wake-up) there is a handy little button on the bottom left which allows the user to choose the layout to enter the password. So far so good!

On login screen (either after login out or on reboot), however, there is no such handy layout button. In this place there is the choice for the which Plasma session (say X11 or Wayland).

I haven't tested what it looks like if I do not have Wayland installed (maybe the layout button would then appear). But in any case, that is a problem as users should be able to choose a layout, (especially in the case of having to enter a password), whether or not they have multiple options for plasma session.

In both login and lock screen I can see the virtual keyboard and the battery icon. Only issue is with the layout button.

I have to point out that this is especially an issue as on the login screen the layout automatically reset to the system default and not the the last used layout on the user session (thank god there is the virtual to actually be able to login!). I'll file a separate report about this issue.

Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

Sorry if this isn't filed in the right place, I could not see a specific SDDM section. Feel free to move it :)
Comment 1 Patrick Silva 2020-11-04 16:37:10 UTC
Same thing on Arch Linux (Plasma 5.20.2) and neon unstable.
Comment 2 Nate Graham 2022-09-08 16:11:19 UTC
Can reproduce on the actual SDDM login screen. But in test mode (`sddm-greeter --test-mode --theme ~/kde/usr/share/sddm/themes/breeze/`), I see the keyboard layout chooser! So there seems to be a problem with displaying it on the real greeter when run with SDDM's user; perhaps it's a permissions issue where the data it needs to grab is in the user's home directory so the greeter's user doesn't see it.
Comment 3 Gauthier 2022-09-09 09:45:09 UTC
(In reply to Nate Graham from comment #2)
> Can reproduce on the actual SDDM login screen. But in test mode
> (`sddm-greeter --test-mode --theme ~/kde/usr/share/sddm/themes/breeze/`), I
> see the keyboard layout chooser! So there seems to be a problem with
> displaying it on the real greeter when run with SDDM's user; perhaps it's a
> permissions issue where the data it needs to grab is in the user's home
> directory so the greeter's user doesn't see it.

Yes it is likely a permission issue since keyboard layout are a user specific setting. It therefore makes sense that it works fine on lock screen (where the user session is already opened) but not on login screen (user session has not yet been opened). We somehow need keyboard layout settings for each user to be accessible by/exposed to SDDM before login and when a user is selected on login screen, the default layout is the one used last in that user session with the possibility to change it using the keyboard layout switch button.
Comment 4 Nate Graham 2022-09-09 18:27:12 UTC
Or maybe we could make keyboard layouts global, such that the SDDM user could see them too.
Comment 5 Gauthier 2022-09-09 18:42:56 UTC
(In reply to Nate Graham from comment #4)
> Or maybe we could make keyboard layouts global, such that the SDDM user
> could see them too.

Yes this is probably easier and would be good enough for all use cases I can think of :). The only thing to be careful with with making it global is that if one user has several layouts because they speak several languages, and another user on the same machine doesn't, the latter should not get confused with having several keyboard layouts available in their session since switching layout can get triggered accidentally.
Comment 6 Nate Graham 2022-09-15 00:47:01 UTC
It appears to be a fundamental issue in SDDM which is tracked by https://github.com/sddm/sddm/issues/1528. There's a fix in progress for the Wayland session; see https://github.com/sddm/sddm/pull/1581.
Comment 7 Patrick Silva 2022-12-20 21:37:33 UTC
The sddm issue was already fixed, I'm using sddm-git with two keyboard layouts on Arch Linux and there is no way to change the keyboard layout in sddm yet.
Comment 8 Aldoo 2024-05-22 19:31:20 UTC
So it was fixed upstream in 2022.
But is it supposed to work in 2024 plasma 6? (on my installation it is still missing. Should I open a new issue?)