Enabling second monitor in amdcccle fails with error message

I/O error : Resource temporarily unavailable
/home/pc/.config/monitors.xml:1: parser error : Document is empty

^
/home/pc/.config/monitors.xml:1: parser error : Start tag expected, ‘<’ not found

^
Segmentation fault

This error doesn’t make sense to me, because this is the monitors.xml file:

<monitors version="1">
  <configuration>
      <clone>no</clone>
      <output name="DVI-0">
          <vendor>HWP</vendor>
          <product>0x284b</product>
          <serial>0x01010101</serial>
          <width>1920</width>
          <height>1200</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="DIN">
      </output>
      <output name="DVI-1">
          <vendor>SAM</vendor>
          <product>0x027d</product>
          <serial>0x4d453230</serial>
          <width>1680</width>
          <height>1050</height>
          <rate>60</rate>
          <x>1920</x>
          <y>150</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
  </configuration>
  <configuration>
      <clone>no</clone>
      <output name="DFP1">
          <vendor>HWP</vendor>
          <product>0x284b</product>
          <serial>0x01010101</serial>
          <width>1920</width>
          <height>1200</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="DFP2">
          <vendor>SAM</vendor>
          <product>0x027d</product>
          <serial>0x4d453230</serial>
      </output>
      <output name="CRT1">
      </output>
      <output name="CRT2">
      </output>
      <output name="TV">
      </output>
      <output name="CV">
      </output>
  </configuration>
</monitors>

Clearly it has a starting tag just fine ;(

Additional info:
I installed from the proprietary ati driver .run file. The first display works great! But I can’t enable the second one :confused:
I tried to do it manually with aticonfig once too, that enabled the second one but I didn’t have any interface anymore - just the background pictures. I couldn’t even open the terminal with shortcut. So I had to reinstall the driver.
The command I did was: sudo aticonfig --initial=dual-head --screen-layout=right

Any ideas?

Solution: Forget amdcccle

  1. Add Virtual line to /etc/X11/xorg.conf
  2. Logout
  3. After login, you can simply set the correct screen size inside the normal Gnome “Display” menu.

Step 1 explained:

(Say my laptop display is 1024×768 and my external display to the right is 1600×1200.)

This requires in my case one tweak to the xorg.conf file on a Radeon 7500 using the ‘radeon’ driver. In the Screen section by default you should see something like:

Section “Screen”
Identifier “Default Screen”
Device “ATI Technologies Inc Radeon…”
Monitor “Generic Monitor”
DefaultDepth 24
SubSection “Display”
Modes “1024×768″
Virtual 2624 1200
EndSubSection
EndSection

The addition is the Virtual line where the size is the maximum width of the displays added together by the height of the biggest resolution height. So in this case the width is 1024+1600 = 2624. Between my laptop and external screen, the latter has the highest vertical resolution so that’s 1200 (instead of 768.)As another example I have a 1400×1050 laptop screen and a 1440×900 external screen so:

  • Width: 1400 + 1440 = 2840
  • Height: (1050 is larger than 900 so…) = 1050
  • So the line to insert is: Virtual 2840×1050

After sorting out the xorg.conf file from the command line after restarting the X Server (Ctrl+Alt+Backspace, Log Out or Reboot) enter:

xrandr --output VGA-0 --right-of LVDS
xrandr –output VGA-0 –mode 1600×1200

That’s it. Not quite as straight forward but still bloody simple. All we need now is a robust GUI and we’re laughing!

From: “xrandr: screen cannot be larger than” …](http://www.linuxquestions.org/questions/linux-general-1/xrandr-screen-cannot-be-larger-than-595649/)

Question: Where do I put the Virtual line exactly?

Your xorg.conf should look somewhat like this, so put it where they put it:

Section “Device”
Identifier “aticonfig-Device[0]”
Driver “fglrx”
Option “DesktopSetup” “horizontal”
Option “PairModes” “1440x900+1280x1024”
EndSection

Section “Screen”
Identifier “aticonfig-Screen[0]”
Device “aticonfig-Device[0]”
Monitor “aticonfig-Monitor[0]”
DefaultDepth 24
SubSection “Display”
Viewport 0 0
#This virtual is for 2 monitors, a 1440x900 next
# to a 1280x1024
Virtual 1440 1024
Depth 24
EndSubSection
EndSection

From: X.Org/Dual Monitors/ATI - Gentoo Linux Wiki

Result: Currently I’m happy and it works. (let’s see if the change stays over restart, I’m writing this immediately after fact and will edit later if anything bad happens)
Gnome 3 is still slightly glitchy on my hd4850, but the last time I tried installing the ati drivers Gnome was way worse - constantly emitting strange graphical artifacts. Now it only restarts the UI once in a while, I hope it’s not too often. Only happened twice yet in about 3 hours, let’s see if it persists and if it annoys me too much. May also be a problem with Gnome 3 itself, who knows. I just did a zypper dup.