Summary: | External screens switch off when laptop lid is closed with USB-C dock with dual monitor (single monitor works) | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Gábor Katona <katonag> |
Component: | Power management & brightness | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate, xaver.hugl |
Priority: | NOR | ||
Version First Reported In: | 6.1.0 | ||
Target Milestone: | 1.0 | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/4c4d4dda325e717ed31e517cecc83d5fd8657857 | Version Fixed In: | 6.3.0 |
Sentry Crash Report: | |||
Attachments: | Window shifted halfway off screen after opening lid |
Description
Gábor Katona
2024-04-30 07:59:22 UTC
Created attachment 169030 [details]
Window shifted halfway off screen after opening lid
This problem is still present, but as I have tested it only affects Wayland session. If using X session everything work fine. A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/491 Git commit 9907c8a247a356eeb4214d0d3c6fd8733399bd76 by Xaver Hugl. Committed on 10/01/2025 at 17:42. Pushed by zamundaaa into branch 'master'. daemon/actions: don't immediately suspend when the external monitor gets removed Display hotplugs don't reliably mean that the display was actually physically unplugged, it can also just be a dock or monitor acting weird. To fix that / work around it, this only triggers the action if there's still no display after 2s. M +18 -4 daemon/actions/bundled/handlebuttonevents.cpp M +2 -0 daemon/actions/bundled/handlebuttonevents.h https://invent.kde.org/plasma/powerdevil/-/commit/9907c8a247a356eeb4214d0d3c6fd8733399bd76 Git commit 4c4d4dda325e717ed31e517cecc83d5fd8657857 by Xaver Hugl. Committed on 10/01/2025 at 17:56. Pushed by zamundaaa into branch 'Plasma/6.3'. daemon/actions: don't immediately suspend when the external monitor gets removed Display hotplugs don't reliably mean that the display was actually physically unplugged, it can also just be a dock or monitor acting weird. To fix that / work around it, this only triggers the action if there's still no display after 2s. (cherry picked from commit 9907c8a247a356eeb4214d0d3c6fd8733399bd76) Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com> M +18 -4 daemon/actions/bundled/handlebuttonevents.cpp M +2 -0 daemon/actions/bundled/handlebuttonevents.h https://invent.kde.org/plasma/powerdevil/-/commit/4c4d4dda325e717ed31e517cecc83d5fd8657857 I am on 6.3.2 now and still have this bug, however now the windows are not corrupted, only the external screens switch off when closing the lid. If I have only one monitor switched on, it works fine. If I switch on the second monitor while the lid is closed, both screens are switched off. Moreover, if I first close the lid with dual monitors (thus the screens switch off), then switch off one of the monitors, then open the lid, the second monitor is still there in the screen setup; i.e. its removal is not detected. I think the bug should be reopened or should I make a new report? I have just tested, the bug is only present in Wayland session, with X11 it works fine. I do not even know if the bug was resolved for me, as I switched to X11 because of several bugs with Wayland, however now I should switch back because of a serious bug with X11 sessions. One more comment: with kscreen-doctor I can reenable the external screens while disabling the internal, thus it is purely a wrong logic somewhere. Sounds a bit like a new bug; can you open a new bug report for it? Thanks! (In reply to Nate Graham from comment #9) > Sounds a bit like a new bug; can you open a new bug report for it? Thanks! Thanks, I have reported as bug 500888. |