LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   working xorg.conf for dual-head radeon x1300 xt on debian lenny (https://www.linuxquestions.org/questions/linux-hardware-18/working-xorg-conf-for-dual-head-radeon-x1300-xt-on-debian-lenny-734626/)

badeagle01 06-21-2009 05:33 PM

working xorg.conf for dual-head radeon x1300 xt on debian lenny & ubuntu jaunty
 
I spent two days getting my setup to work and swallowed a lot of frustration, I hope to save someone else that time.

I run Debian Lenny with Gnome. My video card is the VisionTek Radeon X1300 XT (AGP 256mb). Has two DVI outs with VGA adapters hooked up to CRT monitors.

lspci reports this card as:
Code:

01:00.0 VGA compatible controller: ATI Technologies Inc RV530LE [Radeon X1600]
It also reports a second device which I do not know what it's for (maybe the s-video port) and do not use it:
Code:

01:00.1 Display controller: ATI Technologies Inc Device 71ee
Notes on my xorg.conf:
  • No Xinerama. Can drag files & panel items across screens, but cannot drag windows.
  • No MergeFB or TwinView.
  • Uses the opensource Xorg radeon driver, but I believe any appropriate driver for your card should work.
  • I also believe the same style of xorg.conf could be used to acheive the same affect with two video cards instead of dual-head by changing the BusID (to your second card) and Screen (to 0) of "device1".

How to avoid the pitfalls I encountered:
  • Using LeftOf or RightOf for positioning screens in the ServerLayout section caused issues with my mouse being stuck on one monitor or able to move to the other then getting stuck there. I had to use absolute positioning to get the mouse to travel properly. There is already bug reports for this and I believe a solution besides my work-around.
  • Trying to enable Xinerama causes X to fail to start. Sig 11 crash. I think its probably a software issue and theoretically could be enabled without any other changes to my xorg.conf.
  • You MUST have a Device section for each head on your card! They have the same BusId and only differ by their "Screen" parameter. I wasted a bit of time before I read this in the xorg.conf manual pages ("man xorg.conf".)

And here's the gold of this post, my working dual-head, no xinerama, no twinview, no mergefb xorg.conf:

Code:

Section "ServerFlags"
#    Option        "Xinerama"    "true"
    Option        "AllowMouseOpenFail" "true"
EndSection

Section "InputDevice"
    Identifier    "keyboard0"
    Driver        "kbd"
        Option          "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc104"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"
    Identifier    "mouse0"
    Driver        "mouse"
        Option          "CorePointer"
    Option        "ZAxisMapping"    "4 5"
EndSection

Section      "Device"
  Identifier  "mycard0"
  Driver      "radeon"
  BusID      "PCI:1:0:0"
  Screen      0
EndSection

Section      "Device"
  Identifier  "mycard1"
  Driver      "radeon"
  BusID      "PCI:1:0:0"
  Screen      1
EndSection

Section      "Monitor"
  Identifier  "mycrt0"
  Option      "DPMS"
EndSection

Section      "Monitor"
  Identifier  "mycrt1"
  Option      "DPMS"
EndSection

Section      "Screen"
  Identifier  "myhead0"
  Device      "mycard0"
  Monitor    "mycrt0"
  DefaultDepth  24
  SubSection  "Display"
    Depth    24
    Modes    "1280x1024"
  EndSubSection
EndSection

Section      "Screen"
  Identifier  "myhead1"
  Device      "mycard1"
  Monitor    "mycrt1"
  DefaultDepth  24
  SubSection "Display"
    Depth    24
    Modes    "1280x1024"
  EndSubSection
EndSection

Section "ServerLayout"
  Identifier  "layout0"
  InputDevice "keyboard0" "CoreKeyboard"
  InputDevice "mouse0" "CorePointer"
  Screen      0 "myhead0" 1280 0
  Screen      1 "myhead1" 0 0
  # Swap 1280 on Screen 0 line with first 0 on Screen 1 line to switch
  # which is left and right, change 1280 to match resolution width
EndSection

Feel free to pick my brain (however small it is) or suggest changes to my setup for me to try.

---
:Pengy: http://www.dabj01.co.cc

gkurian 06-21-2009 08:07 PM

Thanks a lot, mate. I managed to dual head working by just following your post. You just saved me a lot of time.
George

badeagle01 07-02-2009 09:28 AM

even better xorg.conf for this video card
 
I switched from Debian Lenny to Ubuntu Jaunty.

With a little experimentation and use of the System->Appearance->Display tool (in gnome) I now have a better xorg.conf than the one I posted before.

The extra PCI listing is now in use as the second device, also I can now drag windows between screens. I didn't seem to have OpenGL acceleration before which was incredibly slow, but now do.

My new xorg.conf:

Code:

Section "Files"
        ModulePath  "/usr/lib/xorg/modules"
        FontPath    "/usr/share/fonts/X11/misc"
        FontPath    "/usr/share/fonts/X11/cyrillic"
        FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath    "/usr/share/fonts/X11/Type1"
        FontPath    "/usr/share/fonts/X11/100dpi"
        FontPath    "/usr/share/fonts/X11/75dpi"
        FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier  "Monitor1"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Virtual        2560 1024
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device    "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Virtual        2560 1024
        EndSubSection
EndSection

Section "Module"
        Load  "dri"
        Load  "dri2"
        Load  "dbe"
        Load  "extmod"
        Load  "record"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" 1024 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName  "RV530LE [Radeon X1600]"
        BusID      "PCI:1:0:0"
EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName  "RV530LE [Radeon X1600]"
        BusID      "PCI:1:0:1"
EndSection



All times are GMT -5. The time now is 10:07 PM.