Summary: | Impartial kscreen config for setup leads to partially configured desktop on hitting 'Apply' | ||
---|---|---|---|
Product: | [Plasma] KScreen | Reporter: | jamese <james.ellis> |
Component: | common | Assignee: | Sebastian Kügler <sebas> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | multiscreen |
Priority: | NOR | ||
Version First Reported In: | 5.7.2 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.8.0 | |
Sentry Crash Report: | |||
Attachments: |
Possibly impartial Kscreen config leading to bug ?
Kscreen config for setup when displays correctly configure Photo of Laptop Screen when it's split down the middle Kscreen config, laptop with HDMI plugged in Laptop with MST Displayport config Output of kcmshell5 kcm_kscreen Output of kscreen-bug with HDMI resolution OK |
Description
jamese
2016-07-25 02:30:13 UTC
Created attachment 100279 [details]
Possibly impartial Kscreen config leading to bug ?
This is the config that was active at the time of the bug. The 'mode' entries are not present for the two external screens
Created attachment 100280 [details]
Kscreen config for setup when displays correctly configure
This config includes the "mode" entry. It has the same filename as the config without the mode entry.
Created attachment 100281 [details]
Photo of Laptop Screen when it's split down the middle
The left part of the screen is moved to the right, the other half is on the left. Panel is at top on purpose.
The location of the split is based on where the external screens are joined above the Laptop Screen.
Plasma 5.7.2, Qt 5.7, Neon/User packages. I'll try to grab some debugging info when it happens again based on https://community.kde.org/Solid/Projects/ScreenManagement Thanks for the bug report! I've had a look at the info you provided, here's my analysis: Facts: - kscreen can write out a working configuration for your setup - when logging in, kscreen fails to restore the working config - a new configuration for your setup is written, your external screens are disabled - the modes aren't written because the displays are set to disabled Fiction (my interpretation): - when logging in, kscreen somehow fails to enable the two external displays - it then writes out a new configuration with the two externals disabled, overwriting the correct previous config file - the correct config is now gone until you set the displays explicitly to enabled again (crossing fingers that it works this time) - everything is peachy, until it fails again... A problem with debugging is is that we can't really see what's going on deep down in xrandr. These calls are all made out of process, and it's quite hard to get reliable information from it. Questions: - Could you try making the correct config file (in a working setup) non-writable for your user, for example by chowning it (temporarily) to root? In this case, do subsequent login attempts work? - It would indeed be interesting to see if this is only a problem with your MST setup, so if you could try displayport / hdmi as well, that would be useful information. Here's some further debugging on this one. Config "ae115bc4aa5f4ce701f72fc9e25f01cb" is the MST setup with Laptop Screen + DP1-1 (master) and DP1-2 (slave) - I chmod'd this to 0400 so it couldn't be written by any user. It still has the width/height in it from the last working setup. Config "1818bd03d6fa05c34acde90101a5d242" is the Laptop with HDMI plugged in. I plugged in DP cable and the bug reproduces. I've got kcmshell5 kcm_kscreen running and will attach output although nothing appears in the output when I activate the DP setup. I unplug the DP cable and no change to the desktop occurs. Laptop screen is still split in half & external DP screens are not active at all. I then switch inputs on DP1-2 to HDMI and plug in the HDMI cable, this brings the desktop back with HDMI output enabled and visible along with Laptop Screen. But: * HDMI (HDMI2 in kscreen) says "No available resolutions" and the display is slightly fuzzy. It also appears to be at a lower bit depth * After some repositioning of the HDMI screen and hitting apply, the resolution slider appears with 1920x1080 enabled and the bit depth / fuzziness issues disappear. I then unplug the HDMI cable to see if I can get DP displays back and the Laptop screen goes black then comes back and freezes although the mouse cursor works. Can't do anything here. Plugging the DP cable in does not bring the desktop back, nothing in kcmshell output. Can't run kscreen-bug here as only mouse works. Plugging the HDMI cable back in re-activates the desktop! Other weirdness that occurs here: - is when I plug the HDMI cable in, all the windows either from Gtk (Shutter) or KDE apps (e.g kate) disappear under the panel when maximised, even though the panel has "Always Visible" set. This is a common problem for me at the moment with KDE multi-screen setup. - when I initally plug in the DP screens they come up greyed out, showing the wrong aspect ratio although the slider says 1920x1080. If I fiddle with the slider the greyed out screens resize correctly. Configs and outputs will be attached. Created attachment 100363 [details]
Kscreen config, laptop with HDMI plugged in
This after the screen fuzziness and bit depth issues are resolved.
Created attachment 100364 [details]
Laptop with MST Displayport config
I chmod'd this to 0400, before trying to plug in DP cable.
Created attachment 100365 [details]
Output of kcmshell5 kcm_kscreen
I added a note showing where I switched outputs from DP to HDMI, as I move the HDMI screen around in the settings layout area and hit apply, the fuzziness and bit depth issues go away but I have to restart kcm_kscreen to get the slider showing in place of "No available resolutions"
Created attachment 100366 [details]
Output of kscreen-bug with HDMI resolution OK
I should also point out that while the Plasma desktop is munged with the DP cable plugged in the following can happen: - Mouse cursor works - I can switch to run level 1 with Ctrl+Alt+1 - When I switch to run level 1, my two DP screens come up perfectly, DP1-1 followed by DP1-2 a second later. - I can't get a "kscreen-console bug" report on run level 1 even with "export DISPLAY=:0" before. Switching back with Ctrl+Alt+7 returns me to the munged desktop which can now be rescued by plugging in an HDMI cable Alright. It seems to all boil down to not being able to enable the display. I've fixed two bugs in kscreen, which lead to this behavior. These should fix the root cause for your problem. These fixes will be released with Plasma 5.8. Thanks a lot for the useful bug-report and quick follow-ups! |