LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2010, 08:43 AM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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.

Last edited by Didier Spaier; 04-03-2010 at 03:08 AM. Reason: How-to avoid a black screen at startup updated
 
Old 04-02-2010, 09:22 AM   #2
botnet
Member
 
Registered: May 2009
Posts: 158

Rep: Reputation: 40
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
 
Old 04-02-2010, 09:24 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by Didier Spaier View Post

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.
 
Old 04-02-2010, 10:35 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
@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.

Last edited by Didier Spaier; 04-02-2010 at 10:41 AM.
 
Old 04-02-2010, 11:53 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by Didier Spaier View Post
@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.
 
Old 04-02-2010, 02:11 PM   #6
botnet
Member
 
Registered: May 2009
Posts: 158

Rep: Reputation: 40
Quote:
Originally Posted by Didier Spaier View Post
@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
 
Old 04-02-2010, 02:20 PM   #7
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
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
 
Old 04-02-2010, 02:43 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-02-2010, 02:44 PM   #9
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Thanks Didier

samac
 
Old 04-02-2010, 02:55 PM   #10
botnet
Member
 
Registered: May 2009
Posts: 158

Rep: Reputation: 40
Quote:
Originally Posted by Didier Spaier View Post
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...

Last edited by botnet; 04-02-2010 at 02:56 PM. Reason: cant read
 
Old 04-02-2010, 03:02 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
@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.
 
Old 04-02-2010, 03:31 PM   #12
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

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

Adam
 
Old 04-02-2010, 04:25 PM   #13
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
@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
 
Old 04-02-2010, 04:36 PM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Interesting. Thanks for the progress report. I'll keep watching with interest for now, but it looks promising for the future.
 
Old 04-02-2010, 09:09 PM   #15
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kernel Log: Linux 2.6.33 to include Nvidia graphics driver nouveau LXer Syndicated Linux News 0 12-15-2009 05:20 AM
LXer: Using The Nouveau Driver In Ubuntu 9.04 LXer Syndicated Linux News 0 04-24-2009 03:41 PM
Ati Driver again - on current kernel 2.6.29 - Kernel vbisis Slackware 3 04-16-2009 07:29 PM
LXer: Nouveau Driver Q&A LXer Syndicated Linux News 0 09-02-2007 08:30 PM
How to view recent and current logins? QAR Linux - Software 3 02-28-2005 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration