Bug 350874 - After login, my dual head config is stubbornly messed up.
Summary: After login, my dual head config is stubbornly messed up.
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-02 07:36 UTC by Michal Svoboda
Modified: 2022-11-20 05:12 UTC (History)
3 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 Michal Svoboda 2015-08-02 07:36:20 UTC
I have 2 screens - (1) DVI connected and 90 deg rotated 1024x1280 to the left of my (2) main 1920x1200 DisplayPort connected.

I have specially crafted Xorg config (see Additional Information) for this setup. This works well, up to the login screen (sddm), then after login for no reason, resolution and position of DP monitor is changed to match the DVI one (see xrandr output below). I have to go to the systemsettings and increase resolution and move the DP manually. (see 2nd xrandr below)

This used to work well in the past (no intervention required), and also I have feeling that this does not happen everytime. So either it's some intermittent bug or it broke with some update, anyhow it feels like KDE has "mind of its own" instead of respecting my setup in Xorg config. Also I have no idea which component is responsible for this, so hope you can reassign to different project if needed.


Reproducible: Always


Actual Results:  
Dual screen config is messed up.

Expected Results:  
Dual screen config stays same as perscribed by X config / works on login screen (sddm).

Xorg config:
Section "Device"
    Identifier "radeon"
    Driver "ati"
    Option "monitor-DisplayPort-0" "DP"
    Option "monitor-DVI-0" "DVI"
EndSection

Section "Monitor"
    Identifier "DP"
EndSection

Section "Monitor"
    Identifier "DVI"
    Option "Rotate" "Left"
    Option "LeftOf " "DP"
EndSection

xrandr after login (messed up):
Screen 0: minimum 320 x 200, current 1280 x 1280, maximum 16384 x 16384
DisplayPort-0 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95 +
   1920x1080     60.00    50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02*   60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94    60.05  
   720x400       70.08  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1024x1280+0+0 left (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00  
   720x400       70.08  
DVI-1 disconnected (normal left inverted right x axis y axis)


xrandr after manual fixup:
Screen 0: minimum 320 x 200, current 2944 x 1280, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1200+1024+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00    50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94    60.05  
   720x400       70.08  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1024x1280+0+0 left (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00  
   720x400       70.08  
DVI-1 disconnected (normal left inverted right x axis y axis)
Comment 1 Thomas Lübking 2015-08-02 10:02:15 UTC
"kcmshell5 kded", deactivate the kscreen daemon.

It's likely what messes from your Xorg.conf, but having to fix settings everytime sounds like a bug nevertheless.
Comment 2 Michał Walenciak 2015-12-17 18:41:34 UTC
I've same problem: two monitors, before login everything is ok, views are separated. After login second monitor becomes a clone of the first one and both monitors are falling back to common resolution.
Comment 3 Maciej Mrozowski 2015-12-24 01:47:43 UTC
Duplicate of bug 343608?
Comment 4 Thomas Lübking 2015-12-24 08:13:55 UTC
Nope, there kscreen picks some (nonsense) reason because it's the bigger one and ignores(?) the other one, here it prefers to clone screens (and apparently doesn't save "corrected" settings) despite even accepting one screen to be rotated.
Comment 5 francois5537 2016-02-07 20:23:56 UTC
Confirm here, Dual Monitor, however sometimes it's booting fine:
Screen 1: 1680x1050 (DVI)
Screen 2: 1920x1080 (DP) (main)

The following script restores the setup after the plasmashell has finish loading, this is however a nasty workaround:
#!/bin/sh
xrandr --output DisplayPort-0 --primary --mode 1920x1080 --pos 1680x0 --rotate normal --output DVI-0 --mode 1680x1050 --pos 0x0 --rotate normal --output HDMI-0 --off
pkill plasmashell
plasmashell &

This issue only happens when using KDE on a dual-monitor setup.
I haven't tried tweaking Xorg, since this is sometimes I want to avoid.
Comment 6 Michał Walenciak 2016-07-20 21:46:37 UTC
I do not reproduce it anymore on KDE: 5.24.0
Anyone confirms?
Comment 7 Justin Zobel 2022-10-21 23:59:43 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 8 Bug Janitor Service 2022-11-05 05:07:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2022-11-20 05:12:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!