Summary: | With SDDM using Wayland, syncing settings does not send along the correct scaling as it does with X11 | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Nate Graham <nate> |
Component: | kcm_sddm | Assignee: | David Edmundson <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 1900011604, daf.public, douglas.spear, drokergeek, gstengel, jpetso, kde, michiel, misawalach00, plasma-bugs, xaver.hugl |
Priority: | NOR | ||
Version: | 5.27.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/sddm-kcm/-/commit/61ab30924b9b26dafbad9f4eb3aa6e2cefe73fc1 | Version Fixed In: | 6.0.3 |
Description
Nate Graham
2023-03-08 03:04:22 UTC
Looked into this a bit. On Wayland, we don't have a simple way to get the "I'm using high DPI scaling" setting the way we do on X11--that setting being global on X11, and per-screen on Wayland. Instead, I found that the EnableHiDPI=true argument in the [Wayland] section of the SDDM config works properly. Setting this value when syncing settings in the KCM probably doesn't make sense; it should instead be the default setting for SDDM on Wayland. I've submitted a PR for that: https://github.com/sddm/sddm/pull/1681. If that's rejected, we have the following other options: - Ask distros to set that by default in their packaging - Always set it here when syncing settings - Only set it here when syncing settings if the user is using any >100% scaling on any screens, which we would need to determine by parsing KScreen configs, which seems like it could be a can of worms To add to this bug I've notice cursor theme and size is also not respected. Same Problem, Plasma 6.0 on Wayland. I have a 2560x1600 screen with 200% scaling, but the SDDM cannot sync, still 100% which is too small for me. (In reply to Nate Graham from comment #1) > Looked into this a bit. On Wayland, we don't have a simple way to get the > "I'm using high DPI scaling" setting the way we do on X11--that setting > being global on X11, and per-screen on Wayland. > > Instead, I found that the EnableHiDPI=true argument in the [Wayland] section > of the SDDM config works properly. > > Setting this value when syncing settings in the KCM probably doesn't make > sense; it should instead be the default setting for SDDM on Wayland. I've > submitted a PR for that: https://github.com/sddm/sddm/pull/1681. > > If that's rejected, we have the following other options: > - Ask distros to set that by default in their packaging > - Always set it here when syncing settings > - Only set it here when syncing settings if the user is using any >100% > scaling on any screens, which we would need to determine by parsing KScreen > configs, which seems like it could be a can of worms A solution is here: https://forums.opensuse.org/t/ui-scaling-in-sddm-no-longer-works-after-kde-plasma-6-upgrade/173350/ But I want to know that 1 year has passed and sddm 0.21.0 has released. Has this problem not solved? (In reply to Nate Graham from comment #1) > Setting this value when syncing settings in the KCM probably doesn't make > sense; it should instead be the default setting for SDDM on Wayland. I've > submitted a PR for that: https://github.com/sddm/sddm/pull/1681. > > If that's rejected, we have the following other options: (...) So the patch got merged and a new SDDM would have been released by now. How does that affect the current status of this bug? Qt scaling doesn't really help if the compositor tells it a different scale. I thought I had already fixed this, but it turns out I forgot to cherry-pick it to 6.0... With https://invent.kde.org/plasma/sddm-kcm/-/commit/61ab30924b9b26dafbad9f4eb3aa6e2cefe73fc1 it now works for me System Information: uname -a Linux archlinux 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux Desktop: KDE Plasma Version: 6.0.3 KDE Frameworks Version: 6.0.0 QT Version: 6.6.3 Display Manager: SDDM Display Server: X11 and Wayland Problem: 1. Login screen does not respect global scaling options under X11 or Wayland when logging in from full Powerdown mode. 2. Login screen does respect global scaling options when logging in after resuming from Sleep mode. Session type confirmation: echo $XDG_SESSION_TYPE x11 echo $XDG_SESSION_TYPE wayland Observed Result: Login screen does not match global scaling options. Icons and Text are very small. Expected Result: Login screen ought to match global scaling options under X11 and Wayland. This only works with the Wayland session, and if you also run SDDM under kwin_wayland. You'll have to configure it to do that yourself if your distro doesn't do it for you. (In reply to Zamundaaa from comment #8) > This only works with the Wayland session, and if you also run SDDM under > kwin_wayland. You'll have to configure it to do that yourself if your distro > doesn't do it for you. For Arch Linux the solution is as follows: # cd /etc/sddm.conf.d # nano hidpi.conf * Add the following lines to hidpi.conf [General] GreeterEnvironment=QT_SCREEN_SCALE_FACTORS=2,QT_FONT_DPI=192 So does kcm_sddm set the UI scaling on SDDM wayland now? I'm on openSUSE Tumbleweed, KDE Plasma 6.0.3, which is mentioned as the fixed version, yet I still need to create the hidpi.conf file in order for UI scaling to work. |