Bug 466149 - On Xorg, Plasma's idea of the monitor configuration differs from xrandr's
Summary: On Xorg, Plasma's idea of the monitor configuration differs from xrandr's
Status: REPORTED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.0
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
: 469090 469152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-20 17:06 UTC by Trent M
Modified: 2023-06-02 17:39 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trent M 2023-02-20 17:06:59 UTC
SUMMARY
Hi there. I was initially looking into this as a problem in 5.27 where if your primary monitor is the rightmost monitor, things that rely on the primary monitor being index 0 no longer work correctly, such as the Virtual Desktops Only on Primary KWin script (https://github.com/wsdfhjxc/kwin-scripts/tree/master/virtual-desktops-only-on-primary) But I also found that Steam now starts games on the leftmost monitor as well. My rightmost monitor is primary because of how my physical spaces are arranged at home and at work.

I found a related complaint on reddit (https://www.reddit.com/r/kde/comments/114sl90/steam_launches_games_on_wrong_monitor_since_527/) and there, someone mentioned that configuring the primary monitor in xrandr was a workaround for them.

But then I actually checked xrandr and found that its idea of the display configuration was somehow completely incorrect. My actual display arrangement is two monitors connected via a Dell WD19S dock, laptop closed, rightmost primary. That's what Plasma shows, too.

What xrandr shows is that the laptop monitor is on, the leftmost monitor, and the primary monitor. And then only one of the external monitors is shown as connected.

STEPS TO REPRODUCE
1. Connect laptop to a dock with two or more external monitors, and close the lid.
2. Configure in Plasma's display configuration, and set the rightmost monitor as primary.
3. Check xrandr configuration in a terminal.

OBSERVED RESULT
Plasma and xrandr are in disagreement on which monitor is primary, and what the display configuration actually is.

EXPECTED RESULT
Plasma and xrandr show the same configuration, and applications/scripts that use the primary monitor put things in the right place.

SOFTWARE/OS VERSIONS
Linux: 5.19.0-32-generic
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
xrandr output:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected primary (normal left inverted right x axis y axis)
   1920x1080    240.00 + 240.00  
   1680x1050    240.00  
   1400x1050    240.00  
   1600x900     240.00  
   1280x1024    240.00  
   1400x900     240.00  
   1280x960     240.00  
   1440x810     240.00  
   1368x768     240.00  
   1280x800     240.00  
   1152x864     240.00  
   1280x720     240.00  
   1024x768     240.00  
   1024x768i    240.00  
   960x720      240.00  
   928x696      240.00  
   896x672      240.00  
   1024x576     240.00  
   960x600      240.00  
   832x624      240.00  
   960x540      240.00  
   800x600      240.00  
   840x525      240.00  
   864x486      240.00  
   700x525      240.00  
   800x450      240.00  
   640x512      240.00  
   700x450      240.00  
   640x480      240.00  
   720x405      240.00  
   720x400      240.00  
   684x384      240.00  
   640x400      240.00  
   576x432      240.00  
   640x360      240.00  
   640x350      240.00  
   512x384      240.00  
   512x384i     240.00  
   512x288      240.00  
   416x312      240.00  
   480x270      240.00  
   400x300      240.00  
   432x243      240.00  
   320x240      240.00  
   360x202      240.00  
   360x200      240.00  
   320x200      239.99  
   320x180      240.00  
   320x175      239.99  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)

kscreen-console output:

START: Requesting Config
Received config. Took 14 milliseconds
Screen:
        maxSize: QSize(16384, 16384)
        minSize: QSize(320, 200)
        currentSize: QSize(3840, 1080)

-----------------------------------------------------

Id:  65
Name:  "eDP-1"
Type:  "Panel (Laptop)"
Connected:  true
Enabled:  false
Priority:  0
Rotation:  KScreen::Output::None
Pos:  QPoint(0,0)
MMSize:  QSize(344, 194)
FollowPreferredMode:  false
Scale:  1
Clones:  None
Mode:  ""
Preferred Mode:  "72"
Preferred modes:  ("72")
Modes: 
         "100"    ""   QSize(700, 450)   240
         "101"    ""   QSize(640, 480)   240
         "102"    ""   QSize(720, 405)   239.998
         "103"    ""   QSize(720, 400)   239.999
         "104"    ""   QSize(684, 384)   239.999
         "105"    ""   QSize(640, 400)   239.998
         "106"    ""   QSize(576, 432)   240
         "107"    ""   QSize(640, 360)   240
         "108"    ""   QSize(640, 350)   239.998
         "109"    ""   QSize(512, 384)   239.999
         "110"    ""   QSize(512, 384)   239.998
         "111"    ""   QSize(512, 288)   239.999
         "112"    ""   QSize(416, 312)   239.998
         "113"    ""   QSize(480, 270)   239.999
         "114"    ""   QSize(400, 300)   240
         "115"    ""   QSize(432, 243)   240
         "116"    ""   QSize(320, 240)   240
         "117"    ""   QSize(360, 202)   239.996
         "118"    ""   QSize(360, 200)   239.997
         "119"    ""   QSize(320, 200)   239.995
         "120"    ""   QSize(320, 180)   240
         "121"    ""   QSize(320, 175)   239.995
         "72"    ""   QSize(1920, 1080)   240
         "73"    ""   QSize(1920, 1080)   240
         "74"    ""   QSize(1680, 1050)   240
         "75"    ""   QSize(1400, 1050)   240
         "76"    ""   QSize(1600, 900)   240
         "77"    ""   QSize(1280, 1024)   239.999
         "78"    ""   QSize(1400, 900)   240
         "79"    ""   QSize(1280, 960)   240
         "80"    ""   QSize(1440, 810)   240
         "81"    ""   QSize(1368, 768)   239.999
         "82"    ""   QSize(1280, 800)   239.999
         "83"    ""   QSize(1152, 864)   240
         "84"    ""   QSize(1280, 720)   239.999
         "85"    ""   QSize(1024, 768)   240
         "86"    ""   QSize(1024, 768)   239.999
         "87"    ""   QSize(960, 720)   240
         "88"    ""   QSize(928, 696)   240
         "89"    ""   QSize(896, 672)   240
         "90"    ""   QSize(1024, 576)   239.999
         "91"    ""   QSize(960, 600)   240
         "92"    ""   QSize(832, 624)   240
         "93"    ""   QSize(960, 540)   239.999
         "94"    ""   QSize(800, 600)   240
         "95"    ""   QSize(840, 525)   240
         "96"    ""   QSize(864, 486)   240
         "97"    ""   QSize(700, 525)   240
         "98"    ""   QSize(800, 450)   240
         "99"    ""   QSize(640, 512)   239.999
EDID Info: 
        Device ID:  "xrandr-Sharp Corporation-LQ156M1JW03"
        Name:  "LQ156M1JW03"
        Vendor:  "Sharp Corporation"
        Serial:  ""
        EISA ID:  ""
        Hash:  "748ddbb26df71d931d4bfd5e40a3b297"
        Width:  34
        Height:  19
        Gamma:  2.2
        Red:  QQuaternion(scalar:1, vector:(0.639648, 0.328125, 0))
        Green:  QQuaternion(scalar:1, vector:(0.299805, 0.599609, 0))
        Blue:  QQuaternion(scalar:1, vector:(0.149414, 0.0595703, 0))
        White:  QQuaternion(scalar:1, vector:(0.3125, 0.328125, 0))

-----------------------------------------------------

Id:  66
Name:  "DP-1"
Type:  "DisplayPort"
Connected:  false

-----------------------------------------------------

Id:  67
Name:  "HDMI-1"
Type:  "HDMI"
Connected:  false

-----------------------------------------------------

Id:  68
Name:  "DP-1-1"
Type:  "DisplayPort"
Connected:  true
Enabled:  true
Priority:  2
Rotation:  KScreen::Output::None
Pos:  QPoint(0,0)
MMSize:  QSize(509, 286)
FollowPreferredMode:  false
Size:  QSize(1920, 1080)
Scale:  1
Clones:  None
Mode:  "122"
Preferred Mode:  "122"
Preferred modes:  ("122")
Modes: 
         "122"    ""   QSize(1920, 1080)   60
         "123"    ""   QSize(1600, 900)   60
         "124"    ""   QSize(1280, 1024)   75.0247
         "125"    ""   QSize(1280, 1024)   60.0197
         "126"    ""   QSize(1152, 864)   75
         "127"    ""   QSize(1024, 768)   75.0286
         "128"    ""   QSize(1024, 768)   60.0038
         "129"    ""   QSize(800, 600)   75
         "130"    ""   QSize(800, 600)   60.3165
         "131"    ""   QSize(640, 480)   75
         "132"    ""   QSize(640, 480)   59.9405
         "133"    ""   QSize(720, 400)   70.0817
EDID Info: 
        Device ID:  "xrandr-Dell Inc.-DELL P2314H-7R1K346SAP5L"
        Name:  "DELL P2314H"
        Vendor:  "Dell Inc."
        Serial:  "7R1K346SAP5L"
        EISA ID:  ""
        Hash:  "b95ae31d3093f93eaabb9173d77e62d9"
        Width:  51
        Height:  29
        Gamma:  2.2
        Red:  QQuaternion(scalar:1, vector:(0.651367, 0.335938, 0))
        Green:  QQuaternion(scalar:1, vector:(0.321289, 0.614258, 0))
        Blue:  QQuaternion(scalar:1, vector:(0.154297, 0.0634766, 0))
        White:  QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))

-----------------------------------------------------

Id:  69
Name:  "DP-1-2"
Type:  "DisplayPort"
Connected:  true
Enabled:  true
Priority:  1
Rotation:  KScreen::Output::None
Pos:  QPoint(1920,0)
MMSize:  QSize(509, 286)
FollowPreferredMode:  false
Size:  QSize(1920, 1080)
Scale:  1
Clones:  None
Mode:  "122"
Preferred Mode:  "122"
Preferred modes:  ("122")
Modes: 
         "122"    ""   QSize(1920, 1080)   60
         "123"    ""   QSize(1600, 900)   60
         "124"    ""   QSize(1280, 1024)   75.0247
         "125"    ""   QSize(1280, 1024)   60.0197
         "126"    ""   QSize(1152, 864)   75
         "127"    ""   QSize(1024, 768)   75.0286
         "128"    ""   QSize(1024, 768)   60.0038
         "129"    ""   QSize(800, 600)   75
         "130"    ""   QSize(800, 600)   60.3165
         "131"    ""   QSize(640, 480)   75
         "132"    ""   QSize(640, 480)   59.9405
         "133"    ""   QSize(720, 400)   70.0817
EDID Info: 
        Device ID:  "xrandr-Dell Inc.-DELL P2314H-7R1K346SAPHL"
        Name:  "DELL P2314H"
        Vendor:  "Dell Inc."
        Serial:  "7R1K346SAPHL"
        EISA ID:  ""
        Hash:  "bb2c9374d2c2b4ba27fcd729d78a7065"
        Width:  51
        Height:  29
        Gamma:  2.2
        Red:  QQuaternion(scalar:1, vector:(0.651367, 0.335938, 0))
        Green:  QQuaternion(scalar:1, vector:(0.321289, 0.614258, 0))
        Blue:  QQuaternion(scalar:1, vector:(0.154297, 0.0634766, 0))
        White:  QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))

-----------------------------------------------------

Id:  70
Name:  "DP-1-3"
Type:  "DisplayPort"
Connected:  false

-----------------------------------------------------

Id:  530
Name:  "HDMI-1-0"
Type:  "HDMI"
Connected:  false

-----------------------------------------------------

Id:  531
Name:  "DP-1-0"
Type:  "DisplayPort"
Connected:  false

-----------------------------------------------------

Id:  532
Name:  "DP-1-1"
Type:  "DisplayPort"
Connected:  false
Comment 1 Trent M 2023-02-22 14:14:13 UTC
I am now experiencing an additional problem. When I start up Plasma, the panel appears on the left monitor. When I check the containments window, it believes that the leftmost monitor is the primary monitor. But the system settings window shows that the rightmost monitor is the primary window. Restarting plasmashell doesn't seem to make a difference. To get the configuration back the way I want it, I change the left monitor to primary, hit apply, and then change it back, and hit apply again.

I don't know if this part is actually #461822, or if it's more related to my initial submission.

Either way, I will have to move back to Kubuntu 22.04 and Plasma 5.25 for now, because my particular multi-monitor situation has regressed pretty badly. I will keep Neon and 5.27 around to get you more info when you need it; please let me know.
Comment 2 David Edmundson 2023-02-22 15:21:57 UTC
The xrandr output shows  DP-1-1 disconnected, the kscreen output shows DP-1-1 connected

Are these different program outputs of the same setup?
Comment 3 Trent M 2023-02-23 05:59:15 UTC
(In reply to David Edmundson from comment #2)
> The xrandr output shows  DP-1-1 disconnected, the kscreen output shows
> DP-1-1 connected
> 
> Are these different program outputs of the same setup?

That's correct.
Comment 4 Richard 2023-03-01 21:39:16 UTC
I can confirm this issue.
When I power off/on both of my monitors KDE loses track of the primary.
The secondary becomes primary which is confirmed by xrandr while KDE still shows the "correct" setting.

kscreen-doctor -o
Output: 444 DVI-D-0 enabled connected priority 2 DVI Modes: 445:1920x1080@60*! 446:1680x1050@60 447:1600x900@60 448:1440x900@60 449:1400x1050@60 450:1280x1024@75 451:1280x1024@60 452:1280x800@60 453:1280x720@60 454:1152x864@75 455:1024x768@75 456:1024x768@60 457:800x600@75 458:800x600@60 459:800x600@56 460:640x480@75 461:640x480@60 Geometry: 3840,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 462 HDMI-0 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 463 HDMI-1 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 464 DP-0 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 465 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 466 DP-2 enabled connected priority 1 DisplayPort Modes: 445:1920x1080@60 447:1600x900@60 451:1280x1024@60 452:1280x800@60 453:1280x720@60 456:1024x768@60 458:800x600@60 461:640x480@60 467:3840x2160@60*! 468:3840x2160@30 469:1920x1080@60 470:1280x720@60 471:1152x864@60 472:720x480@60 473:640x480@60 Geometry: 0,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 474 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

xrandr
Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
DVI-D-0 connected primary 1920x1080+3840+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    59.94  
HDMI-0 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3840x2160     60.00*+  30.00  
   1920x1080     60.00    59.94  
   1600x900      60.00  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94  
   1152x864      59.96  
   1024x768      60.00  
   800x600       60.32  
   720x480       59.94  
   640x480       59.94    59.93  
DP-3 disconnected (normal left inverted right x axis y axis)

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-32-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 1700 Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: AX370-Gaming 5
Comment 5 Nate Graham 2023-05-02 16:07:40 UTC
*** Bug 469152 has been marked as a duplicate of this bug. ***
Comment 6 Richard 2023-05-11 21:43:55 UTC
5.27.5 fixed the issue.

Likely related to #465396 and fix https://invent.kde.org/plasma/libkscreen/-/commit/49cc50e629d55d258218bbe5e0abb0c6e93951e3
Comment 7 Nate Graham 2023-05-12 02:04:15 UTC
Nice! Make some logical sense.

Trent M, can you confirm this?
Comment 8 Trent M 2023-05-12 14:14:00 UTC
I can confirm this, with some caveats.

So, the xrandr command line client is still showing an incorrect configuration. But while I was using Kubuntu 22.04 w/ Plasma 5.25 waiting for fixes on this, I noticed that its xrandr was doing the same thing. It was exhibiting the correct behavior--games start up on the right monitor, the virtual desktops only on primary script worked--but xrandr showed the completely wrong thing.

So yes, I can confirm that the *behavior* is now correct again. Virtual desktops only on primary works again, and games are starting up on the correct monitor. Is the xrandr CLI's incorrect information just a red herring? One thing I can say is that xrandr no longer believes the disabled laptop screen is the primary monitor; it now believes DP-1-2 is the primary. That much did change, and that connector is consistent with what the primary monitor is supposed to be.

I won't mark it as resolved myself because I'll leave it up to you all to decide whether or not xrandr's CLI saying the wrong thing is actually a problem. The behavior being correct is enough for me to use Neon as my daily driver again. 🙂
Comment 9 Nate Graham 2023-05-14 17:39:19 UTC
Hmm, I'm confused. You said:

> xrandr command line client is still showing an incorrect configuration

And then:

> One thing I can say is that xrandr no longer believes the disabled laptop screen is the primary monitor;
> it now believes DP-1-2 is the primary. That much did change, and that connector is consistent with what
> the primary monitor is supposed to be.

And then:

> xrandr's CLI saying the wrong thing

So is the xrandr command line tool showing the wrong primary monitor or not? :)
Comment 10 Trent M 2023-05-14 18:01:11 UTC
Sorry, I guess I didn't explain it clearly. xrandr's CLI says that my active monitors are eDP-1, which is my laptop screen, and DP-1-2, which is my rightmost external monitor. But my actual active monitors are DP-1-1 and DP-1-2. My laptop screen is disabled. The lid's shut because it sits in front of my left monitor. This is reflected in the kscreen-console output.

So xrandr incorrectly thinks I'm using eDP-1 and DP-1-2, whereas I'm actually using DP-1-1 and DP-1-2.

There's one part of the issue that's solved, the one that affects usability the most. My primary monitor is correct, it's the rightmost one. And things that depend on that information are working again. What isn't solved is that xrandr thinks my leftmost monitor is the laptop screen, whereas it's actually an external screen, and kscreen has this correct. I don't know if it actually breaks anything significant, though. The resulting screen geometry is still correct. Both the laptop monitor and my left monitor are 1080p, and both xrandr and kscreen-console show they're side-by-side with the correct monitor indicated as primary.

I was curious what would happen if I made the leftmost monitor primary. So I tried that, and xrandr still thinks the laptop monitor's on. And now it doesn't indicate any primary at all! Here's the xrandr output from that case. Note that my rightmost monitor has now moved to DP-1-3 for no discernible reason. kscreen-console shows this too. One of the very things that motivated the big multi-monitor rewrite!

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected (normal left inverted right x axis y axis)
   1920x1080    240.00 + 240.00  
   1680x1050    240.00  
   1400x1050    240.00  
   1600x900     240.00  
   1280x1024    240.00  
   1400x900     240.00  
   1280x960     240.00  
   1440x810     240.00  
   1368x768     240.00  
   1280x800     240.00  
   1152x864     240.00  
   1280x720     240.00  
   1024x768     240.00  
   1024x768i    240.00  
   960x720      240.00  
   928x696      240.00  
   896x672      240.00  
   1024x576     240.00  
   960x600      240.00  
   832x624      240.00  
   960x540      240.00  
   800x600      240.00  
   840x525      240.00  
   864x486      240.00  
   700x525      240.00  
   800x450      240.00  
   640x512      240.00  
   700x450      240.00  
   640x480      240.00  
   720x405      240.00  
   720x400      240.00  
   684x384      240.00  
   640x400      240.00  
   576x432      240.00  
   640x360      240.00  
   640x350      240.00  
   512x384      240.00  
   512x384i     240.00  
   512x288      240.00  
   416x312      240.00  
   480x270      240.00  
   400x300      240.00  
   432x243      240.00  
   320x240      240.00  
   360x202      240.00  
   360x200      240.00  
   320x200      239.99  
   320x180      240.00  
   320x175      239.99  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected primary (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   832x624       74.55  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
  1440x900 (0x7e) 88.750MHz +HSync -VSync
        h: width  1440 start 1488 end 1520 total 1600 skew    0 clock  55.47KHz
        v: height  900 start  903 end  909 total  926           clock  59.90Hz
Comment 11 Trent M 2023-05-14 18:05:22 UTC
Sorry to double-post; looks like something in the new xrandr output escaped my notice until I posted it here. It *does* actually indicate a primary: DP-1-1, which it thinks is not connected at all. It also doesn't indicate that any particular mode is selected on eDP-1-1; there should be an asterisk by the one in use. So it's not using any mode, but it's connected and assigned to a screen position. 🤔
Comment 12 Nate Graham 2023-05-14 23:25:24 UTC
Ok, thanks!
Comment 13 Nate Graham 2023-05-18 15:51:50 UTC
*** Bug 469090 has been marked as a duplicate of this bug. ***
Comment 14 zyf0330 2023-05-19 05:36:35 UTC Comment hidden (spam)
Comment 15 Nate Graham 2023-05-19 17:20:43 UTC Comment hidden (spam)
Comment 16 Tupac 2023-05-28 08:09:12 UTC
I still have this problem on Fedora 38 with 5.27.5 (Zawertun copr).
My main monitor in the kde conf is the right (➡️) one but xrandr thinks it's the left (⬅️) one, so the relevant apps open in the wrong monitor. 
Noted this is from a fresh Fedora install so I only had 5.27.4 and 2.27.5 if that's any relevant.
Comment 17 zyf0330 2023-05-31 01:56:30 UTC
(In reply to Tupac from comment #16)
> I still have this problem on Fedora 38 with 5.27.5 (Zawertun copr).
> My main monitor in the kde conf is the right (➡️) one but xrandr thinks it's
> the left (⬅️) one, so the relevant apps open in the wrong monitor. 
> Noted this is from a fresh Fedora install so I only had 5.27.4 and 2.27.5 if
> that's any relevant.

What is your `xrandr` output
Comment 18 Tupac 2023-06-01 05:18:35 UTC
(In reply to zyf0330 from comment #17)
> What is your `xrandr` output

Screen 0: minimum 16 x 16, current 3532 x 1080, maximum 32767 x 32767
XWAYLAND0 connected 1600x900+0+90 (normal left inverted right x axis y axis) 380mm x 210mm
   1600x900      74.89*+
   1152x864      74.82  
   1024x768      74.90  
   800x600       74.91  
   640x480       74.77  
   320x240       73.82  
   1440x900      74.98  
   1280x800      74.93  
   720x480       74.51  
   640x400       74.23  
   320x200       73.70  
   1368x768      74.90  
   1280x720      74.78  
   1024x576      74.80  
   864x486       74.45  
   720x400       74.23  
   640x350       74.53  
XWAYLAND1 connected 1920x1080+1612+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     74.91*+
   1440x1080     74.92  
   1400x1050     74.87  
   1280x1024     74.90  
   1280x960      74.86  
   1152x864      74.82  
   1024x768      74.90  
   800x600       74.91  
   640x480       74.77  
   320x240       73.82  
   1680x1050     74.89  
   1440x900      74.98  
   1280x800      74.93  
   720x480       74.51  
   640x400       74.23  
   320x200       73.70  
   1600x900      74.89  
   1368x768      74.90  
   1280x720      74.78  
   1024x576      74.80  
   864x486       74.45  
   720x400       74.23  
   640x350       74.53
Comment 19 zyf0330 2023-06-01 05:32:59 UTC
(In reply to Tupac from comment #18)
> (In reply to zyf0330 from comment #17)
> > What is your `xrandr` output
> 
> Screen 0: minimum 16 x 16, current 3532 x 1080, maximum 32767 x 32767
> XWAYLAND0 connected 1600x900+0+90 (normal left inverted right x axis y axis)
> 380mm x 210mm
>    1600x900      74.89*+
>    1152x864      74.82  
>    1024x768      74.90  
>    800x600       74.91  
>    640x480       74.77  
>    320x240       73.82  
>    1440x900      74.98  
>    1280x800      74.93  
>    720x480       74.51  
>    640x400       74.23  
>    320x200       73.70  
>    1368x768      74.90  
>    1280x720      74.78  
>    1024x576      74.80  
>    864x486       74.45  
>    720x400       74.23  
>    640x350       74.53  
> XWAYLAND1 connected 1920x1080+1612+0 (normal left inverted right x axis y
> axis) 530mm x 300mm
>    1920x1080     74.91*+
>    1440x1080     74.92  
>    1400x1050     74.87  
>    1280x1024     74.90  
>    1280x960      74.86  
>    1152x864      74.82  
>    1024x768      74.90  
>    800x600       74.91  
>    640x480       74.77  
>    320x240       73.82  
>    1680x1050     74.89  
>    1440x900      74.98  
>    1280x800      74.93  
>    720x480       74.51  
>    640x400       74.23  
>    320x200       73.70  
>    1600x900      74.89  
>    1368x768      74.90  
>    1280x720      74.78  
>    1024x576      74.80  
>    864x486       74.45  
>    720x400       74.23  
>    640x350       74.53

It seems that, screen number is opposite in the Wayland to Xserver.
Comment 20 Nate Graham 2023-06-02 17:39:15 UTC
*** Bug 470329 has been marked as a duplicate of this bug. ***