Bug 410255

Summary: False detection of "switch to external screen"
Product: [Plasma] plasmashell Reporter: Aleksey Midenkov <midenok+kdebugs>
Component: generic-multiscreenAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kde, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
xorg.conf

Description Aleksey Midenkov 2019-07-26 22:28:59 UTC
Created attachment 121761 [details]
Screenshot

Since KDE display configuration is broken (and by other reasons) it is better to configure displays via xorg.conf. But after that KDE starts to display bogus dialog asking to change display mode. How to disable it completely and tell KDE to not try to reconfigure displays?
Comment 1 Aleksey Midenkov 2019-07-26 22:29:41 UTC
Created attachment 121762 [details]
xorg.conf
Comment 2 Aleksey Midenkov 2019-07-26 23:41:46 UTC
Just opinion on KDE display switcher:

https://www.reddit.com/r/kde/comments/96fwv9/plasma_513_awkward_switch_displays_behavior/
Comment 3 Aleksey Midenkov 2019-07-26 23:57:13 UTC
Workaround:

In the System Settings -> Background Services -> Startup and Shutdown.

I unticked KScreen 2, this stops it from starting automatically.
Comment 4 Kai Uwe Broulik 2019-07-29 08:25:45 UTC
You're configuring via Xorg.conf, then disable KScreen.
Comment 5 Aleksey Midenkov 2019-07-29 09:51:49 UTC
So what? It must a bug because there is no external screen. Please explain why it can't detect external screen connection properly?
Comment 6 Kai Uwe Broulik 2019-07-29 09:53:00 UTC
Please provide the output of xrandr -q
Didn't you explicitly configure your xorg.conf to have two Screens?
Comment 7 Aleksey Midenkov 2019-07-29 09:58:06 UTC
Screen 0: minimum 8 x 8, current 2280 x 1920, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1200x1920+1080+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00
   1680x1050     59.95
   1600x1200     60.00
   1280x1024     60.02
   1280x960      60.00
   1024x768      60.00
   800x600       60.32
   640x480       59.94
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected 1080x1920+0+0 right (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+
   1680x1050     59.95
   1600x1200     60.00
   1600x900      60.00
   1440x900      59.89
   1400x1050     59.98
   1280x1024     60.02
   1280x960      60.00
   1280x800      59.81
   1024x768      70.07    60.00
   800x600       72.19    60.32    56.25
   640x480       72.81    59.94
DP-1 disconnected (normal left inverted right x axis y axis)

Yes, I did explicitly configure xorg.conf to have two Screens.
Comment 8 David Edmundson 2019-07-29 10:14:04 UTC
That shows two screens.

Given Xorg things there are two screens and you explicitly told it to, what exactly is the bug?
Comment 9 Aleksey Midenkov 2019-07-30 23:47:30 UTC
Obviously these screens are permanently connected. Dialog should be shown only when new external screen is connected.
Comment 10 Kai Uwe Broulik 2019-07-31 06:38:28 UTC
RFC patch: https://phabricator.kde.org/D22803
Comment 11 Nate Graham 2019-08-05 03:31:19 UTC
That patch landed; did/would it fix this bug?
Comment 12 Nate Graham 2021-08-16 22:02:04 UTC
Assuming so. Please re-open if it's still a problem in Plasma 5.22 or newer.