Bug 474360 - [Wayland] KScreen does not enable external screens when connecting to the other dock
Summary: [Wayland] KScreen does not enable external screens when connecting to the oth...
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.7
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2023-09-10 10:31 UTC by Oded Arbel
Modified: 2023-10-11 03:46 UTC (History)
1 user (show)

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


Attachments
User journal from connecting the dock with the issue (2.17 MB, text/x-log)
2023-09-10 10:31 UTC, Oded Arbel
Details
My current kscreen configuration (1.52 KB, application/gzip)
2023-09-10 10:40 UTC, Oded Arbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2023-09-10 10:31:58 UTC
Created attachment 161533 [details]
User journal from connecting the dock with the issue

SUMMARY

I have two docking stations (at home and at the office). The display configuration is setup properly for both. When I work with one, I can take the laptop off the dock and on again, including setting it to sleep, and it works fine.

If I connect the laptop to the second dock - before waking the laptop, or after - it won't turn on the external screens connected to the dock. I can see - in the display configuration KCM - that it sees the external screens, but they are disabled.

If I log out and log back in, the screens are correctly enabled, but if I then go back to the first dock - the external screens are then detected and disabled there, and I have to log out and log back in there as well.

STEPS TO REPRODUCE
1. Have a proper display configuration in with one dock with external screens.
2. Log out, connect to another dock with external screens, log in and set up the screens there.
3. Disconnect second dock, put laptop to sleep, wake it up and connect to the first dock.

OBSERVED RESULT
The external screens are disabled. When trying to enable them, it either does not work (the checkbox is marked, after apply and OKing the configuration change, but the screen remains off, closing and restarting the KCM shows the screen is still disabled), or the screen resets to its default configuration (horizontal and on the wrong side of the built-in screen).

EXPECTED RESULT
The external screens should be enabled and configured according to the original configuration.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-060411-generic (64-bit)
Graphics Platform: offscreen
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION
I attached a log showing kscreen and kwin_wayland fighting among themselves (or something 😜🫣) when connecting the dock.

Maybe one of the issues is that the external screens sometimes change port numbers between different office days (sometimes they are DP-5 and DP-6, other times DP-7 and DP-8), but that doesn't seem to have happened recently (I have the kscreen config folder on git so I can track these things).
Comment 1 Oded Arbel 2023-09-10 10:40:50 UTC
Created attachment 161534 [details]
My current kscreen configuration
Comment 2 Oded Arbel 2023-09-10 10:41:43 UTC
BTW, this is "newish" behavior - definitely since 5.27, probably since 5.27.5
Comment 3 Oded Arbel 2023-09-10 10:42:04 UTC
Also, possibly related to the fact that I started running a mainline kernel 6.4.11
Comment 4 Nate Graham 2023-09-11 21:08:57 UTC
If you have the ability, would you be able to test this in Plasma 6? In Plasma 6, kwin_wayland does this stuff itself, so there's no more fight between kscreen and kwin_wayland.
Comment 5 Bug Janitor Service 2023-09-26 03:46:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-10-11 03:46:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!