LinuxQuestions.org
Visit Jeremy's Blog.
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 09-23-2006, 01:10 PM   #1
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Rep: Reputation: 15
Cannot get two monitors working with X, Nvidia 6800


I am trying to use a dual monitor setup, but I am having some problems. This is my setup:
Mandriva 2006 x64 (kernel 2.6.12-12mdk).
PNY nvidia 6800 video card.
Monitor 1: Samsung 730B LCD
Monitor 2: Old Viewsonic 17" CRT

During boot, both screens work, but as soon as I get to the login screen, my crt goes black. I was able to get just the crt working, so I would think it's possible.

Please let me know if you know what I am doing wrong here.

This is my /etc/X11/xorg.conf file:
# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "/usr/X11R6/lib64/modules/extensions/nvidia/libglx.so"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "en_US"
Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "1024x768 @ 70 Hz"
HorizSync 31.5-57.0
VertRefresh 50-70

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Monitor"
Identifier "monitor2"
VendorName "Generic"
Option "CRT"
ModelName "1024x768 @ 70 Hz"
HorizSync 31.5-57.0
VertRefresh 50-70
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX (generic)"
Driver "nvidia"
Screen 0
Option "DPMS"
Option "IgnoreEDID" "1"
EndSection
Section "Device"
Identifier "device2"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX (generic)"
Driver "nvidia"
Screen 1
Option "DPMS" "CRT"
Option "IgnoreEDID" "1"
EndSection
Section "Screen"
Identifier "Leftscreen"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 15
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 16
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 24
Virtual 1024 768
EndSubsection
EndSection
Section "Screen"
Identifier "Rightscreen"
Device "device1"
Monitor "monitor2"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 15
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 16
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 24
Virtual 1024 768
EndSubsection
EndSection
Section "ServerFlags"
Option "Xinerame" "on"
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Option "Xinerama" "true"
Option "TwinView" "true"
Screen 0 "Leftscreen" 0 0
Screen 1 "Rightscreen" RightOf "Leftscreen"
EndSection
 
Old 09-25-2006, 03:51 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Option "Xinerame" "on"
First, that should be "Xinerama", and second, you either use Xinerama, or use Twinview, not both.
My preference is for Twinview as it is abstracted at the hardware level. Here I have posted a working xorg.conf that uses Twinview:
http://badcomputer.org/unix/xorg.conf

Note that the Twinview settings are in the "Device" section. When using Twinview X doesn't (read: shouldn't) even know that you have two monitors, the vidcard fools X into thinking you have a desktop twice as big as it really is.
 
Old 09-27-2006, 10:08 PM   #3
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
I made the changes in xorg.conf, but I am still not seeing two monitors. I have tried a bunch of different settings, but to little help, and this is my current xorg.conf:

# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "/usr/X11R6/lib64/modules/extensions/nvidia/libglx.so"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "en_US"
Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "1024x768 @ 70 Hz"
HorizSync 31.5-57.0
VertRefresh 50-70

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
#deModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
#deModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection

Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX (generic)"
Driver "nvidia"
Screen 0
Option "TwinView"
#Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768"
Option "MetaModes" "1024x768,1024x768; 1024x768,1024x768"
#Option "HorizSync" "30-110"
#Option "VertRefresh" "50-160"
#Option "MetaModes" "1024x768,1024x768"
Option "DPMS"
Option "IgnoreEDID" "1"
EndSection

Section "Screen"
Identifier "Leftscreen"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 15
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 16
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 24
Virtual 1024 768
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "Leftscreen"
EndSection


I get this warning in /var/log/Xorg.0.log:
(WW) NVIDIA(0): Unable to find mode "1024x768" for display device 1 in
(WW) NVIDIA(0): MetaMode "1024x768,1024x768"
(WW) NVIDIA(0): Unable to find mode "1024x768" for display device 1 in
(WW) NVIDIA(0): MetaMode "1024x768,1024x768"


Where am I supposed to set this?

Thanks
 
Old 09-27-2006, 10:31 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I have not seen that error, but perhaps it is because you have the same resolution mode entered twice:

Quote:
Option "MetaModes" "1024x768,1024x768; 1024x768,1024x768"
What you want here is a pair of resolutions, 1 for each monitor, separated by a semicolon to allow other resolutions if you use [ctrl]+[alt]+[+] keyboard combo to cycle them:

Code:
Option "MetaModes" "1024x768,1024x768; 1200x1024,1200x1024"
Also note that your "Display" and "ServerLayout" sections look wrong.
Remember that when you are using Twinview you are hiding the fact from X that you have two monitors, so have a look at the xorg.conf I posted again and model yours after it.

I can assure you, I am using that same xorg.conf file on the computer I am writing this message to you on
So it does work...
 
Old 09-28-2006, 08:50 PM   #5
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
I had just those modes since that's the resolution I wanted to use on both screens. I thought that was what those values was for, but I might be wrong. I modified it to what you had, but it didn't help. The serverlayout looked the same as yours I thought.

So, I copied your file, and after a couple of failures since there were a few things I didn't have, I got it to work!

Not sure what it was, but I will look at that later, I am just happy I got it to work. Thanks man.

Now I can watch MythTV on my other monitor, which was the goal for this.
 
Old 09-28-2006, 10:54 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Cool. Glad you got it sorted.
 
  


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
Nvidia 6800 ULTRA bme guy Linux - Hardware 2 02-21-2005 07:01 PM
Installed Mandrake 10.1 but Nvidia 6800 Drivers not working? lachesis Linux - Newbie 2 02-08-2005 05:25 PM
Mandrake 10.1 with Nvidia 6800 Chudilo Linux - Hardware 9 01-16-2005 01:00 AM
TV out on an nvidia geforce 6800? Braveheart1980 Linux - Hardware 5 09-19-2004 10:25 AM
2 monitors, nvidia, problem with window-size (maximize uses both monitors) meximex Linux - Hardware 1 05-19-2004 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration