| View previous topic :: View next topic |
| Author |
Message |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 3:40 am Post subject: Problems Installing Closed Nvidia Drivers |
|
|
I hope this is the right location for this question, if not move it.
I just got a new graphics card, and was hoping to be able to install it with the closed nvidia drivers, because I want to play games with it! I followed the steps on this page (http://www.gentoo.org/doc/en/nvidia-guide.xml). I reconfigured my kernel with the necessary options, changed VIDEO_CARDS="nvidia" in my /etc/make.conf, and then did "emerge --update --deep --newuse world", but I'm having two issues. One my console (before startx) does not fix the resolution like it did before I installed the new driver, two I cannot startx. It complains that there are no drivers available. I tried adding the nvidia module to /etc/conf.d/modules, but could not figure out how. I also tried changing /etc/X11/xorg.conf, but it does not exist. Any help is appreciated. |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Sat Mar 31, 2012 3:59 am Post subject: |
|
|
on the console resolution, that would have been a function of KMS within whichever other driver you were using
to get that with the binary nvidia driver, youll want to set up something like uvesafb and add a 'vga' statement to your grub.conf
as far as the binary nvidia driver
-do a quick emerge -pv nvidia-drivers to make sure it's indeed installed
-have a gander at your Xorg log; if in doubt, throw it (/var/log/Xorg.0.log) on pastebin and share the link
-post up your lspci -k output so we can see if something else might be conflicting _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 4:39 am Post subject: |
|
|
| cach0rr0 wrote: |
on the console resolution, that would have been a function of KMS within whichever other driver you were using
to get that with the binary nvidia driver, youll want to set up something like uvesafb and add a 'vga' statement to your grub.conf
|
Okay, I have "Userspace VESA VGA graphics support" compiled into my kernel as a module and in my menu.lst have "video=uvesafb:mtrr:3,ywrap,1024x786-32@85" Doesn't seem to do anything.
| cach0rr0 wrote: |
as far as the binary nvidia driver
-do a quick emerge -pv nvidia-drivers to make sure it's indeed installed
-have a gander at your Xorg log; if in doubt, throw it (/var/log/Xorg.0.log) on pastebin and share the link
-post up your lspci -k output so we can see if something else might be conflicting |
Well, I had actually anticipated that this problem would not be solved for a long time, but I actually just got X to start. I did this by copying an xorg.conf into /etc/X11/xorg.conf and commenting out "dri". Couldn't figure out how to get an xorg.conf but some kind fellow helped me on irc.
Few questions though: X complains that: | Quote: |
[ 711.806] (**) NVIDIA(0): Enabling 2D acceleration
[ 711.806] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 711.806] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 711.806] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 711.806] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 711.806] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
|
Although glxgears is working, and giving me a pretty high framerate (~600fps).
Screen flashes off after starting X, then starts then goes off and then finally stays on. That all happens in a few seconds, dunno if that's normal, did not happen with my onboard card before this.
lspci -k | grep nvidia reveals:
| Quote: |
Kernel driver in use: nvidia
Kernel modules: nvidia
|
I guess everything is working, but not sure. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Sat Mar 31, 2012 4:42 am Post subject: |
|
|
hcaulfield57,
Use nvidia-xconfig to setup the xorg.conf file. I use vga=794 on the kernel grub line.
Another package that might be useful to you is media-video/nvidia-settings - which is a gui app.
Check | Code: | root@gentoo-ws490 init.d # eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11 |
You want to have it set to nvidia.
There's no need to add nvidia to /etc/conf.d/modules.
Good luck  |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 4:52 am Post subject: |
|
|
| Thanks for the response BillWho. I changed opengl to nvidia, it was set on X11 before. Would you suggest I use nvidia-xconfig? I also have nvidia-settings installed, but have yet to really look at it. "vga=794" does not work for me, in fact it doesn't want to boot with that option. |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Sat Mar 31, 2012 5:20 am Post subject: |
|
|
i was told a while back nvidia-xconfig generates an extraordinary amount of cruft
id be surprised, however, if it didnt generate a usable xorg.conf (though an xorg.conf shouldnt be required nowadays)
i wouldnt be surprised, if nvidia-xconfig is back to being useful again, though if it is the xorg.conf it generates should be tiny, and have only entries relevant to the nvidia driver, not things like e.g. input _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Sat Mar 31, 2012 5:37 am Post subject: |
|
|
hcaulfield57,
| cach0rr0 wrote: | | hcaulfield57 wrote: | | Thanks for the response BillWho. I changed opengl to nvidia, it was set on X11 before. Would you suggest I use nvidia-xconfig? I also have nvidia-settings installed, but have yet to really look at it. "vga=794" does not work for me, in fact it doesn't want to boot with that option. |
for vga/uvesafb, youll want something like this:
http://dev.gentoo.org/~spock/projects/uvesafb/ |
I don't recall having to install anything extra to get a decent console display. I have an older card so maybe that's why?
| Code: | | 07:00.0 VGA compatible controller: NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI] (rev a2) |
This is my xorg.conf if it helps. As you can see it was created with nvidia-xconfig.
It's a dual monitor card, but I only have one connected and only one was connected when I generated the file.I didn't have to touch it.
I can't explain the vga setting, but it should be fine in X once you get an xorg.conf file setup.
One caveat is for each kernel update you'll have to recompile nvidia for it. I use a script that rebuilds the kernel, nvidia and vbox modules.
Good luck  |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 5:53 am Post subject: |
|
|
I'm trying the first option right now, I will see if it works.
| BillWho wrote: |
One caveat is for each kernel update you'll have to recompile nvidia for it. I use a script that rebuilds the kernel, nvidia and vbox modules.
Good luck  |
I noticed that, I will have to deal with that. But I probably won't upgrade my kernel for awhile.
EDIT: I can confirm that the first option did not work for me. No idea why I can't get that to look decent again. Doesn't really matter ultimately, but it's really ugly to look at, and I had it working before (with my onboard card). |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Sat Mar 31, 2012 6:11 am Post subject: |
|
|
| hcaulfield57 wrote: |
EDIT: I can confirm that the first option did not work for me. No idea why I can't get that to look decent again. Doesn't really matter ultimately, but it's really ugly to look at, and I had it working before (with my onboard card). |
the onboard card was likely using KMS
which requires no separate fb driver in the kernel, and no special entries in grub.conf
nouveau also does KMS
but it lacks the spiffy 3D accel you're going to want for gaming (I don't game, so I don't know what the impact is)
My suggestion - get plain old nvidia working with X first. Once you have that, then you can get a bit fancier and see about making bootup look less ugly.
Note that if you go the route of using nouveau for kms, unloading it, and loading nvidia, if you switch to a vt with CTRL+ALT+F1(2|3|4|etc) the vt will be ugly
If you go the route of using something like uvesafb or vesafb (the only two worth considering, FYI), with nvidia binary only, it wont be as "pretty" as nouveau KMS, and you wont have the speedy/pretty vty switching, but itll be more suitable resolution on bootup at least. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 6:40 am Post subject: |
|
|
| cach0rr0 wrote: |
If you go the route of using something like uvesafb or vesafb (the only two worth considering, FYI), with nvidia binary only, it wont be as "pretty" as nouveau KMS, and you wont have the speedy/pretty vty switching, but itll be more suitable resolution on bootup at least.
|
Okay thank you for the help. I'm going to work on either uvesa or vesa. My priority for this computer is games (and learning about UNIX), so I would like to keep using the nvidia drivers, which seem to be working for now. I don't use any of the other ttys, so that doesn't really matter. And I rarely don't "startx" after login unless there is some type of problem. |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sat Mar 31, 2012 9:07 pm Post subject: |
|
|
| Managed to get vesa installed, doesn't look great, but resolution is much better now. On a side note I am experiencing some sort of screen tearing with mplayer, dunno why its happening. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Sun Apr 01, 2012 12:49 am Post subject: |
|
|
hcaulfield57,
You might want to check your use flag settings for ffmpeg and mplayer.
vdpau : Enables VDPAU decoders (requires nVidia video cards and binary nvidia-drivers to offload CPU processing to video card)
vaapi : Enables VAAPI (Video Acceleration API) for hardware decoding
opengl : Adds support for OpenGL (3D graphics)
and others that might improve the quality.
Also, if you use smplayer, check the options/preferences/video tab selections .
Good luck  |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Sun Apr 01, 2012 10:37 pm Post subject: |
|
|
BillWho:
I've tried what you said about mplayer, doesn't seem to help. Also tried installing a native Linux game, it runs (looks great too), but I'm still experiencing minor screen tears. They're not as bad as some that I've seen, but considering I paid I would like to have good performance.
EDIT: I strongly suspect that xcompmgr might be the culprit behind the screen tearing. It seems to basically go away without it running. Although I'm not positive. That will be a shame, I really enjoy my transparent terminals. Also curious if the fact that I am using a small 19inch tv as my monitor would change anything. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Apr 02, 2012 4:46 am Post subject: |
|
|
hcaulfield57,
Glad to hear you at least got it working. As far as the tearing is concerned, a couple of things can impact performance, composting being one of them.
Processor speed and the gpu speed are also factors along with the resolution of the video. I don't know the model card you purchased or if it's a high-end gaming card or not.
I noticed your glxgears framerate. I'm not at the computer with the nvidia card at the moment, but I'll check it tomorrow and let you know what it is.
As far as my system goes it's lightweight, no composting, LXDE desktop and openbox windows manager. I'll throw a couple of system specs in along with the framerate for comparison.
Enjoy  |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Mon Apr 02, 2012 5:05 am Post subject: |
|
|
My system is very lightweight, and I should have way more than enough CPU, RAM, GPU. It's definitely not the hardware, not top of the line but more than enough for what I'm doing at the moment. I feel that disabling xcompmgr did produce a noticeable improvement, which is a shame, like I said I enjoyed my transparent terminals, perhaps I should try fake transparency and see how that looks, although I've never liked fake transparency.
Have you heard of using a TV creating less than optimal viewing situation? Perhaps updating to the current nvidia drivers would help? The ones included by Gentoo are not the newest, although still pretty new. I should be able to see what other games look like at some point, but for now, I just used some of the native Linux games that I have on hand right now.
Thanks for the help too, I appreciate it. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Apr 02, 2012 3:28 pm Post subject: |
|
|
hcaulfield57,
Just to clarify, I don't do any composting with this computer either - so much for spell checks and not paying attention
Here's the info on the system with the nvidia graphics:
| Code: | glxgears info:
46097 frames in 5.0 seconds = 9219.313 FPS
45399 frames in 5.0 seconds = 9079.800 FPS
45482 frames in 5.0 seconds = 9096.206 FPS
45373 frames in 5.0 seconds = 9074.592 FPS
45473 frames in 5.0 seconds = 9094.557 FPS
45403 frames in 5.0 seconds = 9080.473 FPS
45454 frames in 5.0 seconds = 9090.722 FPS
45365 frames in 5.0 seconds = 9072.881 FPS
45495 frames in 5.0 seconds = 9098.929 FPS
45370 frames in 5.0 seconds = 9073.852 FPS
45272 frames in 5.0 seconds = 9054.320 FPS
Other info:
SUDO USER: bill
/etc/gentoo-release contents: Gentoo Base System release 2.1
Architecture: x86_64
Memory 8179160
Boot directory contents:
lrwxrwxrwx 1 root root 40 Mar 21 11:54 System.map -> System.map-genkernel-x86_64-3.3.0-gentoo
-rw-r--r-- 1 root root 2.4M Mar 21 11:54 System.map-genkernel-x86_64-3.3.0-gentoo
lrwxrwxrwx 1 root root 39 Mar 21 11:55 initramfs -> initramfs-genkernel-x86_64-3.3.0-gentoo
-rw-r--r-- 1 root root 1.1M Mar 21 11:55 initramfs-genkernel-x86_64-3.3.0-gentoo
lrwxrwxrwx 1 root root 36 Mar 21 11:54 kernel -> kernel-genkernel-x86_64-3.3.0-gentoo
-rw-r--r-- 1 root root 4.0M Mar 21 11:54 kernel-genkernel-x86_64-3.3.0-gentoo
Boot command line: BOOT_IMAGE=/kernel real_root=/dev/sda13 rootfstype=ext3 ro vga=794
CPU(s): 4 On-line CPU(s) list: 0-3 NUMA node0 CPU(s): 0-3
CPU MHz: 2000.000 CPU might be governed by cpufrequtils
CPU 0 2000000 kHz ( 66 %) - 3000000 kHz (100 %) - ondemand
CPU 1 2000000 kHz ( 66 %) - 3000000 kHz (100 %) - ondemand
CPU 2 2000000 kHz ( 66 %) - 3000000 kHz (100 %) - ondemand
CPU 3 2000000 kHz ( 66 %) - 3000000 kHz (100 %) - ondemand
eselect kernel set to: [1] linux-3.3.0-gentoo *
eselect opengl set to: [1] nvidia *
Last sync: Sun, 01 Apr 2012 23:45:01 +0000
PCI registered graphics: 07:00.0 VGA compatible controller: NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI] (rev a2)
direct rendering: Yes
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 3450/4000 SDI/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 295.20
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
OpenGL extensions:
|
Hope this helps  |
|
| Back to top |
|
 |
claudecat n00b


Joined: 26 Mar 2012 Posts: 12 Location: Md, Usa
|
Posted: Tue Apr 03, 2012 5:05 am Post subject: |
|
|
FWIW, I generally don't have to mess with uvesafb when using the proprietary nvidia driver - just appending vga=795 to my kernel line in grub gives me a decent looking console. In fact, kms gives me almost unreadably small text. You could try using vga=ask to see what setting works best for your monitor/tv, or vga=788 (1024x786 iirc) is a good safe choice. Just a guess, but I would imagine that using a tv as a monitor may be contributing to your issues here... All that being said, I find using the nouveau driver works great with gentoo - it's a new enough version not to crash regularly like older ones did (on other distros at least - it's never crashed in gentoo), and provides the snappy desktop effects in KDE that all the kids are raving about. I'm not a gamer though (aside from kbreakout ), so this probably means little to you... _________________ Don't crush that dwarf, hand me the pliers... |
|
| Back to top |
|
 |
hcaulfield57 Tux's lil' helper

Joined: 13 Mar 2012 Posts: 140
|
Posted: Tue Apr 03, 2012 10:25 pm Post subject: |
|
|
| claudecat wrote: |
Just a guess, but I would imagine that using a tv as a monitor may be contributing to your issues here...
|
Thanks for the response. Yea, that's the only thing I can think of that would be creating a problem. Unless the driver isn't configured properly, which I do believe it is, I'm not sure what else. Maybe I can find someone who has a monitor I could hook up and take a look. Yea nouveau probably is not going to work for me, seeing as though I would like to do some gaming.
| BillWho wrote: |
Here's the info on the system with the nvidia graphics:
|
Thanks for the reply. Our specs are pretty similar, which makes me wonder if as I said above if the television is what is creating problems. Its a shame about the compositing, maybe I will have to work on making my .Xresources look better to compensate for the loss of xcompmgr. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|