Multiple Monitors in Linux Tip

Posted: November 20th, 2007

When editing your /etc/X11/xorg.conf, keep in mind that order might matter. Example

Section “ServerLayout”
Identifier “Layout0″
Screen 0 “Screen0″ 1600 0
Screen 1 “Screen1″ 3280 0
Screen 2 “Screen2″ 0 0
InputDevice “Keyboard0″ “CoreKeyboard”
InputDevice “Mouse0″ “CorePointer”
EndSection

It’s important that the Screens show in order. The following might not work (at least it didn’t work for me)

Section “ServerLayout”
Identifier “Layout0″
Screen 2 “Screen2″ 0 0
Screen 0 “Screen0″ 1600 0
Screen 1 “Screen1″ 3280 0
InputDevice “Keyboard0″ “CoreKeyboard”
InputDevice “Mouse0″ “CorePointer”
EndSection

because the order is wrong.