Re: HOWTO: Latest NVIDIA drivers
Quote:
Originally Posted by blastus
In setting up the drivers for my nVidia card I used the instructions posted at
http://ubuntuguide.org/ and they worked fine. However, everytime I boot up I need to open the NVIDIA Settings program or enter in "nvidia-settings --load-config-only" to get the settings to load.
My question is how do I get the "nvidia-settings --load-config-only" command to run everytime I boot up? How do I get something like this to run everytime I boot up with X.Org in Ubuntu or with XFree86 in Mepis??? :?
Sorry pal, I've no idea of how to do it. Try asking the nvidia forums (the link is at the bottom of the page of the guide)
Re: HOWTO: Latest NVIDIA drivers
Quote:
Originally Posted by linuxa
I followed the instructions as best as I could in the parent post. Except for the following change:
After I type CTRL-ALT-F1 and tried to shut kde down with "kdm stop", trying to install the NVIDIA drivers still come up with "it detected X server running"...
So I ended up deleting /etc/rc2.d/S21kdm (safe to do, since was a symbolic link to /etc/init.d/kdm). After rebooting, it forced Ubuntu into a terminal window, from which I was able to successfully install the drivers.
Unfortunately, after installation, my screen size has been reduced to 800x600 (that being the biggest size in control centre). I had a peak into /etc/X11/xorg.conf and it seems that all modes were still at 1021x768, just as I had left them.
Does any one know how I could get back my larger screen size please?
p.s. FYI, with S21kdm gone, Ubuntu will always boot to terminal, to undo what you did and restore booting to KDE type "ln -s /etc/init.d/kdm /etc/rc2.d/S21kdm" in a terminal
Content of xorg.conf:
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "Device"
Identifier "NVIDIA Corporation NV17 [GeForce4 420 Go]"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-49
VertRefresh 43-72
EndSection
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV17 [GeForce4 420 Go]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
Ok try this command (let's make another symlink):
sudo ln -s /etc/init.d/kdm /etc/rc2.d/S21kdm
Then restart your computer.
Tell me if it works
Re: HOWTO: Latest NVIDIA drivers
OK, I finally got this solved. :grin:
Effectively for my Toshiba Laptop with the Gefore4 420GO, the nv drivers that came with Ubuntu worked fine except for 3d acceleration (and it was somewhat laggy). But neither the nvidia-glx nor the nvidia drivers from nvidia.com wanted to display the 1024x768 resolution native to my laptop. Both opting to go with 800x600 each and every time.
After examining the the xorg log /var/log/Xorg.0.log line by line, I found that the EDID reported by the laptop was identifying the screen width as 969 (it was auto-correcting the horizontal & vertical refresh rates I entered as well), basically telling the driver that width of 1024 wouldn't fit.
It all worked out after I put the line:
Option "IgnoreEDID" "true"
in the Device section in xorg.conf. Basically telling X to trust the figures in xorg.conf instead what EDID comes back with.
Beware that the above option could be dangerous if you haven't set your xorg.conf correctly, it could potentially mess up your X when you start (read: black or warped display). So please careful if you intend to use this option.
Also the above option will only work for the nvidia driver. nvidia-glx doesn't have this option as far as I'm aware (someone correct me if I'm wrong).
And for anyone wanting to upgrade their drivers. It soooo pays to back up your xorg.conf before you start.
I've had many situations where I've uninstalled either of the nvidia drivers and X refused to boot to X using the default nv driver (even know the driver file was still where it's suppose to be). In those situations I've had to restore the xorg.conf to its original state and reboot to revert back to my pre-change status.
All in all, a very lengthy exercise. But well worth the fact that I can now play tuxracer with no lag ;-)
A big thank you goes out to the thread originator - tseliot)
p.s. for those wishing to install nvidia-glx instructions could be found at www.ubuntuguide.org
Re: HOWTO: Latest NVIDIA drivers
I don't understand.....
I did all the steps in the how-to, but the installation still fails. It gives an error message about my source files are not the ones used to compile my original kernel. I have used Synaptic to install the right ones for my kernel, but they don't work. Why does this have to be so hard?
Re: HOWTO: Latest NVIDIA drivers
Quote:
Originally Posted by kwid21
I don't understand.....
I did all the steps in the how-to, but the installation still fails. It gives an error message about my source files are not the ones used to compile my original kernel. I have used Synaptic to install the right ones for my kernel, but they don't work. Why does this have to be so hard?
First, make sure you don't have installed nvidia-glx from repos and remove /etc/init.d/nvidia-glx.
Second, you have to install kernel-headers according to your kernel. Type
sudo aptitude install linux-headers-$(uname -r)
Re: HOWTO: Latest NVIDIA drivers
Same error. The error is cannot locate kernel module 'nvidia.ko'
Here's the terminal dialouge for getting the headers:
root@ubuntu:~ # sudo aptitude install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading extended state information
Initializing package states... Done
root@ubuntu:~ #
Re: HOWTO: Latest NVIDIA drivers
Quote:
Originally Posted by kwid21
Same error. The error is cannot locate kernel module 'nvidia.ko'
Here's the terminal dialouge for getting the headers:
root@ubuntu:~ # sudo aptitude install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading extended state information
Initializing package states... Done
root@ubuntu:~ #
could you give me a more complete output of the error ( "The error is cannot locate kernel module 'nvidia.ko'" is not enough for me) you can find it in "/var/log/" it should be a file called "Nvidia log" or something (I don't recall its name). Please post it.
Re: HOWTO: Latest NVIDIA drivers
Had to format and reinstall because I could not get back to the desktop. I guess I start from scratch AGAIN (this is like my 6th install of Ubuntu in 2 days trying to just update my video drivers) and I have been trying to update my video drivers for 2 weeks trying 6 different distros in the process.
Re: HOWTO: Latest NVIDIA drivers
I think I got it now. It said that the driver install was successful, then I edited my xorg.conf and restarted X. The Nvidia logo splash screen went up, and brought me to the desktop. Is there a way to test if it is installed correctly?
Re: HOWTO: Latest NVIDIA drivers
Quote:
Originally Posted by kwid21
I think I got it now. It said that the driver install was successful, then I edited my xorg.conf and restarted X. The Nvidia logo splash screen went up, and brought me to the desktop. Is there a way to test if it is installed correctly?
Type ' glxinfo | grep rendering'. If yes, all ok.
btw what do you say 'glxgears'?