LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   radeon and dual head, to xrandr or not to xrandr, that's the question (https://www.linuxquestions.org/questions/linux-desktop-74/radeon-and-dual-head-to-xrandr-or-not-to-xrandr-thats-the-question-733557/)

i92guboj 06-17-2009 04:40 AM

radeon and dual head, to xrandr or not to xrandr, that's the question
 
Today fglrx hit the nail once again. I updated to xorg-server 1.6 and now it doesn't work. Once again fglrx is behind everyone else (they already were behind everyone else in which regards the kernel).

I am trying to migrate to either radeon or radeonhd, and I am having a hard time with it, besides how easy they are supposed to be to set up and use. I have no idea if the problem is with xrandr, the driver, my card or anything else.

The driver mostly works, except for dri which causes massive corruption to the point of being unusable. However that's a separate issue.

My main problem here is that I can't use my two monitors. Whatever I do, and I've tried all I could for a couple of months now with and without xrandr, I can only get the two monitors to show a clone of the same desktop. I am really fed up with how *easy* xrandr is to set up and use so I figured I'd ask here.

These are my two latest xorg.conf files, the first one is supposed to let randr do the job. I get two cloned screens, which is useless for me. The second one is supposed to disable randr and use the tipical approach I always used with every single driver over the earth.

Code:

Section "ServerLayout"
        Identifier    "my_layout"
        Screen      0  "screen_philips" 0 0
        Screen        "screen_acer" LeftOf "screen_philips"
EndSection

Section "Files"
        FontPath "/usr/share/fonts/100dpi"
        FontPath "/usr/share/fonts/75dpi"
        FontPath "/usr/share/fonts/corefonts"
        FontPath "/usr/share/fonts/dejavu"
        FontPath "/usr/share/fonts/hunkyfonts"
        FontPath "/usr/share/fonts/intlfonts"
        FontPath "/usr/share/fonts/liberation-fonts"
        FontPath "/usr/share/fonts/misc"
        FontPath "/usr/share/fonts/terminus"
EndSection

Section "Monitor"
        Identifier        "acer"
        Option            "DPMS" "true"
EndSection

Section "Monitor"
        Identifier        "philips"
        Option            "DPMS" "true"
EndSection

Section "Device"
        Identifier  "ati2600"
        Driver      "radeon"
        BusID      "PCI:1:0:0"
        Option                        "AccelMethod" "exa"
        Option                        "ExaNoDownloadFromScreen"
        Option                        "ExaNoUploadToScreen"
        Option                        "DRI" "off"
        Option                        "ScaleType" "scale"
        Option                        "Monitor-DVI-I_1/analog" "acer"
        #Option                        "Monitor-DVI-I_1/digital" "acer"
        Option                        "Monitor-DVI-I_2/analog" "philips"
        #Option                        "Monitor-DVI-I_2/digital" "philips"
        Option                        "RROutputOrder" "philips"
        #Option                        "NoRandR"
EndSection

Section "Screen"
        Identifier "screen_philips"
        Device    "ati2600"
        Monitor    "philips"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Modes "1600x1200"
                Depth    24
        EndSubSection
EndSection

Section "Screen"
        Identifier "screen_acer"
        Device    "ati2600"
        Monitor    "acer"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Modes "1680x1050"
                Depth    24
        EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "On"
EndSection
Section "ServerFlags"
        Option "AIGLX" "On"
EndSection
Section "dri"
  Mode 0666
EndSection

Code:

Section "ServerLayout"
        Identifier    "my_layout"
        Screen        "screen_philips" 0 0
        Screen        "screen_acer" LeftOf "screen_philips"
EndSection

Section "Files"
        FontPath "/usr/share/fonts/100dpi"
        FontPath "/usr/share/fonts/75dpi"
        FontPath "/usr/share/fonts/corefonts"
        FontPath "/usr/share/fonts/dejavu"
        FontPath "/usr/share/fonts/hunkyfonts"
        FontPath "/usr/share/fonts/intlfonts"
        FontPath "/usr/share/fonts/liberation-fonts"
        FontPath "/usr/share/fonts/misc"
        FontPath "/usr/share/fonts/terminus"
EndSection

Section "Monitor"
        Identifier        "acer"
        Option                "DPMS" "true"
EndSection

Section "Monitor"
        Identifier        "philips"
        Option                "DPMS" "true"
EndSection

Section "Device"
        Identifier                "ati2600"
        Driver                        "radeon"
        BusID                        "PCI:1:0:0"
        Option                        "AccelMethod" "exa"
#        Option                        "ExaNoDownloadFromScreen"
#        Option                        "ExaNoUploadToScreen"
        Option                        "DRI" "off"
#        Option                        "ScaleType" "scale"
#        Option                        "Monitor-DVI-I_1/analog" "acer"
#        Option                        "Monitor-DVI-I_1/digital" "acer"
#        Option                        "Monitor-DVI-I_2/analog" "philips"
#        Option                        "Monitor-DVI-I_2/digital" "philips"
#        Option                        "RROutputOrder" "philips"
        Option                        "NoRandR"
EndSection

Section "Device"
        Identifier                "ati2600-1"
        Driver                        "radeon"
        BusID                        "PCI:1:0:0"
        Option                        "AccelMethod" "exa"
        Option                        "DRI" "off"
EndSection

Section "Screen"
        Identifier "screen_philips"
        Device    "ati2600"
        Monitor    "philips"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Modes "1600x1200"
                Depth    24
        EndSubSection
EndSection

Section "Screen"
        Identifier "screen_acer"
        Device    "ati2600-1"
        Monitor    "acer"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Modes "1680x1050"
                Depth    24
        EndSubSection
EndSection

Section "dri"
  Mode 0666
EndSection

I always get two cloned screens at 1600x1200.

This log shows randr in action.
http://pastebin.ca/1463140

Any help is much appreciated. And if you need more info just ask.

Thanks in advance for any hint.


Edited: I think that xrandr is just making fun of me. This is what I get from it:

Code:

$ xrandr
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 1920 x 1920
HDMI-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 430mm x 270mm
  1600x1200      60.0*+
  1680x1050      59.9 +  60.0 
  1280x1024      75.0    60.0 
  1024x768      75.0    72.0    70.1    60.0 
  832x624        74.6 
  800x600        72.2    75.0    60.3    56.2 
  640x480        75.0    72.8    66.7    59.9 
  720x400        70.1 
VGA-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 430mm x 270mm
  1600x1200      60.0*+
  1680x1050      59.9 +  60.0 
  1280x1024      75.0    60.0 
  1024x768      75.0    72.0    70.1    60.0 
  832x624        74.6 
  800x600        72.2    75.0    60.3    56.2 
  640x480        75.0    72.8    66.7    59.9 
  720x400        70.1 
DVI-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 360mm x 270mm
  1600x1200      70.0*+  65.0    60.0 
  1152x864      75.0 +  75.0 
  1920x1440      60.0 
  1280x1024      85.0    75.0 
  1280x960      85.0 
  1024x768      85.0    75.0    70.1    60.0 
  832x624        74.6 
  800x600        85.1    72.2    75.0    60.3 
  640x480        75.0    72.8    59.9 
  720x400        70.1

First, there should be two screens, not only one.

Second, I have no idea how it's seen so many devices attached to a single screen (but maybe it's my lack of understanding about xrandr).

Third, to make the party even funnier, there are only two monitors, not three. The two first devices are the same monitor, an acer which *should* work on wide mode at 1680x1050. The other is a philips CRT which works ok at 1600x1200.

I guess that the problem lies there. But I have no idea where to start looking.

i92guboj 06-17-2009 05:48 AM

Just for the record. I got it to work finally with a Virtual screen. This is the valid xorg.conf in case it's useful for anyone:

Code:

Section "ServerLayout"
        Identifier    "my_layout"
        Screen        0 "screen_philips" 0 0
EndSection

Section "Files"
        FontPath "/usr/share/fonts/100dpi"
        FontPath "/usr/share/fonts/75dpi"
        FontPath "/usr/share/fonts/corefonts"
        FontPath "/usr/share/fonts/dejavu"
        FontPath "/usr/share/fonts/hunkyfonts"
        FontPath "/usr/share/fonts/intlfonts"
        FontPath "/usr/share/fonts/liberation-fonts"
        FontPath "/usr/share/fonts/misc"
        FontPath "/usr/share/fonts/terminus"
EndSection

Section "Device"
        Identifier        "ati2600"
        Driver                        "radeon"
        BusID                                "PCI:1:0:0"
        Option                        "AccelMethod" "exa"
        Option                        "DRI" "off"
        Option                        "ScaleType" "scale"
        Option                        "Monitor-DVI-0" "philips"
        Option                        "Monitor-VGA-0" "acer"
        Option                        "Monitor-HDMI-0" "acer"
EndSection

Section "Monitor"
        Identifier        "philips"
        Option                        "DPMS" "true"
        Option                        "PreferredMode" "1600x1200"
        Option                        "Position" "1680 0"
EndSection

Section "Monitor"
        Identifier        "acer"
        Option                        "DPMS" "true"
        Option                        "PreferredMode" "1680x1050"
        Option                        "LeftOf" "philips"
EndSection

Section "Screen"
        Identifier "screen_philips"
        Device    "ati2600"
        Monitor    "philips"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Modes "1600x1200"
                Virtual  3280 1200
                Depth    24
        EndSubSection
EndSection

However I would really like to have two separate X sessions, one on each monitor, just like I used to have. It's easier to handle for me.


All times are GMT -5. The time now is 01:12 AM.