Bug 371643

Summary: Kscreen display configuration is lost on reboot
Product: [Plasma] KScreen Reporter: patrick.rifici
Component: commonAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.8.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kscreen configuration file
kscreen log file

Description patrick.rifici 2016-10-25 02:19:11 UTC
(Unsure if this is considered a duplicate of Bug #361144 as the state it resets to after a reboot is slightly different. If it is a duplicate please mark it as so.)

Upon rebooting, display configuration of dual monitors (extended display, not clone) is lost when set through kscreen. While both displays are still enabled after a reboot orientation, choice of primary display and secondary display wallpaper are incorrect and must be reconfigured. Reconfiguring will cause settings to persist until system is rebooted at which point the settings are reverted again.

System specifications:
KDE Plasma Version: 5.8.2
KDE Frameworks Version: 5.27.0
QT Version: 5.7.0
OS: Arch Linux x86_64
GPU: Intel® HD Graphics 2000 (modesetting driver in use)
Display server: Xorg

Reproducible: Always

Steps to Reproduce:
1. Configure dual screen layout with kscreen (either through kcm or "Displays" module)
2. Reboot system (either through Plasma menu or "sudo reboot")

Actual Results:  
1. Display configuration is lost and must be reconfigured

Expected Results:  
1. Display configuration persists

My monitors are connected to the motherboard's onboard VGA and DVI ports, not though a PCI/PCI-E graphics card. Could this possibly confuse kscreen when it detects the displays?

I am unable to test on Wayland at the present time as there are issues which leave Plasma unusable on my particular setup.

Attempted fixes:
- Deleting all files in ~/.local/share/kscreen, rebooting and reconfiguring
- Configuring through seperate "Display" window as opposed to kcm module
Comment 1 patrick.rifici 2016-10-25 02:20:16 UTC
Created attachment 101762 [details]
kscreen configuration file
Comment 2 patrick.rifici 2016-10-25 02:20:49 UTC
Created attachment 101763 [details]
kscreen log file
Comment 3 patrick.rifici 2016-11-03 07:53:54 UTC
Issue persists in Plasma version 5.8.3.
Comment 4 Sebastian Kügler 2016-11-10 10:30:05 UTC
Not sure I understand correctly, but you say that the position of the displays is fine after reboot, just that the wallpapers are swapped around?

Could you compare the output of kscreen-doctor -o in both situations and tell me the difference?

(This smells like a bug which we've just fixed in plasmashell yesterday.)
Comment 5 patrick.rifici 2016-11-11 00:23:57 UTC
Apologies, I should have made myself more clear. Upon rebooting my system, the following configuration values are lost:
- Primary screen selection (where main panel resides)
- Display orientation
- Primary display wallpaper

However, it appears that since I have installed KDE Applications 16.08.3 the issue has been resolved. I have tested my system on multiple reboots and my display configuration is persisting.

I will attach the kscreen-doctor output of my last reboot. However, this is of a reboot where the issue has not occured. If I do get a reboot where I can replicate the issue, I will post the kscreen-doctor output again.
Comment 6 patrick.rifici 2016-11-11 00:25:19 UTC
(kscreen doctor output had incorrect formatting when echoed to a text file. Here is the output copy and pasted from Konsole)

Output: 65 VGA-1 enabled connected primary VGA Modes: 71:1280x1024@60! 72:1280x1024@75* 73:1152x864@75 74:1024x768@75 75:1024x768@60 76:832x624@75 77:800x600@75 78:800x600@60 79:640x480@75 80:640x480@60 81:720x400@70 Geometry: 1280,0 1280x1024
Output: 66 HDMI-1 enabled connected  HDMI Modes: 71:1280x1024@60! 72:1280x1024@75* 73:1152x864@75 74:1024x768@75 75:1024x768@60 76:832x624@75 77:800x600@75 78:800x600@60 79:640x480@75 80:640x480@60 81:720x400@70 82:1280x960@60 83:1024x768@70 84:800x600@72 85:800x600@56 86:640x480@73 87:640x480@67 Geometry: 0,0 1280x1024
Output: 67 DP-1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0
Output: 68 HDMI-2 disabled disconnected  HDMI Modes: Geometry: 0,0 0x0
Output: 69 DP-2 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0
Comment 7 patrick.rifici 2016-11-14 08:47:08 UTC
After multiple reboots with the affected system I am now no longer able to replicate my issue. It seems that KDE Applications 16.08.3 may have fixed it for good. On each boot my system retains the screen layout and settings from the previous session.

Can I close this as "RESOLVED" or would you prefer it be left open for now?
Comment 8 Sebastian Kügler 2016-11-14 10:51:00 UTC
Closing it, if necessary, bugs can easily be reopened. Thanks for the heads-up!
Comment 9 patrick.rifici 2016-11-15 01:00:29 UTC
No problem. Closed.