LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-05-2008, 07:20 AM   #1
IraGainesUK
LQ Newbie
 
Registered: Dec 2008
Distribution: Scientific Linux 5
Posts: 5

Rep: Reputation: 0
Arrow 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
 
Old 12-05-2008, 07:58 AM   #2
Andrey@
LQ Newbie
 
Registered: Feb 2008
Distribution: Slack
Posts: 16

Rep: Reputation: 0
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!
 
Old 12-05-2008, 08:15 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 239Reputation: 239Reputation: 239
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)
 
Old 12-05-2008, 08:27 AM   #4
IraGainesUK
LQ Newbie
 
Registered: Dec 2008
Distribution: Scientific Linux 5
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 12-05-2008, 08:44 AM   #5
Andrey@
LQ Newbie
 
Registered: Feb 2008
Distribution: Slack
Posts: 16

Rep: Reputation: 0
Try to change
Quote:
Screen 1 "Screen1" RightOf "Screen0"
to
Quote:
Screen 1 "Screen1" LeftOf "Screen0"
Have a fun
 
Old 12-05-2008, 11:23 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The easiest way would be to run /usr/bin/nvidia-settings. Click on the "Server Settings" item in the left pane.
 
Old 12-05-2008, 12:09 PM   #7
IraGainesUK
LQ Newbie
 
Registered: Dec 2008
Distribution: Scientific Linux 5
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 12-06-2008, 05:11 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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)
 
Old 12-08-2008, 08:55 AM   #9
Larro
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
I have a low tech solution. How about physically swapping the monitors?

Last edited by Larro; 12-08-2008 at 08:57 AM.
 
Old 12-09-2008, 06:16 AM   #10
IraGainesUK
LQ Newbie
 
Registered: Dec 2008
Distribution: Scientific Linux 5
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 12-12-2008, 09:01 AM   #11
IraGainesUK
LQ Newbie
 
Registered: Dec 2008
Distribution: Scientific Linux 5
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
External screen (xorg.conf) rejeep Linux - Laptop and Netbook 2 05-01-2007 08:53 PM
Problem w/ Dual Head 6600gt xorg.conf YellowPlague Ubuntu 9 09-21-2006 10:19 PM
Fx5500 Dual mointor setup xorg.conf help please lizard_king825 Linux - Hardware 2 08-29-2006 12:28 PM
Xorg.conf and screen definition [ITA]freeware Linux - Software 2 07-08-2005 01:55 PM
Problem with xorg.conf file and screen size mjkuras Linux - Laptop and Netbook 6 02-25-2005 11:16 AM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration