STEPS TO REPRODUCE 1. Two screens: laptop + external monitor 2. Only external monitor is on OBSERVED RESULT When you log in it will say dnd mode is on because screens are mirrored EXPECTED RESULT Only one screen is on so they cannot be mirrored and thus there is no reason for dnd to be on. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION Only on Wayland
I can reproduce this with an external screen plugged into a laptop and the laptop screen disabled. Internally, KScreen's model says that the laptop screen is enabled, even though it's not. As a result, it appears in the region where you can arrange screens, and becomes overlapped by the external screen. The notifications code sees the overlap and believes it to be mirroring (because that's how KScreen represents mirroring) and enables DND mode. Moving back to KScreen as I believe this is a KScreen bug. The internal screen should not be marked internally as enabled when it is not.
I was going to submit a report on this but it seems to have been determined pretty quickly (which is good). More so, when this happens, it's not possible to re-enable the laptop monitor. While the monitor is powered off, yet toggled on in display settings, unchecking -> apply -> recheck -> apply doesn't power the monitor back on. More so, assuming one disables the laptop monitor, applies the change, closes and reopens the display settings window, it's reset back to enabled. The only way, at this point, to "reset" everything and have the laptop monitor powered back on is to delete all entries in .local/share/kscreen/ and reboot.
*** Bug 432873 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3050
Git commit 71bcbf852e6d4434b56dba88f3a0146d80648e79 by Vlad Zahorodnii. Committed on 14/10/2022 at 09:28. Pushed by vladz into branch 'master'. wayland: Sync output device's enabled property The output can be already disabled when the output device is created. M +1 -0 src/wayland/outputdevice_v2_interface.cpp https://invent.kde.org/plasma/kwin/commit/71bcbf852e6d4434b56dba88f3a0146d80648e79
Git commit ff28dd06936d733ac6d65f41669b1331fa28d1cc by Vlad Zahorodnii. Committed on 14/10/2022 at 09:49. Pushed by vladz into branch 'Plasma/5.26'. wayland: Sync output device's enabled property The output can be already disabled when the output device is created. (cherry picked from commit 71bcbf852e6d4434b56dba88f3a0146d80648e79) M +1 -0 src/wayland/outputdevice_v2_interface.cpp https://invent.kde.org/plasma/kwin/commit/ff28dd06936d733ac6d65f41669b1331fa28d1cc
That fixed it. :) Cheers!
*** Bug 425186 has been marked as a duplicate of this bug. ***
*** Bug 418185 has been marked as a duplicate of this bug. ***