https://bugs.kde.org/show_bug.cgi?id=466149
Bug ID: 466149 Summary: On Xorg, Plasma's idea of the monitor configuration differs from xrandr's Classification: Plasma Product: KScreen Version: 5.27.0 Platform: Neon OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: common Assignee: kscreen-bugs-n...@kde.org Reporter: twilightinz...@gmail.com Target Milestone: --- 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 -- You are receiving this mail because: You are watching all bug changes.