Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62630 - Xorg -configure flaw for nvidia hardware setup
Summary: Xorg -configure flaw for nvidia hardware setup
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 08:46 UTC by Doug McMillan
Modified: 2004-11-09 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug McMillan 2004-09-02 08:46:01 UTC
per the document http://www.gentoo.org/doc/en/xorg-config.xml 
I did a "Xorg -configure" this did install a functional (slightly
fuzzy) X setup the only problem is the file generated will not 
allow the opengl nvidia drivers to function. I was trying to 
install the eternal-lands game and talking to the developers 
there we tracked the issue to my xorg.conf

While looking at the xorg.conf I ran both versions again.
The xorg installs had VERY notable differences. It appears 
that the "Xorg -configure" does NOT generate a file that is
opengl useable while the "xorgconfig" does and with not
really that musch more effort.

Note that http://www.gentoo.org/doc/en/xorg-config.xml bills 
"Xorg -configure" as the "Default: Automatic Generation of xorg.conf"
and 
"xorgconfig" as the "Alternative: Semi-Automatic Generation of xorg.conf"
People like me that are new to linux will assume the default 
is the more stable  better way to go while the alternative method
is an option most of us will propably use the default and for
people that have nvidia cards like me this will fubar them a
whole lot.

xorg.cong as done by "Xorg -configure"
=============================================================================
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath     "/usr/share/fonts/misc/"
FontPath     "/usr/share/fonts/TTF/"
FontPath     "/usr/share/fonts/Speedo/"
FontPath     "/usr/share/fonts/Type1/"
FontPath     "/usr/share/fonts/CID/"
FontPath     "/usr/share/fonts/75dpi/"
FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
Load  "glx"
Load  "record"
Load  "extmod"
Load  "dbe"
# Load  "dri"   commented out after the fact no change
Load  "xtrap"
Load  "freetype"
Load  "type1"
Load  "speedo"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option     "Protocol" "IMPS/2"
Option     "Device" "/dev/input/mouse0"             # name under udev
Option     "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
       ### Available Driver options are:-
       ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
       ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
       ### [arg]: arg optional
       #Option     "DigitalVibrance"     # <i>
       #Option     "NoFlip"              # [<bool>]
       #Option     "Dac8Bit"             # [<bool>]
       #Option     "NoLogo"              # [<bool>]
       #Option     "UBB"                 # [<bool>]
       #Option     "Stereo"              # <i>
       #Option     "SWcursor"            # [<bool>]
       #Option     "HWcursor"            # [<bool>]
       #Option     "VideoKey"            # <i>
       #Option     "NvAGP"               # <i>
       #Option     "IgnoreEDID"          # [<bool>]
       #Option     "NoDDC"               # [<bool>]
       #Option     "ConnectedMonitor"    # <str>
       #Option     "ConnectedMonitors"   # <str>
       #Option     "TVStandard"          # <str>
       #Option     "TVOutFormat"         # <str>
       #Option     "RenderAccel"         # [<bool>]
       #Option     "CursorShadow"        # [<bool>]
       #Option     "CursorShadowAlpha"   # <i>
       #Option     "CursorShadowXOffset"  # <i>
       #Option     "CursorShadowYOffset"  # <i>
       #Option     "UseEdidFreqs"        # [<bool>]
       #Option     "FlatPanelProperties"  # <str>
       #Option     "TwinView"            # [<bool>]
       #Option     "TwinViewOrientation"  # <str>
       #Option     "SecondMonitorHorizSync"  # <str>
       #Option     "SecondMonitorVertRefresh"  # <str>
       #Option     "MetaModes"           # <str>
       #Option     "UseInt10Module"      # [<bool>]
       #Option     "NoTwinViewXineramaInfo"  # [<bool>]
       #Option     "NoRenderExtension"   # [<bool>]
       #Option     "Overlay"             # [<bool>]
       #Option     "CIOverlay"           # [<bool>]
       #Option     "ForceEmulatedOverlay"  # [<bool>]
       #Option     "TransparentIndex"    # <i>
       #Option     "OverlayDefaultVisual"  # [<bool>]
       #Option     "NvEmulate"           # <i>
       #Option     "NoBandWidthTest"     # [<bool>]
       #Option     "CustomEDID-CRT-0"    # <str>
       #Option     "CustomEDID-CRT-1"    # <str>
       #Option     "CustomEDID-DFP-0"    # <str>
       #Option     "CustomEDID-DFP-1"    # <str>
       #Option     "CustomEDID-TV-0"     # <str>
       #Option     "CustomEDID-TV-1"     # <str>
       #Option     "TVOverScan"          # <f>
       #Option     "IgnoreDisplayDevices"  # <str>
       #Option     "MultisampleCompatibility"  # [<bool>]
       #Option     "RegistryDwords"      # <str>
       #Option     "NoPowerConnectorCheck"  # [<bool>]
       #Option     "AllowDFPStereo"      # [<bool>]
       #Option     "XvMCUsesTextures"    # [<bool>]
       #Option     "HorizSync"           # <str>
       #Option     "VertRefresh"         # <str>
Identifier  "Card0"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName   "GeForce FX 5700 Ultra"
BusID       "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
 Viewport   0 0
 Depth     1
EndSubSection
SubSection "Display"
 Viewport   0 0
 Depth     4
EndSubSection
SubSection "Display"
 Viewport   0 0
 Depth     8
EndSubSection
SubSection "Display"
 Viewport   0 0
 Depth     15
EndSubSection
SubSection "Display"
 Viewport   0 0
 Depth     16
EndSubSection
SubSection "Display"
 Viewport   0 0
 Depth     24
EndSubSection
EndSection

==============================================================================
xorg.cong as done by "xorgconfig'
Note I did remove of the commented lines to save space
==============================================================================
Section "Module"
   Load        "dbe"   # Double buffer extension
   Load        "type1"
   Load        "speedo"
   Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
   Load       "glx"
# This loads the DRI module
#    Load       "dri"
EndSection
Section "Files"
   RgbPath "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/share/fonts/misc/"
   FontPath   "/usr/share/fonts/TTF/"
   FontPath   "/usr/share/fonts/Speedo/"
   FontPath   "/usr/share/fonts/Type1/"
   FontPath   "/usr/share/fonts/CID/"
   FontPath   "/usr/share/fonts/75dpi/"
   FontPath   "/usr/share/fonts/100dpi/"
   FontPath   "/usr/share/fonts/local/"

   ModulePath "/usr/X11R6/lib/modules"       #I had to manually uncomment this line

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"
EndSection


Section "InputDevice"
   Identifier "Keyboard1"
   Driver "Keyboard"
   Option "AutoRepeat" "500 30"
   Option "XkbRules" "xorg"
   Option "XkbModel" "pc104"
   Option "XkbLayout" "us"
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

   Identifier "Mouse0"
   Driver "mouse"
   Option "Protocol"    "IMPS/2"
   Option "Device"      "/dev/input/mouse0"
   Option "ZAxisMapping" "4 5"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution" "256"


EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
   Identifier  "EV700"
   HorizSync   31.5 - 64.3
   VertRefresh 50-120
EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************
# Standard VGA Device:
Section "Device"
   Identifier "Standard VGA"
   VendorName "Unknown"
   BoardName "Unknown"
   Driver     "vga"
EndSection

# Device configured by xorgconfig:

Section "Device"
   Identifier  "GeForce FX 5700 Ultra"
   Driver      "nvidia"
   VideoRam    131072
   # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
   Identifier  "Screen 1"
   Device      "GeForce FX 5700 Ultra"
   Monitor     "EV700"
   DefaultDepth 24
   Subsection "Display"
       Depth       8
       Modes       "1280x1024" "1024x768" "800x600" "640x480"
       ViewPort    0 0
   EndSubsection
   Subsection "Display"
       Depth       16
       Modes       "1280x1024" "1024x768" "800x600" "640x480"
       ViewPort    0 0
   EndSubsection
   Subsection "Display"
       Depth       24
       Modes       "1280x1024" "1024x768" "800x600" "640x480"
       ViewPort    0 0
   EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************
Section "ServerLayout"
   Identifier  "Simple Layout"
   Screen "Screen 1"
   InputDevice "Mouse0" "CorePointer"
   InputDevice "Keyboard1" "CoreKeyboard"
EndSection

# Section "DRI"
#    Mode 0666
# EndSection
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-02 12:21:48 UTC
How about xorgcfg?
Comment 2 Doug McMillan 2004-09-04 00:55:48 UTC
while I didn't try running it the output of the xorgcfg looks to  be the same as that of the Xorg -configure

xorg.conf as done by xorgcfg
======================================================================

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/Speedo/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/CID/"
	FontPath     "/usr/share/fonts/75dpi/"
	FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
	Load  "glx"
	Load  "record"
	Load  "extmod"
	Load  "dbe"
	Load  "dri"
	Load  "xtrap"
	Load  "freetype"
	Load  "type1"
	Load  "speedo"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/mouse"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "DigitalVibrance"    	# <i>
        #Option     "NoFlip"             	# [<bool>]
        #Option     "Dac8Bit"            	# [<bool>]
        #Option     "NoLogo"             	# [<bool>]
        #Option     "UBB"                	# [<bool>]
        #Option     "Stereo"             	# <i>
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "NvAGP"              	# <i>
        #Option     "IgnoreEDID"         	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ConnectedMonitor"   	# <str>
        #Option     "ConnectedMonitors"  	# <str>
        #Option     "TVStandard"         	# <str>
        #Option     "TVOutFormat"        	# <str>
        #Option     "RenderAccel"        	# [<bool>]
        #Option     "CursorShadow"       	# [<bool>]
        #Option     "CursorShadowAlpha"  	# <i>
        #Option     "CursorShadowXOffset" 	# <i>
        #Option     "CursorShadowYOffset" 	# <i>
        #Option     "UseEdidFreqs"       	# [<bool>]
        #Option     "FlatPanelProperties" 	# <str>
        #Option     "TwinView"           	# [<bool>]
        #Option     "TwinViewOrientation" 	# <str>
        #Option     "SecondMonitorHorizSync" 	# <str>
        #Option     "SecondMonitorVertRefresh" 	# <str>
        #Option     "MetaModes"          	# <str>
        #Option     "UseInt10Module"     	# [<bool>]
        #Option     "NoTwinViewXineramaInfo" 	# [<bool>]
        #Option     "NoRenderExtension"  	# [<bool>]
        #Option     "Overlay"            	# [<bool>]
        #Option     "CIOverlay"          	# [<bool>]
        #Option     "ForceEmulatedOverlay" 	# [<bool>]
        #Option     "TransparentIndex"   	# <i>
        #Option     "OverlayDefaultVisual" 	# [<bool>]
        #Option     "NvEmulate"          	# <i>
        #Option     "NoBandWidthTest"    	# [<bool>]
        #Option     "CustomEDID-CRT-0"   	# <str>
        #Option     "CustomEDID-CRT-1"   	# <str>
        #Option     "CustomEDID-DFP-0"   	# <str>
        #Option     "CustomEDID-DFP-1"   	# <str>
        #Option     "CustomEDID-TV-0"    	# <str>
        #Option     "CustomEDID-TV-1"    	# <str>
        #Option     "TVOverScan"         	# <f>
        #Option     "IgnoreDisplayDevices" 	# <str>
        #Option     "MultisampleCompatibility" 	# [<bool>]
        #Option     "RegistryDwords"     	# <str>
        #Option     "NoPowerConnectorCheck" 	# [<bool>]
        #Option     "AllowDFPStereo"     	# [<bool>]
        #Option     "XvMCUsesTextures"   	# [<bool>]
        #Option     "HorizSync"          	# <str>
        #Option     "VertRefresh"        	# <str>
	Identifier  "Card0"
	Driver      "nvidia"
	VendorName  "nVidia Corporation"
	BoardName   "GeForce FX 5700 Ultra"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-04 01:23:31 UTC
If you comment out VendorName and/or BoardName from the first one's video card section, does it work?
Comment 4 Doug McMillan 2004-09-06 16:00:41 UTC
Nope nor if you comment out the  BusID

With those glxinfo give this

name of display: :0.0
Error: couldn't find RGB GLX visual

  visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21  8 pc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
0x22  8 gs  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
0x23  8 sc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
0x24  8 tc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
0x25  8 dc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
0x26  8 sg  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None

what the eternel-lands people and I got to thinking is that the glx needs the display modes that are not generated under the two methods but are under the other
Comment 5 Andrew Bevitt 2004-09-09 17:40:21 UTC
Identifier  "nVidia FX5200"
    Driver      "nvidia"
    Option      "NoLogo"                        "true"
    Option      "NvAgp"                         "3"
    Option      "CursorShadow"                  "true"
    Option      "UseEdidFreqs"                  "false"
    Option      "TwinView"                      "false"
    Option      "RenderAccel"                   "true"
    BusID       "AGP:2:0:0"
EndSection

andrew@asteroid ~ $ /sbin/lspci |grep VGA
0000:02:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)

Run lspci (emerge pciutils) and look for your video card, assuming its on :1:0:0 as the configure scripts gave, try changing so you have AGP:....: as opposed to PCI

Unless you really have a PCI FX5700 :)

Also try uncommenting the option NvAGP and setting is value to 3 (see in my dump of my section)
Comment 6 Andrew Bevitt 2004-11-09 17:36:07 UTC
Closing for inactivity.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-09 17:36:56 UTC
Again, not fixed.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-09 17:37:09 UTC
Please reopen this if you attach new info.