Linux – Setting dual monitor with different resolutions using ati open source driver

arch linuxmulti-monitorradeonxorg

I have two Monitors and am using Arch Linux, setup like this:

  • 1280×1024 (primary)
  • 1680×1050 (secondary)
  • ATI RADEON X1300
  • Open source ATI driver

On the boot screen, my primary monitor (17") has the correct resolution; my second CLONES the first and has the same resolution (1280×1024).

I have to run xrandr TWICE after starting X to get correct resolution.

xrandr --output DVI-0 --mode 1280x1024 --output DVI-1 --mode 1680x1050 --left-of DVI-0

I tried to make this permanent by adding the xrandr command to .xinitrc, but it didn't work. Now, if I want to get the correct resolution on both monitors, after starting X, I run xrandr TWICE.

I didn't define anything in xorg.conf (nor do I know how 🙂 ). What can I do to fix this?

Best Answer

Putting xrandr commands in .xinitrc is not a proper way to store permanent settings. You should use xorg.conf instead.

So start from removing the xrandr lines from your .xinitrc, and then create (or edit) an /etc/X11/xorg.conf file. It should look exactly like this (no more content is needed unless you want to configure keyboard, mouse or similar devices):

Section "Monitor"
     Identifier "First monitor"
     Option     "PreferredMode"   "1280x1024"
EndSection

Section "Monitor"
     Identifier "Second monitor"
     Option     "PreferredMode"   "1680x1050"
     Option     "LeftOf"          "First monitor"
EndSection

Section "Device"
    Identifier  "Radeon X1300"
    Driver      "radeon"
    Option      "Monitor-DVI-0"   "First monitor"
    Option      "Monitor-DVI-1"   "Second monitor"
EndSection
Related Question