Bug 381515 - KScreen has problem with multiple monitors with different resolutions
Summary: KScreen has problem with multiple monitors with different resolutions
Status: CLOSED NOT A BUG
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.10.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 06:22 UTC by Petr Nehez
Modified: 2018-03-07 18:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
monitor-0 (162.36 KB, image/png)
2017-06-22 06:23 UTC, Petr Nehez
Details
monitor-1 (159.05 KB, image/png)
2017-06-22 06:23 UTC, Petr Nehez
Details
kscreen-0-console (16.91 KB, application/zip)
2017-07-20 04:59 UTC, Petr Nehez
Details
kscreen-0-0 (42.24 KB, application/zip)
2017-07-20 04:59 UTC, Petr Nehez
Details
kscreen-0-1 (55.44 KB, application/zip)
2017-07-20 04:59 UTC, Petr Nehez
Details
kscreen-0-2 (59.38 KB, application/zip)
2017-07-20 04:59 UTC, Petr Nehez
Details
screenshot-0 (238.76 KB, image/png)
2017-07-20 05:05 UTC, Petr Nehez
Details
kscreen-1 (268.32 KB, application/zip)
2017-07-21 05:25 UTC, Petr Nehez
Details
kscreen-2 (174.64 KB, application/zip)
2017-07-24 15:33 UTC, Petr Nehez
Details
kscreen-3 (349.20 KB, application/zip)
2017-07-25 04:30 UTC, Petr Nehez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nehez 2017-06-22 06:22:33 UTC
I have a Dell Precision 3510 laptop which has 1920x1080 screen.
I use this laptop with 2 monitors on different places:
1) Dell U2415 with 1920x1200,
2) Eizo EV2450 with 1920x1080.

I will describe now my problem (both monitors have been already correctly set long time ago):
* I started my laptop and then connected Dell monitor and the resolution on this monitor was correctly set to 1920x1200.
* I disconnected Dell monitor and put a laptop into Sleep mode.
* Then I resumed the laptop and worked on it without any monitor and after 2 hours I put it into Sleep mode again.
* At home I resumed the laptop, plugged Eizo monitor but it has not been correctly detected as Eizo but as Dell as shown on the screenshot "monitor-0".
* After restart of the system and plugging of Eizo again this monitor has been correctly detected as Eizo as shown on "monitor-1".

These steps do not show the real problem but if we would swap usage of those monitors in the description we would end up with Dell 1920x1200 detected as Eizo but with the resolution set to 1920x1080 and in this case we would have to set it manually to 1920x1200 but this would lead to changing the KScreen's configuration for Eizo and not for Dell.
Comment 1 Petr Nehez 2017-06-22 06:23:09 UTC
Created attachment 106222 [details]
monitor-0
Comment 2 Petr Nehez 2017-06-22 06:23:29 UTC
Created attachment 106223 [details]
monitor-1
Comment 3 Petr Nehez 2017-06-22 06:25:05 UTC
1 thing I have noticed - after restart of the system there was no primary output set - see screenshots "monitor-1" and "monitor-0".
Comment 4 Petr Nehez 2017-06-22 06:27:06 UTC
Could it be related to #340548?
Comment 5 Petr Nehez 2017-07-07 07:12:31 UTC
Is there anybody who can check this issue?
Comment 6 Sebastian Kügler 2017-07-07 07:23:18 UTC
Hi Petr,

Sorry that I didn't get back to you yet. Could you attach more information to this bugreport so I can have a closer look?

https://community.kde.org/Solid/Projects/ScreenManagement#Debugging_Information

Additionally to that, could you run xrandr -q for each step and attach the output? With that output, you can already check yourself if X is reporting the correct information about your screens, but I'm happy to check as well.
Comment 7 Petr Nehez 2017-07-11 05:45:57 UTC
OK, I have enabled logging so when I have something to share I will attach it here.
Comment 8 Petr Nehez 2017-07-20 04:59:00 UTC
Created attachment 106747 [details]
kscreen-0-console
Comment 9 Petr Nehez 2017-07-20 04:59:26 UTC
Created attachment 106748 [details]
kscreen-0-0
Comment 10 Petr Nehez 2017-07-20 04:59:36 UTC
Created attachment 106749 [details]
kscreen-0-1
Comment 11 Petr Nehez 2017-07-20 04:59:49 UTC
Created attachment 106750 [details]
kscreen-0-2
Comment 12 Petr Nehez 2017-07-20 05:04:33 UTC
See my log and configuration files for this issue:
* kscreen-0-0 after resume with no monitor connected,
* kscreen-0-1 after resume and connected Dell U2415 (assumes it as Eizo EV2459 with 1920x1080, see also the screenshot),
* kscreen-0-2 after restart and connected Dell U2415.

I also attached outputs from a command "kscreen-console bug" (file kscreen-0-console).
Comment 13 Petr Nehez 2017-07-20 05:05:00 UTC
Created attachment 106751 [details]
screenshot-0
Comment 14 Petr Nehez 2017-07-21 05:25:57 UTC
Created attachment 106773 [details]
kscreen-1

And here are the logs and configurations when playing with EIZO monitor.

It seems that KScreen has a problem to identify a monitor after disconnecting a different monitor.
Comment 15 Sebastian Kügler 2017-07-21 10:24:33 UTC
What does xrandr -q report, though?
Comment 16 Petr Nehez 2017-07-21 10:27:01 UTC
Ahh, I forgot to execute this command.
I'll do it next week when I am in the office with Dell, currently I am at home with Eizo.
Comment 17 Petr Nehez 2017-07-24 15:33:11 UTC
Created attachment 106829 [details]
kscreen-2

I performed today a way of connecting Dell in the office and then Eizo at home and the results with "xrandr -q --verbose" are attached "kscreen-2".
Comment 18 Petr Nehez 2017-07-25 04:30:02 UTC
Created attachment 106851 [details]
kscreen-3

And in "kscreen-3" archive there are logs after resuming of my laptop (Eizo 1080p was connected before suspend), connecting Dell 1200p where 1080p was activated and then restarting of the system.
Comment 19 Simone Gaiarin 2017-07-25 08:14:13 UTC
For me this bug is the same as bug 360058. Bug 360058 is specific on when the system is suspended, but from the time of the report I think the bug worsened, because now it happen also as described by Petr Nehez. Bug 360058 has already quite a lot of debugging information.

I experience the same behaviour, and the only solution is restarting. Disconnecting  and reconnecting video cables works sometimes but not all the time.

@Sebastian Kügler
A suggestion: Isn't there a way to show the user that is reporting a bug for KScreen the link to the page where it is explained how to gather better debugging information that you posted here? Would be very useful I think.

I haven't attached this information in my other bug report because I thought that all the debug information was stored in .local/share/kscreen
/kscreen.log, even though often were not enough.
Comment 20 Simone Gaiarin 2017-07-25 08:14:52 UTC
@Petr Nehez Are you using a docking station?
Comment 21 Petr Nehez 2017-07-25 08:18:02 UTC
@Simone Gaiarin 
Nope, I do not use docking station, just laptop's HDMI.
And always 1 screen at the time - when a monitor is connected laptop's screen is off.
Comment 22 Petr Nehez 2017-08-09 05:32:20 UTC
Is here anything else I can do to help you out?
This issue is making me crazy...
Comment 23 Petr Nehez 2018-02-21 06:00:27 UTC
I have an update on this - since the time I switched to Manjaro KDE this is not the issue anymore.

So I would say there must be an issue in KScreen on Kubuntu while it had a problem to identify the monitor after resume.
Comment 24 Sebastian Kügler 2018-02-21 09:42:53 UTC
I'll close this bugreport since it's apparently fixed by an upgrade, not worth spending valuable development time on it as underlying issues area already reported most likely.

Thanks!