LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nVidia users: less hassle to use the nouveau driver on -current with a recent kernel (https://www.linuxquestions.org/questions/slackware-14/nvidia-users-less-hassle-to-use-the-nouveau-driver-on-current-with-a-recent-kernel-799578/)

Didier Spaier 04-02-2010 08:43 AM

nVidia users: less hassle to use the nouveau driver on -current with a recent kernel
 
I installed kernel 2.6.34-rc3 on Slackware64-current with March 31 updates applied and did this to get "nouveau" working under X:
Code:

cd /local_mirror_of_slackware64-current/source/x/libdrm/
wget http://dri.freedesktop.org/libdrm/libdrm-2.4.19.tar.bz2
./libdrm.SlackBuild
upgradepkg /tmp/libdrm-2.4.19-x86_x64-1.txz
cd ~/tmp
git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/
cd xf86-video-nouveau
./autogen.sh
make
cp src/.libs/nouveau_drv.so /usr/lib64/xorg/modules/drivers
echo -e 'Section "Device"\nIdentifier "n"\nDriver "nouveau"\nEndSection' > /etc/X11/xorg.conf

In short :
- no firmware needed anymore, at least for my graphical card
- no need for a git version of libdrm anymore, only upgrade from 2.4.18 (included in -current as of today) to 2.4.19
- of course an X driver for "nouveau" is still needed

Beware: upgrade libdrm to 2.4.19 before making the X nouveau driver, otherwise it won't compile (here, at least).

[EDIT]
To avoid getting a black screen at startup you can:
* either blacklist nouveau (it will be loaded at X startup anyway so this doesn't prevent using it)
* or use one of the options "VGA=ask" or "VGA=ext" in lilo.conf and run lilo

This is because there is a resources conflict between nouveau and most framebuffer devices

Have fun.

botnet 04-02-2010 09:22 AM

nouveau driver gives me bad graphical glitches

X starts, but the colors are all dark and i can barely see anything

gt240m is my card

GazL 04-02-2010 09:24 AM

Quote:

Originally Posted by Didier Spaier (Post 3921632)

And keep nouveau blacklisted, this is still necessary to avoid getting a black screen during boot process ;)

Have fun.

Once they fix that issue, I may be tempted to give it a try. Until then, I'll sit by and watch from a distance. ;)

Didier Spaier 04-02-2010 10:35 AM

@botnet: Are you sure nouveau is loaded ? I once got that using an nv driver. To make sure type "lsmod|grep nouveau".

Oh and I forgot: if you use HAL you should have a minimum xorg.conf, as shown in the last line of code I just added to my fist post.

Other than that may-be your chipset needs a firmware, though mine don't, or you suffer from interference of a former blob install, see here

@GazL: I will further investigate and let you know if/when I get this bad behavior fixed.

GazL 04-02-2010 11:53 AM

Quote:

Originally Posted by Didier Spaier (Post 3921806)
@GazL: I will further investigate and let you know if/when I get this bad behavior fixed.

Don't go to any trouble on my account mate. I'm watch nouveau developments with interest, but I'm in no rush.

At the moment I'm more curious about whether the nouveau Xorg server is ever going to get into OpenBSD as I don't have the option of running a proprietary driver on my OBSD box.

botnet 04-02-2010 02:11 PM

Quote:

Originally Posted by Didier Spaier (Post 3921806)
@botnet: Are you sure nouveau is loaded ? I once got that using an nv driver. To make sure type "lsmod|grep nouveau".

Oh and I forgot: if you use HAL you should have a minimum xorg.conf, as shown in the last line of code I just added to my fist post.

Other than that may-be your chipset needs a firmware, though mine don't, or you suffer from interference of a former blob install, see here

@GazL: I will further investigate and let you know if/when I get this bad behavior fixed.

yeah nouveau loads, this is with no xorg, on a fresh install. its no big deal as i use the nvidia driver anyway

samac 04-02-2010 02:20 PM

I just installed the latest version of the nvidia driver 195.36.15 on the 2.6.33.1 kernel and I have seen a massive improvement whilst playing foobillard, does the nouveau driver give the same level of speed as the nvidia driver?

samac

Didier Spaier 04-02-2010 02:43 PM

I can't tell for sure as I just installed it to see how it looks like and don't bother to install a blob now, but the answer is probably no as 3D hardware acceleration is not yet available. As stated in GalliumHowto:
Quote:

This code is in rapid development. You should only use it if you are curious about it or want to help with development. Ordinary users wishing to run 3D games fast should stick to the nVidia proprietary drivers for the time being, if possible, unless the software rasterizer or llvmpipe are fast enough for you.

samac 04-02-2010 02:44 PM

Thanks Didier

samac

botnet 04-02-2010 02:55 PM

Quote:

Originally Posted by Didier Spaier (Post 3922088)
I can't tell for sure as I just installed it to see how it looks like and don't bother to install a blob now, but the answer is probably no as 3D hardware acceleration is not yet available. As stated in GalliumHowto:

so nouveau is still being developed?

http://www.phoronix.com/scan.php?pag...kills_nv&num=1


edit: err, nevermind, thats the nv driver...

Didier Spaier 04-02-2010 03:02 PM

@Samac: you are welcome indeed ;)

BTW would you want to give it a try though, better follow this howto unless you upgrade your kernel to 2.6.34-rc2 or newer ; for 2.6.33.* other steps are needed to make nouveau working.

adamk75 04-02-2010 03:31 PM

There is 3D acceleration for at least some video cards as compiz has been reported to work on nouveau.

Adam

Didier Spaier 04-02-2010 04:25 PM

@Adam: yes, if using Gallium ;)

@GazL: I noticed following line in /var/log/syslog, nouveau not being blacklisted:
Code:

Apr  2 18:52:58 darkstar kernel: fb: conflicting fb hw usage nouveaufb vs VESA VGA - removing generic driver
To check I re-compiled 2.6.34-rc3 with "VESA VGA graphics support"=N but still "Framebuffer Console support"=Y.
I booted on an old-looking VGA screen (maximum resolution 80x60!) but after a while the display switched to a decent framebuffer console - so at least nouveau fb do not conflict with console fb.

Nevertheless I don't see any inconvenience in keeping nouveau blacklisted as anyhow it will be automatically loaded at X startup if chosen through xorg.conf ;)

GazL 04-02-2010 04:36 PM

Interesting. :) Thanks for the progress report. I'll keep watching with interest for now, but it looks promising for the future.

lumak 04-02-2010 09:09 PM

I had no problem installing the latest stable nvidia driver 195.36.15. Works just fine on 64-current


All times are GMT -5. The time now is 04:10 AM.