I was up early last Sunday. just couldn’t sleep anymore. So i decided to do a fresh OS install on my main workstation. One or two weeks ago i updated my Ubuntu 8.04 to the latest 8.10 Interpid. This went without real big problems. And the system was running stable. Besides at the office i did some clean installs of Ubuntu 8.10. And there were no real problems to name.
So i thought what the hell. Let’s do a clean install here at home also. I created a backup of my important files. and downloaded the new .iso image (couldn’t find the previous downloaded one). And started of the install. It was nice weather and i thought if i finish this fast. I can go and enjoy a nice Sunday.
The install went without problems. And after rebooting it booted up fine. First thing i did was run an update through synaptic. Installed the new kernel and a whole lot of other packages. Did a reboot. And everything was still fine and dandy. Now it was time to install the Nvidia driver. I used the Restricted Hardware manager in Ubuntu to select the NVidia 177 driver. Which did the job before the install. And rebooted the machine after the install was complete.
When it booted backup. I was surprised to see a tty screen. and not the GDM i expected
. The error message on the screen stated no screens found. So i logged in and checked the xorg.conf file. Which had a pretty default setup. So i thought running nvidia-xconfig would solve the problem. This generated the same xorg.conf. After rebooting a few times and trying to change the xorg.conf file. I was getting a bit frustrated.
In my hurry i by accident removed my backup partition. So i was getting more frustrated every minute. I do have to say i have a dual Head system. With two PCI-e video cards. And for some strange reason nvidia-xconfig didn’t find the correct hardware. And running nvidia-settings from command line is not possible. So i was stuck. Removing the nvidia-glx driver and the rest of the nvidia-177 files. Got me back in X. Running a very low resolution.
Googling revealed i was not the only one with this problem. But there were no real solutions. At least none that worked on my system. So i decided to reinstall Ubuntu 8.04. Updated the whole damn system. Installed the nvidia-glx-new driver. And got everything to work. After this i did a distupdate to 8.10. And everything kept working. This was weird. I was happy the system is up and running again. But i wasn’t satisfied.
I made a backup of my xorg.conf file. And again did a complete new install of Ubuntu 8.10. After the install i updated to the new kernel. And after a reboot installed the nvidia-177 driver. But this time before i rebooted i copied my old xorg.conf file over the one generated by nvidia-xconfig. Rebooted the machine. Everything worked.
Conclusion. nvidia-xconfig doesn’t create a correct xorg.conf file. I got two different errors from the nvidia driver at boot up. One saying “no screens found’ The other one saying “Device is not PCI” or something like that.
I’ll add my xorg.conf file here. Maybe it’s of any use
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorgSection “ServerLayout”
Identifier “Default Layout”
Screen 0 “Screen0″ 0 0
EndSectionSection “Module”
Load “glx”
EndSectionSection “ServerFlags”
Option “Xinerama” “0″
EndSection# commented out by update-manager, HAL is now used
#Section “InputDevice”
# Identifier “Generic Keyboard”
# Driver “kbd”
# Option “XkbRules” “xorg”
# Option “XkbModel” “pc105″
# Option “XkbLayout” “us”
#EndSection# commented out by update-manager, HAL is now used
#Section “InputDevice”
# Identifier “Configured Mouse”
# Driver “mouse”
# Option “CorePointer”
#EndSectionSection “Monitor”
Identifier “Configured Monitor”
EndSectionSection “Monitor”
Identifier “Monitor0″
VendorName “Unknown”
ModelName “Iiyama PL2201W”
HorizSync 30.0 – 80.0
VertRefresh 55.0 – 75.0
EndSectionSection “Device”
Identifier “Configured Video Device”
Driver “nvidia”
Option “NoLogo” “True”
EndSectionSection “Device”
Identifier “Videocard0″
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 8600 GT”
BusID “PCI:1:0:0″
EndSectionSection “Screen”
Identifier “Default Screen”
Device “Configured Video Device”
Monitor “Configured Monitor”
DefaultDepth 24
EndSectionSection “Screen”
Identifier “Screen0″
Device “Videocard0″
Monitor “Monitor0″
DefaultDepth 24
Option “TwinView” “1″
Option “TwinViewXineramaInfoOrder” “DFP-0″
Option “metamodes” “DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1680+0″
EndSection








Thijs Lensselink is a 30 year old Web developer from The Netherlands.
With more then 10 years experience in the field of building and maintaining PHP
based web applications. Currently he works as a Freelance Web Developer under ...
[...] And for some strange reason nvidia-xconfig didn’t find the correct hardware . And running nvidia-settings from command line is not possible. So i was stuck. Read more [...]
autocarsinsurance.net » Blog Archive » Ubuntu 8.10 NVidia driver trickery
17 Nov 08 at 05:13
Thanks a million for your post! It saved me. I had given up on getting it to work, and was using old legacy drivers with lousy performance.
It seems indeed as if the 177 drivers mess up xorg.conf. :/ But it seems such a simple thing that they’ll probably have it fixed soon.
Thanks again!
Niklas
27 Nov 08 at 10:16
@Niklas
Good it helped somebody. I guess the real problem lays with nvidia-xconfig not reconising the hardware. I noticed there’s an update for the nvidia driver. But it’s not released to the public. Maybe this fixes the problem.
Thijs Lensselink
27 Nov 08 at 10:47
Hello,
I came across this on having this same problem and an easy fix I have found is to disable the onboard video card through bios works excellent and was a quick fix especially for a linux noob like me.
ziofel
11 Jan 09 at 16:55
Interesting. Will give it s shot next time i do a clean install. Thanks for the post.
Thijs Lensselink
11 Jan 09 at 17:39
I had the same exact problem, and found a solution. In fact, I came across the problem again and am looking for the solution again because I forgot. The problem has to do with dkms not rebuilding the nvidia driver module into the kernel in an update of the kernel and video driver. I’ll write again when I get to the bottom of it.
Jason
13 Jan 09 at 00:14
Same problem here. i came across the problem more then once. I was just so lucky to have my old xorg.conf laying around. I’m not sure what causes this problem. I would be very interested in a clean solution. Maybe “ziofel” comment is a step in the right direction?
Thijs Lensselink
13 Jan 09 at 11:21
Had exactly the same problem. I used your posted xorg.conf file to manually rewrite my own using nano at the command line, here is what I believe to be the basic code to get it working, for anyone who wishes to do the same:
Section “Device”
Identifier “VideoCard0″
Driver “nvidia” #I dont know if this is necessary or if it just a name
BusID “PCI:2:0:0″ #You may have to try 0/1/2/3 if you dont know the ID of the used PCI slot
EndSection
Section “Monitor” #I think this section may also be arbitrary, but I’m not entirely sure
Identifier “Monitor0″
End Section
Section “Screen”
Identifier “Default Screen”
Monitor “Monitor0″ #This name should match the above defined monitor
Device “VideoCard0″ #This must match the defined videocard above
EndSection
Jack Bradford
25 Dec 09 at 20:39
Thanks for the update Jack. I tried it out. Just had to change the PCI location and it worked. Nice snippet to keep in my backup!
Thijs Lensselink
26 Dec 09 at 11:25