Bug 403652 - [SDDM HiDPI] Inconsistent scaling factor between logged in or not
Summary: [SDDM HiDPI] Inconsistent scaling factor between logged in or not
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: David Edmundson
URL: https://github.com/sddm/sddm/issues/1135
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-27 11:56 UTC by Ansem
Modified: 2022-01-18 12:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Sddm with a whole view (81.21 KB, image/jpeg)
2019-01-27 11:56 UTC, Ansem
Details
SDDM (no user loged in) pointer (91.68 KB, image/jpeg)
2019-01-27 11:57 UTC, Ansem
Details
Sddm (user logged in) with a whole view (81.21 KB, image/jpeg)
2019-01-27 11:57 UTC, Ansem
Details
SDDM (user loged in) pointer (83.57 KB, image/jpeg)
2019-01-27 11:58 UTC, Ansem
Details
SDDD (user loged in) whole view (91.01 KB, image/jpeg)
2019-01-27 17:31 UTC, Ansem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ansem 2019-01-27 11:56:31 UTC
Created attachment 117672 [details]
Sddm with a whole view

Hi!

When I run my PC which use a UHD monitor(HiDPI) int the authenticator display the (SDDM screen) doesn't scale the UI, only its scaled the pointer, but once I login in into a user and I lock the session the UI is scaled properly but not the pointer. 

STEPS TO REPRODUCE
- Boot a PC with a 4K monitor.
- Look if the UI is re-scaled.
- Log into a user and re-scale the UI as you want.
- Reboot your PC and look if SDDM is re-scaled without any logged in user.
- Log into wit ha user and block your PC or whatever scenario to show the SDDM with an active user.



OBSERVED RESULT
The SDDM re-scaling factor is not applying in all cases.

EXPECTED RESULT
The UI scale factor should re-scale in all cases and not apply depending if a user is logged in and has the UI factor re-scaled.

SOFTWARE/OS VERSIONS
Sistema operativo: KDE neon 5.14
Versión de KDE Plasma: 5.14.5
Versión de Qt: 5.11.2
Versión de KDE Frameworks: 5.54.0
Versión del kernel: 4.15.0-43-generic
Tipo de OS: 64 bits
Procesadores: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memoria: 15,7 GiB de RAM

ADDITIONAL INFORMATION
I forced to scale GTK software, but it's happening to me forcing GTK scale factor or not.
Comment 1 Ansem 2019-01-27 11:57:13 UTC
Created attachment 117673 [details]
SDDM (no user loged in) pointer
Comment 2 Ansem 2019-01-27 11:57:53 UTC
Created attachment 117674 [details]
Sddm (user logged in) with a whole view
Comment 3 Ansem 2019-01-27 11:58:18 UTC
Created attachment 117675 [details]
SDDM (user loged in) pointer
Comment 4 Ansem 2019-01-27 17:31:38 UTC
Created attachment 117688 [details]
SDDD (user loged in) whole view
Comment 5 David Edmundson 2019-01-27 17:48:14 UTC
There's going to be some inconsistency, we can't load your user settings if we're not logged in.

There's a way to set the DPI on SDDM. See the end of:
https://github.com/sddm/sddm readme
Comment 6 Ansem 2019-01-27 18:07:00 UTC
(In reply to David Edmundson from comment #5)
> There's going to be some inconsistency, we can't load your user settings if
> we're not logged in.
> 
> There's a way to set the DPI on SDDM. See the end of:
> https://github.com/sddm/sddm readme

I guess that it was what happened but maybe it's some bad implementation or bad  point of view as a user.

I can scale my UI inside my session but as a user i expect the SDDM re-scale automatically without any session. What I'm trying to say is that something as I cannot control should detect and load a predefined config.

It's something similar as GTK and QT apps, until some new versions when I re-scale the apps on whole system in system-settings it doesn't force to re-scale GTK apps so I was forced to do it by files manually, from new frameworks or plasma(i don't know which versions) GTK and QT works together when some user re-scale its UI into its session.

I think SDDM should detect how many pixels are in a main display and re-scale it automatically or maybe in system-settings gives the possibility to do it graphically.
Comment 7 Nate Graham 2019-02-05 22:20:07 UTC
Basically your screen size and resolution is a hardware feature not a user preference, so ideally SDDM shouldn't need to read any user configuration files at all, it should just intelligently  do the scaling on its own by looking at the system's hardware.
Comment 8 Nate Graham 2019-02-05 22:21:50 UTC
That said, shouldn't this be tracked on the SDDM issue tracker? https://github.com/sddm/sddm/issues/
Comment 9 Ansem 2019-02-06 08:14:31 UTC
Understood.
Comment 10 Nate Graham 2019-02-06 19:11:04 UTC
https://github.com/sddm/sddm/issues/1135