Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Yet another strange Xorg + NVIDIA problem
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
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Sat Dec 02, 2006 11:11 pm    Post subject: [Solved] Yet another strange Xorg + NVIDIA problem Reply with quote

Before I begin, let me just say that I've already tried searching through google and these forums to no avail. Neither gave me a solution to my specific error and a search for "xorg nvidia" returns way too many results to be significant.

With that out of the way, I haven't been able to get X started since I installed gentoo on this computer a few weeks ago. I originally installed linux (2.6.18-gentoo-r2), xorg-x11 (7.1), nvidia-drivers (1.0.9629), gnome (2.14), and beryl (0.1.2, installed using the guide on gentoo-wiki.com), but unfortunately got the infamous "white screen" problem wherein all I would see was the NVIDIA logo, then the beryl logo, and be left at a completely white screen. I had a cursor and could move it around, but couldn't do anything useful on the screen.

Using a suggestion I found on the forums, I did the following:
Code:
# emerge mesa xorg-server nvidia-drivers beryl-core -1av
# eselect opengl set nvidia

After that, X wouldn't even start. Using startx, my computer would just freeze and I couldn't go back to another terminal forcing me to do a hard-reboot. Using xdm, the screen would go black, eventually I would see the ncurses-based X error console that spat out the X log, and the X session would be terminated.

Since then, I've upgraded to gentoo-sources 2.6.18-r3 and 2.6.19-r1 and recompiled the nvidia module for each with no success. If anyone knows what's going on, I'd love to hear it. I really don't want to recompile everything (not that that would necessarily fix it).

Here is the relevant portion of Xorg.0.log:
Code:
Backtrace:
0: X(xf86SigHandler+0x71) [0x48704c]
1: /lib/libc.so.6 [0x2b27cb0f3300]
2: X [0x471ff8]
3: /usr/lib64/xorg/modules/drivers/nvidia_drv.so [0x2b27cc83733c]

Fatal server error:
Caught signal 11.  Server aborting


Here are some files if anyone wants to help or is interested (also to minimize the clutter):
/etc/X11/xorg.conf
/var/log/Xorg.0.log (full)
/usr/src/linux-2.6.18-gentoo-r3/.config


Last edited by bubbl07 on Tue Dec 12, 2006 1:07 am; edited 1 time in total
Back to top
View user's profile Send private message
CrazyPyro
n00b
n00b


Joined: 21 May 2003
Posts: 51
Location: Michigan, USA

PostPosted: Sun Dec 03, 2006 2:00 am    Post subject: Reply with quote

Have you tried not using beryl? To me, that seems the likely suspect. I know compositing is great n' all, but see if X comes up without it.
Back to top
View user's profile Send private message
richfish
Apprentice
Apprentice


Joined: 03 Mar 2006
Posts: 202
Location: Phoenix, AZ

PostPosted: Sun Dec 03, 2006 2:10 am    Post subject: Reply with quote

The AddARGBGLXVisuals option should be in the Device section. Not sure if this will fix the problem, but it is an error I see in your xorg.conf file.
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Sun Dec 03, 2006 4:33 am    Post subject: Reply with quote

@CrazyPyro: I know beryl can be a hassle, but the problem seems to arise before any window managers get called. It seems to be a problem with X itself. I've tried with Gnome, KDE, and fluxbox with no luck. Besides, I like shiny things =P.

@richfish: I didn't see that, and I fixed it, but it didn't solve the problem =/.
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Tue Dec 05, 2006 7:49 pm    Post subject: Reply with quote

NVIDIA just released a new driver (1.0.9631) yesterday. I realize now that I kept compiling the nvidia-drivers modules with the /usr/src/linux symlink pointed to the 2.6.19-gentoo-r1 kernel. Maybe that's why it didn't work :roll:.

When I get home, I'll try the new driver and if that doesn't work, I'll point the symlink back at a 2.6.18-series kernel. Wish me luck.
Back to top
View user's profile Send private message
TiMiD
n00b
n00b


Joined: 31 May 2005
Posts: 46
Location: Osaka

PostPosted: Tue Dec 05, 2006 10:00 pm    Post subject: Reply with quote

The 9629 version of the nvidia drivers crash when launching OpenGL application if you have a geforce4 based video card, that could be your problem.
I use the 9626 version which just works.
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Tue Dec 12, 2006 1:24 am    Post subject: Reply with quote

So, after hours of tinkering and two new Gentoo installs (it's becoming second nature at this point), I've finally fixed the problem.

After reinstalling Gentoo twice (neither time with beryl) and still presenting the same problem, I tried real troubleshooting.

Using the Xorg nvidia driver ("nv"), I was presented with the same error. I commented out every line in my xorg.conf file except for the device driver, and X suddenly started with the nv driver (albeit at a very awkward resolution, but that's expected). This worked again when I used the nvidia binary driver, so I was getting pretty excited. Slowly and painfully I uncommented everything that I commented in my xorg.conf kept restarting xdm after every change to find the culprit. If X crashed using '/etc/init.d/xdm restart', even though I couldn't see anything I could alt-F1 over to a terminal and type in 'reboot' blindly; 'startx' would just freeze everything -- but I digress. I finally uncommented the line
Code:
Option      "CustomKeycodes"   "yes"
and it started. After uncommenting everything but that, it continued to work.

Moral of the story: if X isn't starting and you're not getting any meaningful debugging information, check your xorg.conf. Also, problems that may seem to have to do with your video settings may present themselves in the keyboard section. Stupid keyboards.

Hopefully this'll help someone else that may have a similar problem in the future =/.

My current (working) xorg.conf now looks like this:
Code:
Section "ServerLayout"
        Identifier      "Layout0"
        Screen 0        "Screen0"       0 0
        InputDevice     "Microsoft Natural Ergonomic Keyboard 4000"     "CoreKeyboard"
        InputDevice     "Microsoft Wireless IntelliMouse Explorer 2.0"  "CorePointer"
        Option          "OffTime"       "30"
EndSection

Section "Files"
        FontPath        "/usr/share/fonts/75dpi"
        FontPath        "/usr/share/fonts/100dpi"
        FontPath        "/usr/share/fonts/corefonts"
        FontPath        "/usr/share/fonts/misc"
        FontPath        "/usr/share/fonts/Type1"
        RgbPath         "/usr/share/X11/rgb"
EndSection

Section "Module"
        Load    "dbe"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "record"
        Load    "type1"
        Load    "xtrap"
        SubSection      "extmod"
                Option  "omit xfree86-dga"
        EndSubSection
EndSection

Section "InputDevice"
        Identifier      "Microsoft Wireless IntelliMouse Explorer 2.0"
        Driver          "mouse"
        Option          "Buttons"       "5"
        Option          "Device"        "/dev/input/mice"
        Option          "Protocol"      "Auto"
EndSection

Section "InputDevice"
        Identifier      "Microsoft Natural Ergonomic Keyboard 4000"
        Driver          "keyboard"
        Option          "XkbLayout"             "us"
        Option          "XkbModel"              "microsoftpro"
EndSection

Section "Monitor"
        Identifier      "Dell 2005FPW"
        VendorName      "Dell"
        ModelName       "2005FPW"
        Option          "DPMS"
EndSection

Section "Device"
        Identifier      "PNY GeForce 6600GT (NV43)"
        Card            "NVIDIA GeForce 6600GT"
        Driver          "nvidia"
        Option          "AddARGBGLXVisuals"     "true"
        Option          "AllowGLXWithComposite" "true"
        Option          "Coolbits"              "1"
        Option          "CursorShadow"
        Option          "CursorShadowAlpha"     "32"
        Option          "CursorShadowXOffset"   "3"
        Option          "CursorShadowYOffset"   "3"
        Option          "DPMS"                  "true"
        Option          "HWcursor"
        Option          "FlatPanelProperties"   "Scaling = aspect-scaled"
#       Option          "NoLogo"                "true"
        Option          "RandRRotation"         "on"
        Option          "RenderAccel"           "true"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "PNY GeForce 6600GT (NV43)"
        Monitor         "Dell 2005FPW"
        DefaultDepth    24
        Subsection      "Display"
                Viewport        0 0
                Depth           24
                Modes           "nvidia-auto-select"
        EndSubSection
        Option          "AddARGBGLXVisuals"     "true"
EndSection

Section "Extensions"
        Option  "Composite"     "Enable"
EndSection
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