Bug 495223 - Monitor descriptions not updated if monitor switched while suspended
Summary: Monitor descriptions not updated if monitor switched while suspended
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: output configuration (show other bugs)
Version: 6.2.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-23 07:38 UTC by Karl-Johan Karlsson
Modified: 2025-02-24 18:29 UTC (History)
5 users (show)

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


Attachments
Screenshot of Brightness and Colour widget, reporting 2 actual HP monitors as 1 Dell and 1 HP (31.94 KB, image/png)
2024-10-23 07:38 UTC, Karl-Johan Karlsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2024-10-23 07:38:12 UTC
Created attachment 175129 [details]
Screenshot of Brightness and Colour widget, reporting 2 actual HP monitors as 1 Dell and 1 HP

SUMMARY

I often move a laptop between two USB-C docks, each with external monitors attached via DisplayPort. While troubleshooting all the brightness issues that appeared in Plasma 6.2, I noticed that after moving between docks, the monitor descriptions in KScreen still show the old monitors.

STEPS TO REPRODUCE

1. Connect to a USB-C dock with 1 external display from Dell.
2. Suspend to RAM.
3. Disconnect from the dock.
4. Connect to another dock, with 2 external displays from HP.
5. Wake up from suspend.
6a. Click the "Brightness and Colour" widget.
6b. Alternatively, click "Display Configuration" in the system tray and then "Configure Display Settings..."
6c. Alternatively, run the following commands:
   qdbus-qt6 org.kde.ScreenBrightness /org/kde/ScreenBrightness org.kde.ScreenBrightness.DisplaysDBusNames
take the display numbers for the external monitors from the output and use them as X and Y in the following:
   qdbus-qt6 org.kde.ScreenBrightness /org/kde/ScreenBrightness/displayX org.kde.ScreenBrightness.Display.Label
   qdbus-qt6 org.kde.ScreenBrightness /org/kde/ScreenBrightness/displayY org.kde.ScreenBrightness.Display.Label

OBSERVED RESULT

Of the two external monitors, one label shows the old Dell monitor, which is no longer connected. The other label shows the correct HP monitor.

EXPECTED RESULT

The labels should reflect the hardware actually plugged in to the system, even after the hardware changes.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION

Laptop is a Lenovo ThinkPad T14 Gen 3, model 21AH00CSMX. Docks are both Lenovo ThinkPad Universal USB-C Docks, model 40AY.
Comment 1 Jakob Petsovits 2025-02-24 18:29:36 UTC
KScreen and the Display Configuration KCM get their data from KWin in a Wayland session. Moving components.