Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual-head display with fglrx + xrandr
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
incripshin
n00b
n00b


Joined: 07 Oct 2005
Posts: 53
Location: Seattle, WA, US

PostPosted: Mon Jun 11, 2012 1:56 am    Post subject: Dual-head display with fglrx + xrandr Reply with quote

I have been having a hard time getting xrandr to work with my ATI graphics card. Right now, my display mirrors to my TV, but I want my desktop to extend like it does in Windows. Ultimately, this is the error I get:

Code:
$ xrandr --output DFP2 --left-of-DFP1
xrandr: screen cannot be larger than 1920x1920 (desired size 3840x1080)


Some diagnostics follow. Notice that the maximum is 1920x1920 and that what I really want is 1776x1000 on my left display (otherwise the TV cuts off some pixels), so the Virtual line specifies a maximum of 3696x1080:

Code:
$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
DFP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080      60.0*+
   1776x1000      60.0 +
   1280x720       60.0 +
   1600x1200      60.0 
   1680x1050      60.0 
   1400x1050      60.0 
   1280x1024      75.0     60.0 
   1440x900       59.9 
   1280x960       75.0     60.0 
   1280x800       75.0     60.0 
   1152x864       75.0     60.0 
   1280x768       74.9     59.9 
   1024x768       75.0     70.1     60.0 
   800x600        72.2     75.0     70.0     60.3     56.2 
   720x480        60.0 
   640x480        75.0     72.8     60.0 
DFP2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1018mm x 573mm
   1920x1080      60.0*+   30.0     24.0 
   1776x1000      60.0 +   30.0 
   1680x1050      60.0 +
   1400x1050      60.0 +
   1440x900       59.9 +
   1280x1024      60.0 
   1280x960       60.0 
   1280x800       60.0 
   1152x864       60.0 
   1280x768       59.9 
   1280x720       60.0 
   1024x768       60.0 
   1152x648       60.0 
   800x600        60.3 
   720x480        59.9     30.0 
   640x480        60.0 
CRT1 disconnected (normal left inverted right x axis y axis)
CRT2 disconnected (normal left inverted right x axis y axis)
TV disconnected (normal left inverted right x axis y axis)
CV disconnected (normal left inverted right x axis y axis)


Code:
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
        #Screen         "Screen MGA 0" "" "" "" "Screen MGA 1"
        #Screen         "Screen MGA 1" "" "" "Screen MGA 0" ""
        Identifier      "layout0"
        Screen          "screen0"
        #Screen         "screen1" LeftOf "screen0"
EndSection

Section "Files"
        FontPath        "/usr/share/fonts/dejavu/"
        FontPath        "/usr/share/fonts/corefonts/"
        FontPath        "/usr/share/fonts/TTF/"
        FontPath        "/usr/share/fonts/OTF"
        FontPath        "/usr/share/fonts/misc/"
        FontPath        "/usr/share/fonts/Type1/"
        FontPath        "/usr/share/fonts/100dpi/"
        FontPath        "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load    "dbe"
        SubSection "extmod"
                Option  "omit xfree86-dga"
        EndSubSection
EndSection

Section "ServerFlags"
        Option  "AllowEmptyInput" "true" # input devices specified in /etc/X11/xorg.conf.d/
        # in minutes:
        Option  "BlankTime" "10"
        Option  "StandbyTime" "20"
        Option  "SuspendTime" "30"
        Option  "OffTime" "60"
EndSection

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

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

Section "Device"
        Identifier      "radeon0"
        Driver          "fglrx"
        Option          "Monitor-DFP1" "Asus"
        Option          "Monitor-DFP2" "Sony"
        BusID           "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier      "screen0"
        Device          "radeon0"
        Monitor         "Asus"
        DefaultDepth    24
        SubSection "Display"
                Modes           "1920x1080" "1680x1050" "1440x900" "1366x768"
                Virtual         3696 1080
        EndSubSection
EndSection


I'm really out of ideas :(
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Jun 11, 2012 2:18 am    Post subject: Reply with quote

incripshin,

I think you have to add that mode :!:

Try
Code:
 cvt 1776 1000 60

Then copy the section after Modeline to
Code:
xrandr --newmode  "1776x1000_60.00"  147.25  1776 1888 2072 2368  1000 1003 1013 1038 -hsync +vsync

then
Code:
xrandr --addmode DFP2 1776x1000_60.00

then
Code:
xrandr --output DFP2 --mode 1776x1000_60.00


Good luck :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
incripshin
n00b
n00b


Joined: 07 Oct 2005
Posts: 53
Location: Seattle, WA, US

PostPosted: Mon Jun 11, 2012 3:15 am    Post subject: Reply with quote

[squint]Maybe[/squint], but both displays are capable of 1920x1080. What you say could be correct if xrandr/whatever tries enumerating the modes and finds nothing that adds up to my Virtual setting, and so ignores it. It seems more likely that if it were looking at my Modes, it would see that joining the first two yields 3600x1080 <= 3696x1080, which would be acceptable.

I can confirm that xrandr --output DFP2 --mode 1776x1000 does change the resolution of my second display, losing pixels on the right and bottom as compared to my primary display. I then attempted to do xrandr --output DFP2 --left-of DFP1 (I believe the extra hyphen was a typo in my first post) and got an equivalent error to what was posted.

I've since resorted to going to Windows so I can watch the fussballs and use my computer so I'll have to try that later.
Back to top
View user's profile Send private message
incripshin
n00b
n00b


Joined: 07 Oct 2005
Posts: 53
Location: Seattle, WA, US

PostPosted: Wed Jun 13, 2012 5:28 am    Post subject: Reply with quote

Okay, that just turns off my display and gives no error. I also tried using cvt -r 1776 1000 with no luck. I did try also using --left-of DFP1 to no effect.

edit
This seems to be an fglrx issue. I switched to the radeon driver and my maximum changed to what was specified in my Virtual line:

Code:
$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 3696 x 1080
DVI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080      60.0*+   60.0
   1680x1050      59.9
   1280x1024      75.0     60.0
   1440x900       59.9
   1280x960       60.0
   1152x864       75.0
   1024x768       75.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 1920x1080+0+0 (normal left inverted right x axis y axis) 1018mm x 573mm
   1920x1080      60.0*+   25.0
   1920x1080i     30.0
   2880x480       59.9
   1280x1024      60.0
   1280x720       60.0     25.0
   1024x768       60.0
   1440x480i      30.0
   800x600        60.3
   720x576        50.0
   720x480        59.9
   1440x240       60.1
   640x480        59.9


I also lost and gained possible modes. Even if I figured out how to get KDE to work correctly with this setup, I wouldn't be happy with it.

edit deux
Okay I got my display to extend using just xorg.conf, but I'm losing all 3D acceleration. I would guess xrandr would give me 3d acceleration if it would just work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum