Bug 356884 - kscreen messes with original xrandr config, does not respect saved config, and apply defined config only on the second try.
Summary: kscreen messes with original xrandr config, does not respect saved config, an...
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: libkscreen (show other bugs)
Version: git
Platform: openSUSE Linux
: NOR major
Target Milestone: 1.0
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 18:36 UTC by Luiz Angelo De Luca
Modified: 2016-09-07 09:03 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
postconf2-snapshot-plasma.png (828.16 KB, image/png)
2015-12-18 18:38 UTC, Luiz Angelo De Luca
Details
postconf1-snapshot.png (329.21 KB, image/png)
2015-12-18 18:38 UTC, Luiz Angelo De Luca
Details
postconf1-snapshot-3.png (1.67 MB, image/png)
2015-12-18 18:38 UTC, Luiz Angelo De Luca
Details
postrelogin-snapshot.png (301.51 KB, image/png)
2015-12-18 18:39 UTC, Luiz Angelo De Luca
Details
postrelogin_kscreen.conf (982 bytes, text/plain)
2015-12-18 18:39 UTC, Luiz Angelo De Luca
Details
postrelogin_xrandr.txt (866 bytes, text/plain)
2015-12-18 18:39 UTC, Luiz Angelo De Luca
Details
postconf2-kscreen.conf (985 bytes, text/plain)
2015-12-18 18:39 UTC, Luiz Angelo De Luca
Details
postconf2-xrandr.txt (869 bytes, text/plain)
2015-12-18 18:40 UTC, Luiz Angelo De Luca
Details
postconf2-snapshot.png (1.20 MB, image/png)
2015-12-18 18:40 UTC, Luiz Angelo De Luca
Details
postconf1-snapshot2.png (344.28 KB, image/png)
2015-12-18 18:40 UTC, Luiz Angelo De Luca
Details
postconf1-kscreen.conf (985 bytes, text/plain)
2015-12-18 18:40 UTC, Luiz Angelo De Luca
Details
postconf1-xrandr.txt (869 bytes, text/plain)
2015-12-18 18:41 UTC, Luiz Angelo De Luca
Details
postlogin_auto-xrandr.txt (866 bytes, text/plain)
2015-12-18 18:41 UTC, Luiz Angelo De Luca
Details
postlogin_auto-snapshot.png (80.10 KB, image/png)
2015-12-18 18:41 UTC, Luiz Angelo De Luca
Details
postlogin_auto-kscreen.conf (982 bytes, text/plain)
2015-12-18 18:41 UTC, Luiz Angelo De Luca
Details
loginscreen-snapshot.png (720.89 KB, image/png)
2015-12-18 18:41 UTC, Luiz Angelo De Luca
Details
loginscreen-xrandr.txt (869 bytes, text/plain)
2015-12-18 18:42 UTC, Luiz Angelo De Luca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo De Luca 2015-12-18 18:36:39 UTC
Hello,

Since some days (weeks?) kscreen is messing with my display on login and I'm unable to fix it with kde.

I'm using opensuse buildservice packages:

 plasma5-desktop-5.5.90git~20151215T210835~93e437c-11.1.x86_64
 kscreen5-5.5.90git~20151129T090237~7a8a41d-1.1.x86_64

At login screen, everything is like I want. I just removed kscreen config.

 loginscreen-snapshot.png
 loginscreen-xrandr.txt

After login, during splash, kde is OK. Just after the splash closes, kscreen seems to start to mess the screen. The result is one screen over the over. Rotation is ok, the bigger screen is using a lower res and the other one is using the last resolution (but not the biggest one). Plasma crashed and I left it closed (it has its own bunch of bugs related to screen reconfiguration).

 postlogin_auto-kscreen.conf
 postlogin_auto-snapshot.png
 postlogin_auto-xrandr.txt

Now I changed it using kscreen to what I wanted. However, the result config in xrandr does not match what I see in kscreen. There is a space between screens. If I exit kscreen config and come back, the visual feedback in kscreen matches the current config (snapshot2).

 postconf1-kscreen.conf
 postconf1-snapshot2.png
 postconf1-snapshot.png
 postconf1-xrandr.txt

Once again, I redo the config in kscreen. Now I get what I wanted. Kscreen feedback matches the config.

 postconf2-kscreen.conf
 postconf2-snapshot.png
 postconf2-xrandr.txt

However, this setup does not survive a reboot. It goes back to what kscreen autoconfigure in postlogin_auto*

 postrelogin_kscreen.conf
 postrelogin-snapshot.png (with plasma)
 postrelogin_xrandr.txt

And I need to go all over again the double config...

Now about plasma: 

After the login, it matches how the screen is configure. After the first it is still OK. However it got confused after the second config. In screenshot, konsole and kscreen-config are maximized, one on each screen. kde launcher shown is from the right screen.

 postconf2-snapshot-plasma.png

Killing plasma fixes the window sizes instantaneusly. If relaunched, it get the correct config.

In summary, I have on every login to reconfigure kscreen twice and restart plasmashell.


Reproducible: Always
Comment 1 Luiz Angelo De Luca 2015-12-18 18:38:01 UTC
Created attachment 96177 [details]
postconf2-snapshot-plasma.png
Comment 2 Luiz Angelo De Luca 2015-12-18 18:38:23 UTC
Created attachment 96178 [details]
postconf1-snapshot.png
Comment 3 Luiz Angelo De Luca 2015-12-18 18:38:43 UTC
Created attachment 96179 [details]
postconf1-snapshot-3.png
Comment 4 Luiz Angelo De Luca 2015-12-18 18:39:01 UTC
Created attachment 96180 [details]
postrelogin-snapshot.png
Comment 5 Luiz Angelo De Luca 2015-12-18 18:39:14 UTC
Created attachment 96181 [details]
postrelogin_kscreen.conf
Comment 6 Luiz Angelo De Luca 2015-12-18 18:39:29 UTC
Created attachment 96182 [details]
postrelogin_xrandr.txt
Comment 7 Luiz Angelo De Luca 2015-12-18 18:39:49 UTC
Created attachment 96183 [details]
postconf2-kscreen.conf
Comment 8 Luiz Angelo De Luca 2015-12-18 18:40:02 UTC
Created attachment 96184 [details]
postconf2-xrandr.txt
Comment 9 Luiz Angelo De Luca 2015-12-18 18:40:25 UTC
Created attachment 96185 [details]
postconf2-snapshot.png
Comment 10 Luiz Angelo De Luca 2015-12-18 18:40:40 UTC
Created attachment 96186 [details]
postconf1-snapshot2.png
Comment 11 Luiz Angelo De Luca 2015-12-18 18:40:51 UTC
Created attachment 96187 [details]
postconf1-kscreen.conf
Comment 12 Luiz Angelo De Luca 2015-12-18 18:41:02 UTC
Created attachment 96188 [details]
postconf1-xrandr.txt
Comment 13 Luiz Angelo De Luca 2015-12-18 18:41:15 UTC
Created attachment 96189 [details]
postlogin_auto-xrandr.txt
Comment 14 Luiz Angelo De Luca 2015-12-18 18:41:28 UTC
Created attachment 96190 [details]
postlogin_auto-snapshot.png
Comment 15 Luiz Angelo De Luca 2015-12-18 18:41:43 UTC
Created attachment 96191 [details]
postlogin_auto-kscreen.conf
Comment 16 Luiz Angelo De Luca 2015-12-18 18:41:59 UTC
Created attachment 96192 [details]
loginscreen-snapshot.png
Comment 17 Luiz Angelo De Luca 2015-12-18 18:42:12 UTC
Created attachment 96193 [details]
loginscreen-xrandr.txt
Comment 18 Maciej Mrozowski 2015-12-24 01:32:17 UTC
Duplicate of  346961 likely.
Comment 19 Luiz Angelo De Luca 2015-12-24 03:22:13 UTC
Maybe the nvidia multimonitor saved conf not working is duplicated. However, there are more issues like difference in applied conf X visual feedback, the first applied conf does not work, plasma getting wrong screen info. Maybe each of them deserves a different bug report, but I'm not kscreen expert in order to differ what is different manifestations of the same problem or completely hesitate ones.
Comment 20 Allan 2016-05-20 18:27:22 UTC
I'm also affected by this. Running KDE 5.6.4 on Arch Linux on nvidia gtx970.

Regardless if I setup my two monitors in the xorg.conf or with display and monitor in systemsettings - the setup seems not to be respected on reboot.

Workaround: set monitors up in xorg.conf and disable kscreen2 in startup&shutdown systemsettings.
Comment 21 slartibart70 2016-05-22 22:13:28 UTC
same here with nvidia card and 2 monitors (dvi, hdmi).
Suggested workaround of Allan does indeed work
Comment 22 Sebastian Kügler 2016-08-19 11:15:46 UTC
Could you please test this against Plasma/5.8? We have fixed a number of issues that almost certainly affect the behaviour you're seeing. If problems persist, could you please file a new bugreport with updated info? (Please also attach ~/.local/share/kscreen/kscreen.log then.)

Thanks!
Comment 23 Luiz Angelo De Luca 2016-09-06 23:08:21 UTC
Sebastian Kügler, I'm now using a recent kde (from opensuse tumbleweed) and nouveau driver. I cannot reproduce the problem anymore. Thanks.
Comment 24 Sebastian Kügler 2016-09-07 09:03:34 UTC
Very good to know, thanks for testing!