This is likely to be hardware-dependent, so your mileage may vary.
My hardware is:
HP Zbook 14, with dual Intel and ATI Radeon HD 8730M GPUs.
The relevant lines of sudo lspci
are
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8730M]
I'm running Ubuntu 14.04, and the output of fglrxinfo
is
display: :0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon (TM) HD 8500M/8700M
OpenGL version string: 4.3.12798 Compatibility Profile Context FireGL 13.35.1005
After much playing around with xinerama options and so forth, the following xorg.conf
file works for me
Section "ServerLayout"
Identifier "amd-layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Option "Xinerama" "off"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
HorizSync 30.0 - 60.0
VertRefresh 50.0 - 60.0
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
HorizSync 30.0 - 60.0
VertRefresh 50.0 - 60.0
Option "RightOf" "aticonfig-Monitor[0]-0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:3:0:0"
Screen 0
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:3:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
SubSection "Display"
Virtual 4000 1600
EndSubSection
DefaultDepth 24
EndSection
I think that the most important points are that there are two "Monitor" sections: One of which has the "RightOf" option, and just one "Screen" section. Many of the "solutions" I came across in my hunt had two screens, and this is what the command sudo aticonfig --intial=dual-head
does by default.
amdcccle
to select "Power-saving GPU" (Intel) when you want to use multiple monitors. In my case, the Intel is just as fast anyway (for basic 3D w/o anti-aliasing).