LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Xorg.conf dual screen setup problem (https://www.linuxquestions.org/questions/linux-hardware-18/xorg-conf-dual-screen-setup-problem-688512/)

IraGainesUK 12-05-2008 07:20 AM

Xorg.conf dual screen setup problem
 
Hello all,

Im new here and fairly new to Linux, so apologies in advance. My problem is this, Im trying to set up a dual screen system with 2 identical monitors. However I cannot get screen '1' to be on the left and screen '2' to be on the right.

Dragging between the 2 works as expected (so its not a case of physically picking up and moving the screens), and I'm not confident enough about modifying my Xorg.conf file to know whats going on.

Heres my Xorg.conf file;

Quote:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder58) Wed Oct 1 15:13:37 PDT 2008

Section "ServerLayout"
Identifier "Lee's Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"

Option "xinerama" "off"
Option "clone" "off"
EndSection

Section "Files"
FontPath "unix/:7100"
EndSection

Section "ServerFlags"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"
# generated from data in "/etc/sysconfig/keyboard"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "gb"
Option "XkbModel" "pc105"
EndSection

Section "InputDevice"
# generated from data in "/etc/sysconfig/mouse"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8500 GT"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8500 GT"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Hanns.G"
ModelName "HSD HW191D"
HorizSync 30.0 - 80.0
VertRefresh 49.0 - 75.0
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Hanns.G"
ModelName "HSD HW191D"
HorizSync 30.0 - 80.0
VertRefresh 49.0 - 75.0
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "CRT: nvidia-auto-select +1440+0, DFP: 1440x900 +0+0; CRT: nvidia-auto-select +640+0, DFP: 640x480 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "CRT: nvidia-auto-select +1440+0, DFP: 1440x900 +0+0; CRT: nvidia-auto-select +640+0, DFP: 640x480 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Im running Scientific Linux 5 release 2.6.18-92.1.13.el5, KDE version 3.5.4-16.el5 Red Hat and my graphics card is an Nvidia GeForce 8500 GT.

The last thing which may be helpful to know is the monitors are connected to the same graphics card, but one is a DVI connection (the current left screen and screen 2) and one is a VGA (the right screen and screen 1).

Can anybody help me swapping the screen numbers around so the left screen becomes screen 1, and everything happens here (login screen, icons line up, etc...), and help would be much appreciated!

Thanks,
Lee

Andrey@ 12-05-2008 07:58 AM

So you use binary proprietary driver from nvidia. I would propose the other one.
On the official X site for nv (http://www.x.org/wiki/nv) you'll find the link to nouveau driver.
I succeed with for my laptop. I especially like it for on flight reconfiguration by xrandr.
Have a good weekend, enjoy!

Shadow_7 12-05-2008 08:15 AM

That looks mostly right. You might try

Option "xinerama" "true"

or

Option "xinerama" "on"

instead of:

Option "xinerama" "off"

as I believe that it's the xinerama that gets you the multi-head / screen layout. Or I could be wrong. Some proprietary drivers have special options, so you might try googling specifically for your driver as well. As the bug forest only likes maple trees, only on thursdays, only after a fresh rain, but only when the moon is half full. (i.e. they were trained by microsoft)

IraGainesUK 12-05-2008 08:27 AM

Hi Andrey@ and Shadow_7,

Thanks for your replies. I cannot change the driver, im on a system maintained by a network admin, and I dont have the privelages. He wants to help solve this problem however, but isnt willing to change the drivers for one machine only.

Regards xinerama - im not sure exactly what it does, but when it was enabled, clicking to maximise a screen would maximise across both, whereas I want maximise to maximise across one only. - does that kinda make sense?

Thanks again guys,
Lee

Andrey@ 12-05-2008 08:44 AM

Try to change
Quote:

Screen 1 "Screen1" RightOf "Screen0"
to
Quote:

Screen 1 "Screen1" LeftOf "Screen0"
Have a fun

jschiwal 12-05-2008 11:23 AM

The easiest way would be to run /usr/bin/nvidia-settings. Click on the "Server Settings" item in the left pane.

IraGainesUK 12-05-2008 12:09 PM

Thanks jschiwal,

Ive already tried the graphical interface, but its not working. Unfortunately the administrator has gone home for the weekend now, and so ill have to wait until monday to make any further changes.

Ill try the 'rightof' to 'leftof' trick and see if that works, but i think ive already tried that, and its nothing as simple...

Do you think that linux has built in recognition for the VGA screen to be screen number 1, and DVI to be number 2?

Thanks,
Lee

jschiwal 12-06-2008 05:11 AM

It might be a good idea to add
BusID "<bus-id>"
to each of the "Device" sections. Using a dual head video card, it will be the same. This might help, due to having a separate "Device" section for each "Monitor" even though you only have one device.

Code:

/sbin/lspci | grep nVidia
01:00.0 VGA compatible controller: nVidia Corporation Device 062a (rev a1)
jschiwal@qosmio:/mnt/hpmedia> grep BusID /etc/X11/xorg.conf
    BusID          "PCI:1:0:0"
    BusID          "PCI:1:0:0"

The nvidia setup program I mentioned works pretty slick at setting up xorg.conf. You also need to configure your desktop environment to use the correct monitor as the primary one (with the desktop icons and menu)

Larro 12-08-2008 08:55 AM

I have a low tech solution. How about physically swapping the monitors?

IraGainesUK 12-09-2008 06:16 AM

Hi jschiwal and Larro,

Ill try adding the BusID to my Xorg.conf file and see if that makes a difference.

And as for the low-tech solution Larro, as I said right at the beginning...
Quote:

Dragging between the 2 works as expected (so its not a case of physically picking up and moving the screens)
When you physically swap them around, you drag off the left hand side of the left screen, and it comes in at the right of the right hand screen. Dragging between the 2 screens does not work. But thanks for the suggestion!

Ill let you all know how it goes...
Lee

IraGainesUK 12-12-2008 09:01 AM

Hi Guys,

Just to let you know, the BusID "PCI:1:0:0" crashed my X windowing system, so Ive decided to live with it the way it is.

Thanks for your help and support, it is much appreciated.

Lee


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