Bug 287334 - Saving default monitor layout (krandrrc_display_startupcommands) renders system unusable
Summary: Saving default monitor layout (krandrrc_display_startupcommands) renders syst...
Status: RESOLVED DUPLICATE of bug 287320
Alias: None
Product: krandr
Classification: Miscellaneous
Component: general (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Gustavo Pichorim Boiko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 06:21 UTC by Marc Schoechlin
Modified: 2012-06-20 07:07 UTC (History)
2 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 Marc Schoechlin 2011-11-23 06:21:11 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

KDE restores default xrandr settings without checking that these settings can be used.

After configuring a dual head setup with external displays and restarting with single display my internal notebook screen is switched off. 

**** This is a usability nightmare!!!! ****

I analyzed the problem with strace on the system-console and found out that
"$HOME/.kde/share/config/startupconfig" contains settings which are not usable on a internal display setup:
---
krandrrc_display_startupcommands='xrandr --output eDP1 --off
xrandr --output HDMI1 --pos 1680x0 --mode 1680x1050 --refresh 59.9543
xrandr --output HDMI2 --pos 0x0 --mode 1680x1050 --refresh 59.9543
xrandr --output HDMI2 --primary'
---

After removing this line, my system started in a normal way.
xrandr output with a single screen setup:
---
# xrandr
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
eDP1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
   1440x900       60.0*+   40.0  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
---

KDE should check if all necessary displays are connected before(!) executing the xrandr commands.

I cannot understand that good multihead display support can be a problem for so many years. 
Gnome2/Unity seems to have a good solution for changing monitor setups - probably you can implement the same behavior.



Reproducible: Always

Steps to Reproduce:
1.) Startup your notebook system with two external DVI/HDMI displays (disabled notebook screen, dockingstation setup)
2.) configure a dual head setup in systemsettings/display
3.) save setup as default setup
4.) restart notebook without external displays
5.) Login to kde (i used autologin)

=> Screen remains black 


Expected Results:  
KDE should store information about changing monitor setups, and should only restore stored settings if exactly the same monitor setup appears again.
(same outputs connected, same displays connected).
Monitor profiles should be manageable (store,edit,delete).

Doing the same behavior like gnome/unity would be a good improvement.
Comment 1 th3xi 2011-12-13 11:03:37 UTC
I can confirm this behaviour on a Lenovo X220 using Kubuntu and KDE 4.6. 
Here the config is stored in ~/.kde/share/config/krandrrc but otherwise its the same. Trying to fix it temporarily by using xrandr from shell does not help.
Comment 2 Marc Schoechlin 2011-12-31 16:34:01 UTC
See also Bug 220079. From my point of view painless changing of monitoring setups
is a really important thing....
Comment 3 Ronny Standtke 2012-06-14 16:45:21 UTC
I can confirm this issue, but it looks like a duplicate of Bug 287320.
Comment 4 Myriam Schweingruber 2012-06-20 07:07:02 UTC
Well spotted Ronny, thanks.

*** This bug has been marked as a duplicate of bug 287320 ***