Monday, July 04, 2005

simple nvidia fix

Get that nVidia video card working.

Real solution at the end of this post, borrowed from the ubuntu wiki. If this solution does not work or you do not have an nVidia video card, try there. It may have a better solution for you.

I couldn't figure out why my nVidia video card wasn't working with my new install of Kubuntu. I tried downloading a .sh package from the nVidia web site. When I installed the script, it complained about shutting off the X server. Well, figuring out what the hell X server is was another bit of research. Another easy fix.

Ctrl-Alt-F1 to bring up a text login screen.

Log in as root (or do it all through sudo). When logging in as root, you may have to set the root password now. That requires editing of the shadow file, basically erasing the * in the roots password (this makes it so you don't need a password for root. A very dangerous thing). Now that root requires no password, log in as root and change its password with passwd.

To turn off the X server (the graphical user interface of Linux, like the fancy login screen)

> sudo /etc/init.d/?dm stop
# where ? is either g for gnome, k for kde
# of course, to start it again, end the line with start instead of stop.

Now that X is turned off, the video card install script still didn't want to install. Something about not having access to the kernel to reconfigure itself. So the true, easy fix appears and viola! working video card.

Here are the simple lines to type into the terminal in order to automatically configure your video card for your system. Note, this is specifically for an nVidia video card. It will be different for ATI.

> sudo apt-get install nvidia-glx

> sudo nvidia-glx-config enable

And that will do it! To make sure it's working, benchmark it in glxgears.

> glxgears

kyle@waggyMachine:~$ glxgears
8151 frames in 5.0 seconds = 1630.200 FPS
8825 frames in 5.0 seconds = 1765.000 FPS
8764 frames in 5.0 seconds = 1752.800 FPS
8774 frames in 5.0 seconds = 1754.800 FPS
8870 frames in 5.0 seconds = 1774.000 FPS

Not getting above 1000 frames per second? Don't fear. Either reboot the computer or simply log in as root from a text terminal then

> /etc/init.d/kdm stop
> /etc/inti.d/kdm start

and it should work fine.

-Now if I could only get my sound working

No comments:

Followers