Bug 418185 - Notification widget incorrectly sees extended display as mirrored and inappropriately enters Do Not Disturb mode
Summary: Notification widget incorrectly sees extended display as mirrored and inappro...
Status: RESOLVED DUPLICATE of bug 460247
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-02-25 15:53 UTC by Nate Graham
Modified: 2023-04-28 05:08 UTC (History)
4 users (show)

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


Attachments
Not mirrored (982.26 KB, image/jpeg)
2020-02-25 15:53 UTC, Nate Graham
Details
kscreen-doctor -j output (32.14 KB, text/plain)
2020-02-26 18:45 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-02-25 15:53:02 UTC
Created attachment 126408 [details]
Not mirrored

When I plug in my external screen, the desktop gets extended. However the notification widget sees it as mirrored, and therefore inappropriately enters Do No Disturb mode.

I can turn Disturb mode off, but it turns on again every time I disconnect and re-connect the external display.
Comment 1 Kai Uwe Broulik 2020-02-26 08:10:51 UTC
Please provide the output of kscreen-doctor -j with screens in this configuration.
Comment 2 Nate Graham 2020-02-26 18:45:34 UTC
Created attachment 126438 [details]
kscreen-doctor -j output
Comment 3 Nate Graham 2020-02-26 18:45:41 UTC
Attached.
Comment 4 Kai Uwe Broulik 2020-02-27 08:18:14 UTC
So your right screen is at
"pos": {
                "x": 1919,
                "y": 0
            },
which overlaps by 1 pixel. How did you set the screen position? Through the OSD or by manually dragging?

I probably should make the check more lenient (e.g. only if the screens overlap by 10 pixels or so) but I would like to know the cause first
Comment 5 Nate Graham 2020-02-27 15:46:27 UTC
I didn't manually set anything; I just plugged it in and it automatically appeared to the right of my current screen.

Could the check see if the geometry of both screens is 100% overlapping, rather than having any overlapping?
Comment 6 Kai Uwe Broulik 2020-02-27 15:48:04 UTC
You sure it didn't restore a previous config of sorts? Then it's probably a KScreen bug.

100% wouldn't work as you can have different sized screens overlapping, e.g. a projector only showing a section of your main screen.
Comment 7 Nate Graham 2020-02-27 17:56:52 UTC
How can I check to see if it restored a previous config?

Regardless, yeah I guess it would be nice to build in a bit of wiggle room for the overlap calculation.
Comment 8 Jose M. Prieto 2020-08-31 13:52:39 UTC
I'm also seeing this and had a 1px overlap. I noticed the DnD mode after I disabled one of the screens in kscreen for a screen sharing session and then enabled it again. 

I have tried to reproduce:

 * if I disable the screen, apply, enable screen and apply I don't get the 1px overlap, but
 * if I close kscreen after disabling, when I open it again and enable the screen, the 1px overlap is there.
Comment 9 grannie 2021-02-12 18:45:45 UTC
I also have the 1px overlap. But
 >  disable the screen, apply, enable screen and apply
did not help :/

Is there already a bug for kscreen filed?
Comment 10 Nate Graham 2021-10-24 14:21:44 UTC
Indeed: Bug 432873. Marking as a duplicate.

*** This bug has been marked as a duplicate of bug 432873 ***
Comment 11 Nate Graham 2023-04-28 05:08:35 UTC

*** This bug has been marked as a duplicate of bug 460247 ***