Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg configuration with multiGPU, multihead (radeon)
View unanswered posts
View posts from last 24 hours

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


Joined: 02 Mar 2015
Posts: 2

PostPosted: Tue Mar 17, 2015 10:35 pm    Post subject: Xorg configuration with multiGPU, multihead (radeon) Reply with quote

Hello, I've been trying to get 3 monitor outputs to work across my two graphics cards (AMD R9 280X and HD 5770), and For the most part it's working. I have 2 monitors on the 280X, and 1 on the 5770. I can move my mouse between all of them without lag, (previously it would stutter RIGHT when i move from main card to secondary, but NOT vice versa) however it seems it's not detecting screens properly, even though I believe I have it setup in xorg.conf properly. It seems to think my two monitors on the 280X are one entity, and then creates another screen for the 5770 two times as big as would be expected.

This is what I want I'm trying to put together, and this picture includes the mysterious second screen:
http://i.imgur.com/f7etBkk.png

here are two screenshots while the system is running:
http://i.imgur.com/Ndcr88S.jpg
http://i.imgur.com/YbsJNix.jpg

Like I said above, I am able to move the mouse between them all as expected, however I cannot move windows (I assume because it's a separate screen). I've also tested this in bspwm and i3, and the same sort of problems occur (dmenu can only open up on one screen, cannot move windows to other monitors)

Here is xorg.conf:
Code:
Section "Device"
    Identifier             "280X"
    Driver                 "radeon"
    BusID                  "PCI:1:0:0"
    Option "AccelMethod" "glamor"
    Option "Monitor-DVI-1" "Monitor 1"
    Option "Monitor-DVI-0" "Monitor 2"
EndSection

Section "Device"
    Identifier             "5770"
    Driver                 "radeon"
    BusID                  "PCI:2:0:0"
    Option "AccelMethod" "glamor"
    Option "Monitor-DVI-1-1" "Monitor 3"
EndSection

Section "Monitor"
    Identifier             "Monitor 3"
    Option                 "Position" "-2560 0"
EndSection

Section "Monitor"
    Identifier             "Monitor 1"
    Option                 "Position" "0 0"
    Option "Primary" "True"
EndSection

Section "Monitor"
    Identifier             "Monitor 2"
    Option                 "Position" "2560 0"
EndSection

Section "Screen"
    Identifier             "Screen 3"
    Device                 "5770"
    Monitor                "Monitor 3"
EndSection

Section "Screen"
    Identifier             "Screen 1"
    Device                 "280X"
    Monitor                "Monitor 1"
EndSection


Section "Screen"
    Identifier             "Screen 2"
    Device                 "280X"
    Monitor                "Monitor 2"
EndSection

Section "ServerLayout"
    Identifier      "Main Layout"
    Screen   "Screen 3" LeftOf "Screen 1"
    Screen   "Screen 1"
    Screen   "Screen 2" RightOf "Screen 1"
EndSection


and here is the xorg log. All I did was startx, then once it started, pkill x

https://bpaste.net/show/6c09dcbd51ae

(I'm not sure if I should link the full log file, it's over 700 lines and I'm sure I'm butchering the formatting already. I will edit the post if I should paste it all here.)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Wed Mar 18, 2015 2:09 pm    Post subject: Reply with quote

I think you need xinerama enable to move windows across screens.

And you should be kind with xorg.
Code:

Screen   "Screen 3" LeftOf "Screen 1"
    Screen   "Screen 1"
    Screen   "Screen 2" RightOf "Screen 1"

I would had use a more logical
Code:
Screen1
Screen2 Right...
Screen3 Left..

To avoid the possible confusion: Screen3 LeftOf Screen1 but where is Screen1?
Better show it screen1 before refering to it in other screen
Back to top
View user's profile Send private message
crat0z
n00b
n00b


Joined: 02 Mar 2015
Posts: 2

PostPosted: Wed Mar 18, 2015 6:15 pm    Post subject: Reply with quote

Late last night, I was still working on this and ended up doing what you said. I think I've made some more progress. I got rid of the empty half screen it was making, and enabled Xinerama. However, there are two more problems that have occured, and I'll explain them next.

This is the first new xorg.conf I came up with, and it seems to ALMOST work.
Code:
Section "Device"
    Identifier             "280X"
    Driver                 "radeon"
    BusID                  "PCI:1:0:0"
    Option "AccelMethod" "glamor"
    Option "Monitor-DVI-1" "Monitor 1"
    Option "Monitor-DVI-0" "Monitor 2"
EndSection

Section "Device"
    Identifier             "5770"
    Driver                 "radeon"
    BusID                  "PCI:2:0:0"
    Option "AccelMethod" "glamor"
    Option "Monitor-DVI-1-1" "Monitor 3"
EndSection

Section "Monitor"
    Identifier             "Monitor 1"
    Option "PreferredMode" "2560x1440"
    Option "Primary" "true"
EndSection

Section "Monitor"
    Identifier             "Monitor 3"
    Option "PreferredMode" "2560x1440"
    Option "LeftOf" "DVI-1"
EndSection

Section "Monitor"
    Identifier             "Monitor 2"
    Option "PreferredMode" "2560x1440"
    Option "RightOf" "DVI-1"
EndSection

Section "Screen"
    Identifier             "Screen 1"
    Device                 "280X"
    Monitor                "Monitor 1"
EndSection

Section "Screen"
    Identifier             "Screen 3"
    Device                 "5770"
    Monitor                "Monitor 3"
EndSection


Section "Screen"
    Identifier             "Screen 2"
    Device                 "280X"
    Monitor                "Monitor 2"
EndSection

Section "ServerLayout"
    Identifier      "Main Layout"
    Screen   "Screen 2"
    Screen   "Screen 1" LeftOf "Screen 2"
    Screen   "Screen 3" LeftOf "Screen 1"
    Option "Xinerama" "on"
EndSection


What happens with the above configuration is when I start X, the left and middle monitor works fine, but the right monitor (monitor 2) is at first a mirror. When I move my cursor to the edge of the middle monitor on the right side, (and thus on the right monitor as well), it pans over into the position the right monitor is supposed to be in. Then when I move the cursor back to the left, it scrolls all the way over until it's mirrored with the middle monitor again. It also seems to think center and right monitor are again one "screen". Also, under ServerLayout, I resorted to just using LeftOf because I read on another forum that RightOf can cause this exact issue, and it did, however changing them or any other combination didn't work.

Below is configuration two, using ZaphodHeads options under devices:

Code:
Section "Device"
    Identifier             "280X 1"
    Driver                 "radeon"
    BusID                  "PCI:1:0:0"
    Option "AccelMethod" "glamor"
    Option "ZaphodHeads" "DVI-1"
EndSection

Section "Device"
    Identifier             "5770 3"
    Driver                 "radeon"
    BusID                  "PCI:2:0:0"
    Option "AccelMethod" "glamor"
EndSection

Section "Device"
    Identifier      "280X 2"
    Driver      "radeon"
    BusID      "PCI:1:0:0"
    Option "AccelMethod" "glamor"
    Option "ZaphodHeads" "DVI-0"
EndSection

Section "Monitor"
    Identifier             "Monitor 1"
    Option "PreferredMode" "2560x1440"
EndSection

Section "Monitor"
    Identifier             "Monitor 3"
    Option "PreferredMode" "2560x1440"
EndSection

Section "Monitor"
    Identifier             "Monitor 2"
    Option "PreferredMode" "2560x1440"
EndSection

Section "Screen"
    Identifier             "Screen 1"
    Device                 "280X 1"
    Monitor                "Monitor 1"
EndSection

Section "Screen"
    Identifier             "Screen 3"
    Device                 "5770 3"
    Monitor                "Monitor 3"
EndSection


Section "Screen"
    Identifier             "Screen 2"
    Device                 "280X 2"
    Monitor                "Monitor 2"
EndSection

Section "ServerLayout"
    Identifier      "Main Layout"
    Screen   "Screen 3"
    Screen   "Screen 1" RightOf "Screen 3"
    Screen   "Screen 2" RightOf "Screen 1"
    Option "Xinerama" "on"
EndSection


I have another one that is more explicit, and probably uses irrelevant options, because they produce the same results, so I'm not gonna include it. With this one, left and center monitors are perfectly fine but the right one is again just a mirror. No weird panning/scrolling though. I assume this second config is what I should work with, because it seems to me ZaphodHeads essentially creates different screens, and ties them together with Xinerama. I don't know why this one is mirrored though. I know for a fact DVI-0 is the right one, and DVI-1 is the center one. Maybe there is an option I've missed? I'm not entirely sure.
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