Comment 27 for bug 599626

Revision history for this message
Oswald-p (oswaldpp) wrote : Re: [arrandale] X freezes after plugging in external monitor and selecting System>Preferences>Monitors

Hi all

Trying to solve my problem with ubuntu (gnome version), it seems that it can be done by launching Xrandr early in Xsession.

What I did was to create a file called "45custom_xrandr-settings"

what is in this file:
EXTERNAL_OUTPUT="VGA1"
INTERNAL_OUTPUT="DP1"

xrandr --output $INTERNAL_OUTPUT --auto --primary --output $EXTERNAL_OUTPUT --off

Simply copy it to the folder "/etc/X11/Xsession.d/"

I don't know why but after that you can connect an external screen and activate it using System>preference>Monitors without crash.

I have used the "--primary" argument so that gnome panels stay on the laptop screen in extended mode.

I hope it will help someone.

O-p