Bug 436563 - KScreen needs to be able to change display configuration of SDDM, too
Summary: KScreen needs to be able to change display configuration of SDDM, too
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (show other bugs)
Version: 5.21.4
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 03:18 UTC by yamiyukisenpai
Modified: 2022-11-12 14:26 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 yamiyukisenpai 2021-05-04 03:18:25 UTC
SUMMARY
In my multi-monitor setup, my secondary display is placed to the left of my laptop.  SDDM, however, is assuming it's positioned on the right instead. It gets annoying at startup when I'm trying to login and trying to find my cursor.

It gets corrected after login, thankfully.

EXPECTED RESULT
SDDM and KScreen needs to talk together to fix that papercut issue.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-16-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
I believe MATE has the ability to save the display settings system-wide.
Comment 1 David Edmundson 2021-05-04 21:59:11 UTC
This is out of scope.
Comment 2 Nate Graham 2021-05-06 14:21:12 UTC
I think there's a legitimate bug in here somewhere. If you have, say, a multi-screen arrangement with one of them rotated, having it not be rotated correctly in SDDM seems like a bug for sure.

It would probably require some cross-project coordination to fix this, but that's doable, no?
Comment 3 yamiyukisenpai 2021-05-07 02:42:48 UTC
(In reply to David Edmundson from comment #1)
> This is out of scope.

May be for KScreen, but what about SDDM's current ability to synchronize its settings?  It may be a bit tedious to go through another step to accomplish this, but it certainly is better than nothing.

On my gaming desktop with NVIDIA GPU, I have to set the default display using the NVIDIA X Server Settings and have it write an xorg.conf so that SDDM will also be updated to work with my setup.  My laptop doesn't have a tool that can do that because it's an Intel-based laptop with iGPU.  And for newb users, they wouldn't be comfortable doing that.
Comment 4 Roman Gilg 2021-05-07 09:03:07 UTC
Disman (https://gitlab.com/kwinft/disman) runs independent of a Plasma workspace.

It reuses the configuration data for each session with the same windowing system. If Disman would be launched by SDDM then Disman would do what you want automatically.

You can probably try it out yourself through some systemd service hookups. See the section of the README on how to use an independent Disman:
https://gitlab.com/kwinft/disman#independent
Comment 5 David Edmundson 2021-05-07 09:43:55 UTC
That is true for spawning kded too. But you still have to do that and sync settings.
Comment 6 Nate Graham 2021-08-29 16:49:08 UTC
I seem to recall something getting done for this recently. Aleix, I think you did the work; can you confirm?
Comment 7 Aleix Pol 2021-09-03 17:26:33 UTC
Yes, our KCM will sync our display configs together with the rest from that "Synchronize" button.

I've just tested on Wayland SDDM sessions though. To have it run on x11 it will need more work (it would consist in then running also kscreen there)
Comment 8 Nate Graham 2022-11-12 14:26:35 UTC
Fixed for Wayland, then. Doing it for X11 is probably not going to happen since almost no Plasma developers still use it at this point.