xrandr script for dual monitor
marius at gedmin.as
Wed Jan 29 01:39:42 PST 2014
On Wed, Jan 29, 2014 at 09:00:21AM +0100, massimiliano cialdi wrote:
> I have two monitor and I use xrandr for extend the desktop (ubuntu 13.04).
Ubuntu 13.04 was EOLed a couple of days ago. You'll want to upgrade to
> With arandr I have configured it and I save a shell script
> (/usr/share/setdualmonitor.sh) to obtain the desired result:
> xrandr --output DP3 --off --output DP2 --off --output HDMI2 --off
> --output HDMI1 --mode 1680x1050 --pos 1920x0 --rotate normal
> --output DVI-I-1 --mode 1920x1080 --pos 0x0 --rotate normal --output
> DP-1 --off --output VGA1 --off
> I want to make it the default behaviour, so I added to
> *# for your login screen, e.g. LightDM (Ubuntu 11.10) or GDM (11.04
> or earlier)**
> **# for your desktop session**
> This doesn't works. In both monitors I have the same output, and the
> desktop is not extended.
During the login screen, or after you log in, or at both times?
Is the script executable? (chmod +x)
> How can I make the desktop extended at startup?
After you log in, gnome-settings-manager starts up and resets your
monitor configuration to whatever you have specified in
gnome-control-center. This configuration is stored in
The best approach would be to use gnome-control-center to specify the
monitor layout and positions and then rely on gnome-settings-manager to
restore it on login (or monitor hotplug). An alternative approach would
be to disable the gnome-settings-daemon's xrandr plugin so it wouldn't
ever touch the monitor configuration. You can do that with either
gconf-editor or with dconf-editor -- I don't remember which backend was
used for gnome-settings-daemon in Ubuntu 13.04.
Remember, drive defensively! And of course, the best defense is a good offense!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: Digital signature
More information about the xorg