You are not logged in.

#1 2014-05-10 15:57:45

denis_M
Member
Registered: 2014-05-09
Posts: 6

[SOLVED] My two monitors have the same desktop in both screens.

Hello everyone this is my first time posting on arch forums :-).

I have setup a dual monitor solution on my machine with Intel ATI graphics, with custom Xorg .conf files.

90-serverlayout.conf

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
EndSection


Section "Module"
	Load  "glx"
EndSection

30-screen-lg.conf

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "LG"
	ModelName    "22EN33"
	Option "Primary" "true"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Modes   "1920x1080"
        	Depth     24
	EndSubSection
EndSection

30-screen-lg1.conf

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "LG"
	ModelName    "22EN33"
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	SubSection "Display"
	     Depth     24
        EndSubSection
EndSection

20-intel.conf

Section "Device"
	Identifier  "Card1"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

20-radeon.conf

Section "Device"
    Option     "ZaphodHeads" "VGA1"
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:1:0"
EndSection

The configuration works, the second monitor shows up, but there are some issues.

  • The second monitor shows the same desktop as the first one. I would like the second to be an extension of the first one.

  • The window manager(openbox) as well as the keybord don't  work in the second monitor.
    in the first monitor.
    in the second monitor.

  • I can't drag applications from one monitor to the other.

So my question is what configuration do i have to write to have the above issues removed?

P.S. i have attached two images to show the window manager in both screens

Last edited by denis_M (2014-05-14 19:10:42)

Offline

#2 2014-05-10 21:26:07

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: [SOLVED] My two monitors have the same desktop in both screens.

What exactly do you have equipment wise?
You'll most likely need catalyst, and there is a unofficial repo for that.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2014-05-11 08:43:29

denis_M
Member
Registered: 2014-05-09
Posts: 6

Re: [SOLVED] My two monitors have the same desktop in both screens.

If by

equipment wise

you mean the graphics card and the processor, then i have an ATI Radeon 7770HD and an Intel(R) Core i3-3240 @ 3.4GHz
Also my monitors are LG 22EN33. If it is any helpfull here is the output of lspci for my graphics card and the display adapter.

$lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770 GHz Edition]

$lspci | grep Disp
00:02.0 Display controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)

Offline

#4 2014-05-11 19:00:48

denis_M
Member
Registered: 2014-05-09
Posts: 6

Re: [SOLVED] My two monitors have the same desktop in both screens.

Does anyone else have any suggestion about this issue?

Offline

#5 2014-05-11 19:11:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED] My two monitors have the same desktop in both screens.

I've not ever tried it by manipulating Xorg configuration files. 
I suggest you take a look at xrandr
Running it by itself will tell you about your existing setup.  It's man page does a nice job of explaining how to configure things dynamically.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-05-11 19:53:36

denis_M
Member
Registered: 2014-05-09
Posts: 6

Re: [SOLVED] My two monitors have the same desktop in both screens.

So i removed the *.conf files and i tried using xrandr.

$ xrandr -q 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1400x1050     59.98  
   1600x900      59.98  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      59.97  
   1024x768      75.08    60.00  
   832x624       74.55  
   800x600       75.00    60.32    56.25  
   640x480       75.00    60.00  
   720x400       70.08

then i run

$ xrandr --addmode DisplayPort-2 1920x1080

and now the output of xrandr -q was

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
   1920x1080     60.00  
HDMI-2 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1400x1050     59.98  
   1600x900      59.98  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      59.97  
   1024x768      75.08    60.00  
   832x624       74.55  
   800x600       75.00    60.32    56.25  
   640x480       75.00    60.00  
   720x400       70.08  

i finally did

$xrandr --output DVI-1 --mode 1920x1080 --output DisplayPort-2 --mode 1920x1080 --right-of DVI-1

That seemed to widen the first screen, i could drag the mouse beyond the right border but the second stayed black and showed nothing.

Offline

#7 2014-05-11 20:38:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED] My two monitors have the same desktop in both screens.

I was think something more along the lines of:
xrandr  --output  DisplayPort-2  --auto --rotate normal --pos 0x0 --output DVI-1  --auto  --rotate  normal  --right-of DisplayPort-2

I have not tried that command, so you might have to tailor it a bit.

Last edited by ewaller (2014-05-11 20:38:44)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2014-05-12 16:40:53

denis_M
Member
Registered: 2014-05-09
Posts: 6

Re: [SOLVED] My two monitors have the same desktop in both screens.

At last i solved the problem. All that was needed was an option in 90-serverlayout.conf. Here is the final configuration.

90-serverlayout.conf

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
EndSection

Section "Module"
	Load  "glx"
EndSection

With this solution though i'm not able to use xrandr anymore but that is fine!
Thanks to ewaller and nomorewindows who tried to help me!

Offline

Board footer

Powered by FluxBB