View Full Version : how to enable the nvidia driver in f14?
geolab
20th October 2010, 07:12 AM
now that f14 kernel is stable, how to enable the nvidia driver? I tried the instruction guide in f13 but it doesn't work
leigh123linux
20th October 2010, 10:30 AM
yum install akmod-nvidia
reboot
geolab
20th October 2010, 12:24 PM
it's not needed to work on grub as in f13?
and by the way... I did as root a nvidia-xconfig and now it works even if it gives me a error during boot related to livnaconfigdisplay.
is it possible to disable livnaconfig during boot?
is it possible to have the fedora logo i see using nouveau during boot instead of the ugly running lines i get with nvidia driver?
AdamW
20th October 2010, 09:13 PM
add vga=788 or vga=791 as a boot parameter.
geolab
21st October 2010, 06:27 AM
thanks! it works!
Lebenskuenstler
24th October 2010, 01:05 AM
Hi,
driver does not load:
[root@hobbes ~]# /etc/init.d/nvidia start
Checking for module nvidia.ko: [ OK ]
Enabling the nvidia driver: Traceback (most recent call last):
File "/usr/sbin/nvidia-config-display", line 28, in <module>
import livnaConfigDisplay.ConfigDisplay
File "/usr/lib/python2.7/site-packages/livnaConfigDisplay/ConfigDisplay.py", line 29, in <module>
import xf86config
File "/usr/lib64/python2.7/site-packages/xf86config.py", line 1, in <module>
import ixf86config
ImportError: /usr/lib64/python2.7/site-packages/ixf86configmodule.so: undefined symbol: xstrtokenize
[FEHLGESCHLAGEN]
[root@hobbes ~]# uname -r
2.6.35.6-45.fc14.x86_64
---------- Post added 2010-10-24 at 02:05 AM GMT ---------- Previous post was 2010-10-23 at 11:14 PM GMT ----------
Running as root nvidia-xconfig did help, although after 2nd try. Do not know, why first one failed.
hellork
25th October 2010, 07:01 AM
It's a bug
https://bugzilla.redhat.com/show_bug.cgi?id=623742
NickLee
25th October 2010, 12:38 PM
F14-64bit GeForce 310M
For me not work. I get:
[ 111.489] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 111.490] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 111.490] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 111.490] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 111.490] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
But with NVIDIA-Linux-x86_64-260.19.12.run works fine.
geolab
25th October 2010, 03:16 PM
I disabled the nvidia service to get rid of the error during boot time. in any case (enabled or not) the nvidia driver seems to be very heavy tothe system: gnome shell and all the programs are very slow on startup and very slow in responding...
Dangermouse
25th October 2010, 03:37 PM
I installed the one straight from nvidia works fine the rpmfusion one was useless, theres a guide in here somewhere on how to install it.
AdamW
25th October 2010, 10:22 PM
the problem is that nvidia-config-display actually does useful stuff (it's not just there for fun), so since it fails to run, the configuration steps it should perform don't happen, and you wind up with a misconfigured driver. If you manually do the stuff nvidia-config-display is supposed to do, it ought to work; I haven't checked exactly what that is, though (part of it will be to write a /etc/X11/xorg.conf that specifies the nvidia driver).
NickLee
26th October 2010, 10:53 AM
I disabled the nvidia service to get rid of the error during boot time. in any case (enabled or not) the nvidia driver seems to be very heavy tothe system: gnome shell and all the programs are very slow on startup and very slow in responding...
You realy have 3D?
I have works very slow 2D, works VDPAU, but 3D not work.
glxinfo?
ah7013
26th October 2010, 12:10 PM
I have nvidia driver working in F14 RC1 by adding the RPMFusion repo and installing akmod-nvidia then run nvidia-xconfig. Graphics card is Nvidia GTX 260. 2D is soooo sloowwww so reverting back to nouveau
NickLee
26th October 2010, 01:35 PM
I have nvidia driver working in F14 RC1 by adding the RPMFusion repo and installing akmod-nvidia then run nvidia-xconfig. Graphics card is Nvidia GTX 260. 2D is soooo sloowwww so reverting back to nouveau
I mean nvidia driver from rpmfusion works not properly. Try nvidia driver from nvidia site. Works fine for me.
geolab
26th October 2010, 05:39 PM
but in case, how to disable the driver from nvidia site once the rpmfusion is working right?
NickLee
26th October 2010, 06:43 PM
Sorry I don't understand your question..
Did you mean
sh NVIDIA-Linux-x86_64-260.19.12.run --uninstall
yum install akmod-nvidia
geolab
26th October 2010, 08:23 PM
exactly! i would like to have the akmod instead of the original driver, but akmod-nvidia is too slow and hangs my system...
AdamW
27th October 2010, 12:06 AM
it's exactly the same code. If it's 'slow', it's misconfigured somehow; probably nvidia-xconfig didn't configure everything that needs to be configured for the driver to work as packaged in fusion.
NickLee
27th October 2010, 05:55 AM
it's exactly the same code...
nvidia-xconfig configures xorg.conf once. And this same code works differently from one xorg.conf.
geolab
27th October 2010, 08:50 AM
so what should we write on xorg to make it work correctly? because the file in nvidia-xconfig is so simple that seems unusefull
oOarthurOo
27th October 2010, 11:04 PM
I too would like to know the answer to this question. akmod method fails at present, results in same driver not found error. Indeed, locate nvidia.ko returns nothing. Nouveau works fine in the meanwhile, but it seems a waste to have spent a little more for the nvidia 140m card if can't be used. :)
My guess is that I just must wait a bit until the fusion repo rebuilds nvidia against latest kernel. Sound like an ok plan? I don't want to do things outside of yum, like build own from nvidia.
Cheers, and I follow this thread with interest,
Oh and the bug report too, thanks for link. Looks like it is being worked on now, but could be a while before fixed. And maybe not as simple as building new from nvidia itself. If I am reading bug correctly.
AM
AdamW
27th October 2010, 11:48 PM
I mean the code of the driver itself is the same. nvidia-xconfig should write a correct xorg.conf AFAIK.
dookie07
28th October 2010, 10:53 AM
me too:
[root@localhost dook]# nvidia-config-display
Traceback (most recent call last):
File "/usr/sbin/nvidia-config-display", line 28, in <module>
import livnaConfigDisplay.ConfigDisplay
File "/usr/lib/python2.7/site-packages/livnaConfigDisplay/ConfigDisplay.py", line 29, in <module>
import xf86config
File "/usr/lib64/python2.7/site-packages/xf86config.py", line 1, in <module>
import ixf86config
ImportError: /usr/lib64/python2.7/site-packages/ixf86configmodule.so: undefined symbol: xstrtokenize
for install the nvidia driver I use this guide: http://www.fedoraonline.it/modules/smartsection/item.php?page=3&itemid=332
I'm using F14
NickLee
28th October 2010, 12:26 PM
I mean the code of the driver itself is the same. nvidia-xconfig should write a correct xorg.conf AFAIK.
If I run in 3th runlevel
# sh NVIDIA-Linux-x86_64-260.19.12.run
# nvidia-xconfig
# init 5
$ glxgears
16892 frames in 5.0 seconds = 3378.328 FPS
All works fine. This means the xorg.conf is correct.
If I install nvidia driver from RPMFusion
yum install akmod-nvidia
Exactly the same correct xorg.conf from the first example. I get very slow 2d and
$ glxinfo
name of display: :0.0
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 138 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x3000003
Serial number of failed request: 30
Current serial number in output stream: 30
in /var/log/Xorg.0.log I see
[ 111.489] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 111.490] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 111.490] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 111.490] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 111.490] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
The problem isn't in the correct xorg.conf IMHO.
PS
Anyone tried nvidia-graphics (http://packages.atrpms.net/dist/f14/nvidia-graphics/) from Atrpms (http://packages.atrpms.net/dist/f14/) repo?
AdamW
29th October 2010, 11:19 PM
nicklee: I agree - as I keep saying, the problem is that the packaged driver expects various bits of post-install configuration to be done by nvidia-config-display and the 'nvidia' service, which currently doesn't happen because of the breaking in pyxf86config. If you can reconstruct all the configuration work that nvidia-config-display is supposed to do, theoretically you should wind up with a working driver, but I don't think anyone's bothered to walk through that step-by-step yet.
wangmaster
30th October 2010, 04:08 PM
AdamW: you mean something like this?
Section "Files"
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerFlags"
Option "AIGLX" "on"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "AddARGBGLXVisuals" "True"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
I believe this is the absolute bare minimum on 64-bit fedora for enabling the nvidia driver and 3D features.
Replace /usr/lib64 in the ModulePath lines if you're using 32-bit
AdamW
1st November 2010, 07:19 PM
I didn't mean just xorg.conf, no. I think it does other stuff too, like moving libraries around. I forget the details.
wangmaster
1st November 2010, 08:46 PM
I don't think it does. all I did was install akmod-nvidia and it pulled in the nvidia drivers, crafted my xorg.conf (I cheated actually, and copied it from my archives) and bingo, it worked.
oOarthurOo
2nd November 2010, 06:53 PM
I gave up on trying to make the fusion one work. The bug noted above was the culprit I suspect. Purging all nvidia and livna stuff installed from fusion, downloading the binary from nvidia works just fine.
Once downloaded, I rebooted into single user mode, telinit into 3, run the installer, reboot, and Bob's my uncle.
Edgpaez
2nd November 2010, 10:59 PM
I have a little problem.....
I upgraded yesterday from F12 to F14 , now I have a new kernel and an old one, with the old one I could boot with akmod-nvidia and nvidia's binaries, the problem is I can't boot with the new kernel, to install nvidia's binaries, because it freezes on some nvidia driver thing....
I added vga=791 to the boot parameters but it didn't work....
and I can't run yum update because it needs the new kernel, the one I can't boot from....
Thanks for helping :)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.