Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-16-11, 03:30 PM   #1
mdowns53
Registered User
 
Join Date: Nov 2011
Posts: 3
Default Gentoo 3.0.0 and Nvidia driver problem

I'm new to Linux/Gentoo and I'm having trouble getting the nVidia driver to work. I've install the 275 and 285 drivers from nVidia and I get no errors during installation. But, when I run nvidia-settings, it says that I don't have nVidia X driver running. I actually don't know what is running X, but my KDE environment works just fine. The system used to have all kinds of refernces (in dmesg and lsmod, etc) to nouveau, but I've eliminated all of those thinking that it was interfering with the nvidia driver working correctly.

These are the only references to nvidia in dmesg:
[ 7.595653] nvidia: module license 'NVIDIA' taints kernel.
[ 7.595655] Disabling lock debugging due to kernel taint
[ 7.923582] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 7.923588] nvidia 0000:01:00.0: setting latency timer to 64
[ 7.923591] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=nonew ns=io+mem
[ 7.923661] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 275.21 Mon Jul 18 14:40:18 PDT 2011

I compile and run a very simple CUDA program that I wrote and it says
cudaSetDevice failed! Do you have a CUDA-capable GPU installed?addWithCuda failed!

So, do I have to do any other configurations to the system besides installing the nvidia device driver?

Thanks,
Mike
mdowns53 is offline   Reply With Quote
Old 11-17-11, 08:22 AM   #2
jeisom
Registered User
 
Join Date: Dec 2005
Location: My own little world
Posts: 117
Default Re: Gentoo 3.0.0 and Nvidia driver problem

I have a couple questions. Have you edited the /etc/X11/xorg.conf to change the driver to nvidia? How did you install it? Through portage? For cuda I believe you need to emerge dev-util/nvidia-cuda-toolkit.
jeisom is offline   Reply With Quote
Old 11-17-11, 02:39 PM   #3
cthulhu
Great Old One
 
cthulhu's Avatar
 
Join Date: Sep 2002
Posts: 124
Default Re: Gentoo 3.0.0 and Nvidia driver problem

Have you changed the VIDEO_CARDS variable in/etc/make.conf?

If not you should change it to this:
Code:
VIDEO_CARDS="nvidia"
And for HW accelerated video decoding you should enable the "vdpau" useflag.
__________________
Desktop: Asus P5B Deluxe, Core2Duo E8500, 2GB Corsair 800MHz CL4, Gigabyte GTX460 1024MB
HTPC: Asus P5B-E, Core2Duo 6300, 1GB Corsair 533MHz, Asus 9500GT w/ 512MB DDR3
Server: Gigabyte D510UD, Atom D510, 2GB Corsair 800MHz, Hauppauge NOVA-T500 dual DVB-T tuner, 4x 2TB Samsung F3EG (RAID5)
Laptop: Asus U6V, Core2Duo P8400, 3GB DDR2, 9300M GS
OS on all: Gentoo Linux

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
cthulhu is offline   Reply With Quote
Old 11-17-11, 04:51 PM   #4
mdowns53
Registered User
 
Join Date: Nov 2011
Posts: 3
Default Re: Gentoo 3.0.0 and Nvidia driver problem

Quote:
Originally Posted by cthulhu View Post
Have you changed the VIDEO_CARDS variable in/etc/make.conf?

If not you should change it to this:
Code:
VIDEO_CARDS="nvidia"
And for HW accelerated video decoding you should enable the "vdpau" useflag.
No I haven't. Do I have to rebuild the kernel to get this to take effect or just reboot? If I have to rebuild the kernel, can you give me the command that I should issue?

Thanks

But, /etc/make.conf is just for portage isn't it? How does this affect which video driver is used?
mdowns53 is offline   Reply With Quote
Old 11-17-11, 04:55 PM   #5
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: Gentoo 3.0.0 and Nvidia driver problem

You have to re-emerge xorg-drivers after changing the VIDEO_CARDS variable. Then you reboot.
Gusar is offline   Reply With Quote
Old 11-17-11, 05:41 PM   #6
mdowns53
Registered User
 
Join Date: Nov 2011
Posts: 3
Default Re: Gentoo 3.0.0 and Nvidia driver problem

Quote:
Originally Posted by Gusar View Post
You have to re-emerge xorg-drivers after changing the VIDEO_CARDS variable. Then you reboot.
Well, before when I can glxinfo, it said that it couldn't find display 0, now at least it says
glxinfo
name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".

So before, it was probably just using the 'vesa' driver?.

My Xorg.0.log says

[ 15.942] (==) Matched nouveau as autoconfigured driver 0
[ 15.942] (==) Matched vesa as autoconfigured driver 1
[ 15.942] (==) Matched fbdev as autoconfigured driver 2
[ 15.942] (==) Assigned the driver to the xf86ConfigLayout
[ 15.942] (II) LoadModule: "nouveau"
[ 16.013] (WW) Warning, couldn't open module nouveau
[ 16.013] (II) UnloadModule: "nouveau"
[ 16.013] (II) Unloading nouveau
[ 16.013] (EE) Failed to load module "nouveau" (module does not exist, 0)

nvidia isn't mentioned in this log at all. How do I have nvidia the autoconfigured driver 0?
I did do the merge xorg-drivers and it did install the X11 driver and the nvidia 275 driver. Of course, I rebooted.

BTW, I really appreciate the help!

Any ideas?
mdowns53 is offline   Reply With Quote
Old 11-17-11, 05:55 PM   #7
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: Gentoo 3.0.0 and Nvidia driver problem

This should really be on the Gentoo forums, where you'd actually find solutions just by searching. A lot of my posts, among others.

X won't load nvidia automatically on Gentoo. You need a minimal xorg.conf:
Code:
Section "Device"
    Identifier  "Nvidia Card"
    Driver      "nvidia"
EndSection
Also, it should already be set, but just to be sure, run "eselect opengl set nvidia"
Gusar is offline   Reply With Quote
Old 11-18-11, 06:15 AM   #8
cthulhu
Great Old One
 
cthulhu's Avatar
 
Join Date: Sep 2002
Posts: 124
Default Re: Gentoo 3.0.0 and Nvidia driver problem

Quote:
Originally Posted by Gusar View Post
You have to re-emerge xorg-drivers after changing the VIDEO_CARDS variable. Then you reboot.
I would recommend running the following command:
Code:
emerge -aDNv world
As it will rebuild all packages affected by the useflags, you've changed.
  • a - ask (shows you a list of packages to emerge and asks for confirmation)
  • D - Deep (checks dependencies as well)
  • N - Newuse (re-emerges packages, if their useflags have changed)
  • v - verbose (makes emerge more verbose)
If you add 'u' to the list, emerge will also update installed packages.
__________________
Desktop: Asus P5B Deluxe, Core2Duo E8500, 2GB Corsair 800MHz CL4, Gigabyte GTX460 1024MB
HTPC: Asus P5B-E, Core2Duo 6300, 1GB Corsair 533MHz, Asus 9500GT w/ 512MB DDR3
Server: Gigabyte D510UD, Atom D510, 2GB Corsair 800MHz, Hauppauge NOVA-T500 dual DVB-T tuner, 4x 2TB Samsung F3EG (RAID5)
Laptop: Asus U6V, Core2Duo P8400, 3GB DDR2, 9300M GS
OS on all: Gentoo Linux

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
cthulhu is offline   Reply With Quote

Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:25 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.