Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting rid of xorg.conf
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nico--
n00b
n00b


Joined: 29 Jul 2002
Posts: 59

PostPosted: Thu Apr 09, 2009 9:49 am    Post subject: Getting rid of xorg.conf Reply with quote

So I hear xorg.conf isn't needed anymore but when I tried to remove it X crashed. Seems like hal doesn't know how to load the 'nvidia' driver. Is there a way to fix this? If not, which sections do I need to keep in xorg.conf?
_________________
Quidquid latine dictum sit, altum viditur.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Thu Apr 09, 2009 10:24 am    Post subject: Reply with quote

Well, with the binary blob you don't really have a normal Xorg server. You have a mod by nvidia and it's hard to say what functionality it lacks. So it is possible that you need your xorg.conf.

BTW Paste the log (and your xorg.conf - without all the commented out stuff (if there is any))
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Apr 09, 2009 10:32 am    Post subject: Reply with quote

Try generating a fresh xorg.conf using X -configure.

See if that gives you a workable desktop, then you can selectively remove things until it works.

I'm using open source Radeon drivers, and the only thing I have in xorg.conf is the section to enable Composite extension (which is not on by default).

It might be different with the nvidia binary driver, though.
Back to top
View user's profile Send private message
Tekeli Li
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2009
Posts: 95

PostPosted: Thu Apr 09, 2009 11:33 am    Post subject: Reply with quote

I'm having the same problem with nvidia not being automatically recognized by hal/xorg. However, I don't mind having xorg.conf just for nvidia, because nvidia-settings uses it when I switch from single to dual-monitor setups, this being a laptop. Then again, I don't know if TwinView can work without xorg.conf options?
Back to top
View user's profile Send private message
jrittenh
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2005
Posts: 92

PostPosted: Thu Apr 09, 2009 1:39 pm    Post subject: Reply with quote

I'd like to see your xorg.conf as well...since the update to 1.5, I can't start WITH one!
Back to top
View user's profile Send private message
Tekeli Li
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2009
Posts: 95

PostPosted: Thu Apr 09, 2009 3:09 pm    Post subject: Reply with quote

jrittenh wrote:
I'd like to see your xorg.conf as well...since the update to 1.5, I can't start WITH one!


Here. Note that the Monitor section is a generic one, it's for the laptop's LCD, and the metamodes are designed for gaming in single screen for when I plug in the secondary LCD.

Code:

Section "ServerLayout"
    Identifier     "Simple Layout"
    Screen      0  "Screen0" 0 0
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/misc/"
    FontPath        "/usr/share/fonts/Type1/"
    FontPath        "/usr/share/fonts/100dpi/"
    FontPath        "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
    Load           "dbe"     # Double buffer extension
    SubSection     "extmod"
        Option         "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce Go 7300"
    Option         "NvAGP" "1"
       Option "RenderAccel" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "CRT: 1280x1024 +1440+0, DFP: 1440x900 +0+0; CRT: NULL, DFP: 1024x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Apr 09, 2009 3:50 pm    Post subject: Reply with quote

jrittenh wrote:
I'd like to see your xorg.conf as well...since the update to 1.5, I can't start WITH one!


Have you checked the messages in /var/log/Xorg.0.log? When I migrated a system (with nVidia) I had to comment the line with the rgb path, and then X came up. Later I commented out all of the input stuff, then the stuff in the "Screen" section that referenced the input stuff, and I'm running. The wheel on my mouse never has worked on the system I migrated, but I saw a reference to "xev", so I've emerged that and will bug it out as I get time.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
jrittenh
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2005
Posts: 92

PostPosted: Thu Apr 09, 2009 4:03 pm    Post subject: Reply with quote

depontius wrote:
jrittenh wrote:
I'd like to see your xorg.conf as well...since the update to 1.5, I can't start WITH one!


Have you checked the messages in /var/log/Xorg.0.log? When I migrated a system (with nVidia) I had to comment the line with the rgb path, and then X came up. Later I commented out all of the input stuff, then the stuff in the "Screen" section that referenced the input stuff, and I'm running. The wheel on my mouse never has worked on the system I migrated, but I saw a reference to "xev", so I've emerged that and will bug it out as I get time.


I have checked the log, and the weird thing is that there aren't any errors. I've stripped my xorg.conf down to a simple device section:

xorg.conf:
Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 570M"
    BusID          "PCI:1:0:0"
EndSection


This doesn't work either. I have a thread with more detail at https://forums.gentoo.org/viewtopic-t-753761.html but was curious about what others with nvidia drivers are using that is actually working.
Back to top
View user's profile Send private message
nico--
n00b
n00b


Joined: 29 Jul 2002
Posts: 59

PostPosted: Thu Apr 09, 2009 8:19 pm    Post subject: Reply with quote

This works for me right now.

Code:
Section "Monitor"
   Identifier  "My Monitor"
   Option      "DPMS"
EndSection

Section "Device"
   Identifier "Onboard geforce6"
   Driver     "nvidia"
   Option     "NoLogo"       "true"
   Option     "DPMS"         "true"
   Option     "backingstore" "true"
   Option     "RenderAccel"  "true"
EndSection

Section "Screen"
   Identifier  "Screen 1"
   Device      "Onboard geforce6"
   Monitor     "My Monitor"
   DefaultDepth 24
EndSection

Section "ServerLayout"
   Identifier  "Simple Layout"
   Screen      "Screen 1"
EndSection

_________________
Quidquid latine dictum sit, altum viditur.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Thu Apr 09, 2009 8:51 pm    Post subject: Reply with quote

This is all I have left uncommented in my xorg.conf. Removing that started X using the nv driver (worked, but clearly suboptimal).

Code:

Section "Device"
    Identifier  "NVidia GeForce 6200"
    Driver      "nvidia"
EndSection


All modules / resolution / bitdepth / etc. is loaded automatically or detected correctly.
It just works...
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Apr 10, 2009 6:30 am    Post subject: Reply with quote

Here is my xorg.conf that works with xorg-server-1.5.x:
Code:
Section "ServerFlags"
    Option "AllowMouseOpenFail"     "true"
    Option "AllowEmptyInput"        "true"
    Option "AutoAddDevices"         "true"
    Option "AutoEnableDevices"      "true"
    Option "NoPM"                   "true"
EndSection

Section "Module"
    Load  "record"
    Load  "xtrap"
    Load  "dbe"
    Load  "glx"
    Load  "extmod"
EndSection

Section "Device"
    Option      "TwinView"
    Option      "TwinViewXineramaInfoOrder" "DFP, CRT"
    Option      "MetaModes"  "1600x1200,1920x1200;  NULL,1920x1200; 1024x768,1024x768"
    Option      "TwinviewOrientation"  "DFP-0 RightOf CRT-0"
    Identifier  "Card0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"

    Option      "NvAGP"                "0"
    Option      "NoLogo"               "false"
    Option      "RenderAccel"          "false"
    Option      "NoRenderExtension"    "false"
    Option      "UseEdidFreqs"         "true"

    BoardName   "C51PV [GeForce 6150]"
    BusID       "PCI:0:5:0"
    Option      "DPI"                  "120 x 120"

    Option      "AddARGBGLXVisuals" "true"
    Option      "UseEvents"         "false"
EndSection

There is probably more stuff I could strip out of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum