Found a solution for myself using the following script in
/etc/X11/Xsession.d/45custom_xrandr_settings:
Code:
EXTERNAL_OUTPUT="VGA1"
INTERNAL_OUTPUT="LVDS1"
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
else
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi
What the script does is disable my LVDS display when I connect the external
monitor.
I think the default behavior for gnome-display-properties should be to save the
last config. It worked like that in Jaunty. Now xrandr turns on all available
displays whenever it runs (when you lock the screen/logoff/run the
gnome-display-properties applet).
--
display configuration isn't saved
https://bugs.launchpad.net/bugs/566683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs