xorg

Nvidia Driver on Linux – Easy, and Quick

Image representing NVidia as depicted in Crunc...
Image via CrunchBase

There is a buzz that installing the Linux based Nvidia accelerated graphics driver is complicated. I consider it rather straight forward. First install build-essential, and the headers for your kernel. Those may appear to be some bigs words in the previous sentence, but it is really one line in a terminal window. Build essential installs GCC and its dependencies:

sudo apt-get install build-essential linux-headers-$(uname -r)

Now download the latest and greatest Nvidia driver. Choose the correct build type for your architecture. Conveniently save the file to your desktop and rename it to nvidia.run. The change your tty to another. To change to tty2 press control-alt f2.

Shut down gdm, which will stop X11:

sudo /etc/init.d/gdm stop

Or if you are using the new process manager in Ubuntu 9.10 you can use also:

sudo service gdm stop

Then execute the Nvidia installation script. Login to the command prompt and navigate to the desktop:

cd Desktop
sudo sh nvidia.run

Basically answer yes to everything, let the driver compile, and then when it asks you to configure the xorg.conf file, let it. Nowadays the Nvidia driver basically works out of the box. In the past, with Ubuntu in particular, you had to comment out the included driver in Ubuntu’s modules package, otherwise the custom compiled driver would not load on startup. The open source driver used to be commented out in /etc/default/linux-restricted-modules-common (comment NV); note that this is not needed any more except in Hardy (8.04).

Then start your gdm session, which will take you back to the login window, or your desktop depending on your startup settings:

sudo /etc/init.d/gdm start

Reblog this post [with Zemanta]

ATI Catalyst Linux – 9.6 Good and Getting Better, but still a Pain in the Bug

ATI, or AMD’s catalyst drivers for linux have come a loooong way. They are currently rather good, but can be very buggy with certain configurations. Partial hardware acceleration works fine and tearing using XV has been substantially reduced. You must make care to configure xorg.conf properly otherwise your X server will crash. Well to be more specific using Compiz only will not necessarily crash your system independent of the configuration, but when you start using graphics and processor heavy applications you’ll see substantial system instability. For example I used compiz and the default xorg.conf for a long time with little problems. But then I threw MythTV into the mix. Its processor and graphics requirements caused X to free constantly and predictably. I boiled the problem down to opengl, which is easily disabled in the device section of xorg.conf with the line: Option "OpenGLOverlay" "off" Then also turn off video overlay: Option "VideoOverlay" "off" Then turn on textured video and sync it: Option "TexturedVideo" "on" Option "TexturedVideoSync" "on" For me this substantially increases X stability and I no longer can predictably have a system hard lock. Yes I still have an occasional program free but I dont have to do a hard reboot, which is really annoying. In MythTV you should configure the frontend to use XV-Blit with no deinterlacing if your capturing HD video via firewire. The video playback on an integrated 3300HD chipset is quite impressive and the minimal tearing experienced I expect to be resolved in a realease or two.