Nvidia driver with GTX 10X0

Nvidia driver with GTX 10X0

Postby domisse » Sep 8th, '16, 21:42

Latest nvidia driver is 352.79 with Mageia5. But the latest nvidia graphic card GTX 10X0 require nvidia > 360.
So how to install the latest nvidia driver with Mageia5 ?
Mageia6 will be shipped with 367 which is a good news :)
I've tried NVIDIA-Linux-x86_64-367.44.run from the nvidia webiste but it failed to install.

Do I need to use another graphic card or is there a way to use 367 with mageia5 ?
Thanks!
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36

Re: Nvidia driver with GTX 10X0

Postby doktor5000 » Sep 9th, '16, 03:25

You can download the driver directly from nvidia and install that in runlevel 3, should work as with all other distros.

Or you could try using this script from one of our developers to build Mageia rpm packages from current versions of the nvidia drivers.
Check http://onse.fi/nvidia-mgabuild/

There are a few threads about this here, see
viewtopic.php?f=8&t=8898
viewtopic.php?f=8&t=8469

You could also take one of the src.rpms from mga6 and rebuild them on your box for mga5, which should also work.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia driver with GTX 10X0

Postby domisse » Sep 9th, '16, 12:22

Thanks...I've tried from the nvidia website but it failed on dkms. Computer was not able to boot on Mageia anymore so I
have uninstall the nvidia driver.

Output from the nvidia-mgabuild :

Building a package of NVIDIA driver 367.44 for x86_64, this will take a few minutes...

Code: Select all
Warning: file dkms.conf of unknown type DKMS_CONF will be skipped.
Warning: file nvidia_icd.json of unknown type VULKAN_ICD_JSON will be skipped.
Warning: file libGL.so.367.44 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGL.so.1 of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libOpenGL.so.0 of unknown type GLVND_LIB will be skipped.
Warning: file libOpenGL.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGLESv1_CM.so.1 of unknown type GLVND_LIB will be skipped.
Warning: file libGLESv1_CM.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGLESv2.so.2 of unknown type GLVND_LIB will be skipped.
Warning: file libGLESv2.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGLdispatch.so.0 of unknown type GLVND_LIB will be skipped.
Warning: file libGLX.so.0 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGLX.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so.1.0.0 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGL.so.1 of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libOpenGL.so.0 of unknown type GLVND_LIB will be skipped.
Warning: file libOpenGL.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGLdispatch.so.0 of unknown type GLVND_LIB will be skipped.
Warning: file libGLESv2.so.2 of unknown type GLVND_LIB will be skipped.
Warning: file libGLESv2.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGLESv1_CM.so.1 of unknown type GLVND_LIB will be skipped.
Warning: file libGLESv1_CM.so of unknown type GLVND_SYMLINK will be skipped.
Warning: file libGL.so.1.0.0 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGL.so.1 of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so.367.44 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGL.so.1 of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGL.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Warning: file libGLX.so.0 of unknown type GLX_CLIENT_LIB will be skipped.
Warning: file libGLX.so of unknown type GLX_CLIENT_SYMLINK will be skipped.
Please inform Anssi Hannula <anssi@mageia.org> or http://bugs.mageia.org/ of the above warnings.

Created package: dkms-nvidia-current-367.44-1custom.nvidia.mga5.x86_64.rpm
Created package: nvidia-current-cuda-opencl-367.44-1custom.nvidia.mga5.x86_64.rpm
Created package: nvidia-current-devel-367.44-1custom.nvidia.mga5.x86_64.rpm
Created package: nvidia-current-doc-html-367.44-1custom.nvidia.mga5.x86_64.rpm
Created package: x11-driver-video-nvidia-current-367.44-1custom.nvidia.mga5.x86_64.rpm

Cleaning temporary files... done

What you have to do now:
 - Install the above driver packages using rpmdrake or urpmi.
   (if you are downgrading, you can use command "rpm -Uvh --oldpackage files.rpm".
After that you have to reboot and the new driver will be in use.



I don't know if the warnings can be discard or not. Let me know.
Last edited by doktor5000 on Sep 9th, '16, 12:27, edited 1 time in total.
Reason: added code tags
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36

Re: Nvidia driver with GTX 10X0

Postby doktor5000 » Sep 9th, '16, 12:28

domisse wrote:I don't know if the warnings can be discard or not. Let me know.

For simply using the driver, yes it should not be an issue if you try the packages.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia driver with GTX 10X0

Postby domisse » Sep 9th, '16, 14:04

Thanks.

I need a graphic driver build with CUDA 8.0 support in order to run the latest seti@home binaries.
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36

Re: Nvidia driver with GTX 10X0

Postby doktor5000 » Sep 9th, '16, 23:15

Well, did you install the newer drivers, and what was the result?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia driver with GTX 10X0

Postby jiml8 » Sep 10th, '16, 02:35

There are several optional kernel packages that have to be installed to get DKMS working. I can't tell you offhand what they are, but at an earlier point in time I had to install them when DKMS did not work for me. Doktor probably knows.

The 367 driver works fine with M5; I am running it here. I upgraded the driver the last time I upgraded the kernel. It is compiled for DKMS, and that seems to have worked OK though of course I won't really know until the next time I upgrade the kernel.

I would suggest you try uninstalling the M5 Nvidia driver before installing the driver from the Nvidia website. The M5 driver package installs some libraries in a fashion different than how the driver from Nvidia does, and this could be leaving you with conflicts after the installation, which would be the reason you cannot boot.

Actually, when you do this, you will find that a number of packages that Mageia installs will require you to reinstall the Nvidia driver after an update. Any package that is associated with graphics is likely to cause this issue. Xorg certainly does, as does Mesa. I believe kdebase also does, and there are others. Basically, if you do updates and have problems with your desktop, the first thing you should do is reinstall the nvidia driver.

I have gotten used to it. I first started directly installing nvidia drivers nearly 15 years ago with an early version of Mandrake. I don't really recall why I did that, but I have continued that way clear to the present time.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: Nvidia driver with GTX 10X0

Postby doktor5000 » Sep 10th, '16, 10:55

jiml8 wrote:There are several optional kernel packages that have to be installed to get DKMS working. I can't tell you offhand what they are, but at an earlier point in time I had to install them when DKMS did not work for me. Doktor probably knows.

Well, dkms is not really required, although one should have the following packages installed to get the kernel module to compile:
Code: Select all
task-c++-devel kernel-desktop-devel-latest

(if you run a different kernel then kernel-desktop then adapt that to kernel-xxxxx-devel-latest)
Also, if you want to use dkms to build the kernel modules for you, you need to ensure that dkms is installed and that the nvidia installer is called with the option --dkms (IIRC) to enable this.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia driver with GTX 10X0

Postby domisse » Sep 10th, '16, 16:46

First try backporting nvidia-current-367.35-2.mga6.nonfree.src.rpm to mga5 :

Code: Select all
cd rpmbuild/RPMS/x86_64
[root@localhost x86_64]# ll
total 74280
-rw-r--r-- 1 domisse domisse  6028816 Sep  9 16:44 dkms-nvidia-current-367.35-2.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse 30465840 Sep  9 16:44 nvidia-current-cuda-opencl-367.35-2.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse    78856 Sep  9 16:44 nvidia-current-devel-367.35-2.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse   157756 Sep  9 16:44 nvidia-current-doc-html-367.35-2.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse 39323756 Sep  9 16:44 x11-driver-video-nvidia-current-367.35-2.mga5.x86_64.rpm


Code: Select all
[root@localhost x86_64]# rpm -Uvh nvidia-current-devel-367.35-2.mga5.x86_64.rpm
error: Failed dependencies:
        nvidia-current-cuda-opencl = 367.35-2.mga5 is needed by nvidia-current-devel-367.35-2.mga5.x86_64
        x11-driver-video-nvidia-current = 367.35-2.mga5 is needed by nvidia-current-devel-367.35-2.mga5.x86_64


Code: Select all
[root@localhost x86_64]# rpm -Uvh nvidia-current-cuda-opencl-367.35-2.mga5.x86_64.rpm
error: Failed dependencies:
        kmod(nvidia-current.ko) = 367.35 is needed by nvidia-current-cuda-opencl-367.35-2.mga5.x86_64
        nvidia-current-cuda-opencl = 352.79-3.mga5.nonfree is needed by (installed) nvidia-current-devel-352.79-3.mga5.nonfree.x86_64


Code: Select all
[root@localhost x86_64]# rpm -Uvh dkms-nvidia-current-367.35-2.mga5.x86_64.rpm
error: Failed dependencies:
        dkms >= 2.0.19-37 is needed by dkms-nvidia-current-367.35-2.mga5.x86_64



Code: Select all
[root@localhost x86_64]# rpm -qa | grep dkms
dkms-2.0.19-34.1.mga5
dkms-minimal-2.0.19-34.1.mga5
dkms-nvidia-current-352.79-3.mga5.nonfree



so the problem seems to be related to dkms. How to upgrade it to 2.0.19-37 ?
Last edited by doktor5000 on Sep 10th, '16, 23:32, edited 2 times in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;) doktor5000: fixed code tags
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36

Re: Nvidia driver with GTX 10X0

Postby domisse » Sep 10th, '16, 17:58

Second try using nvidia-mgabuild.sh

files generated :
Code: Select all
-rw-r--r-- 1 domisse domisse  6081304 Sep  9 10:58 dkms-nvidia-current-367.44-1custom.nvidia.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse 37546456 Sep  9 10:58 nvidia-current-cuda-opencl-367.44-1custom.nvidia.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse    70616 Sep  9 10:58 nvidia-current-devel-367.44-1custom.nvidia.mga5.x86_64.rpm
-rw-r--r-- 1 domisse domisse   150432 Sep  9 10:58 nvidia-current-doc-html-367.44-1custom.nvidia.mga5.x86_64.rpm
-rwxrwxr-x 1 domisse domisse 75032664 Sep  8 18:38 NVIDIA-Linux-x86_64-367.44.run*
-rwxrwxr-x 1 domisse domisse    46146 Jun 12 20:48 nvidia-mgabuild.sh*
-rw-r--r-- 1 domisse domisse 32460684 Sep  9 10:58 x11-driver-video-nvidia-current-367.44-1custom.nvidia.mga5.x86_64.rpm



Code: Select all
[root@localhost nvidia]# rpm -Uvh nvidia-current-devel-367.44-1custom.nvidia.mga5.x86_64.rpm
error: Failed dependencies:
        nvidia-current-cuda-opencl = 367.44-1custom.nvidia.mga5 is needed by nvidia-current-devel-367.44-1custom.nvidia.mga5.x86_64
        x11-driver-video-nvidia-current = 367.44-1custom.nvidia.mga5 is needed by nvidia-current-devel-367.44-1custom.nvidia.mga5.x86_64


Code: Select all
[root@localhost nvidia]# rpm -Uvh nvidia-current-cuda-opencl-367.44-1custom.nvidia.mga5.x86_64.rpm
error: Failed dependencies:
        nvidia-current-cuda-opencl = 352.79-3.mga5.nonfree is needed by (installed) nvidia-current-devel-352.79-3.mga5.nonfree.x86_64


but afaik, nvidia-current-cuda-opencl-352.79-3.mga5.nonfree is installed !

Code: Select all
[root@localhost nvidia]# rpm -qa | grep nvidia-current-cuda-opencl
nvidia-current-cuda-opencl-352.79-3.mga5.nonfree


So what's wrong ???
Last edited by doktor5000 on Sep 10th, '16, 23:33, edited 1 time in total.
Reason: added code tags
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36

Re: Nvidia driver with GTX 10X0

Postby isadora » Sep 10th, '16, 19:21

Please domisse, place command-output between [CODE]-tags, to improve readability, thanks ahead!!! ;)
Demo: ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Nvidia driver with GTX 10X0

Postby domisse » Sep 10th, '16, 19:40

sorry about that ! :(

Third try is the good one

- systemctl set-default multi-user.target
- reboot
- uninstalling urpme x11-driver-video-nvidia-current-352.79-3.mga5.nonfree.x86_64
- running NVIDIA-Linux-x86_64-367.44.run
- systemctl set-default graphical.target

from nvidia-smi :
NVIDIA-SMI 367.44

It was a bit painful...hope to see 367 nvidia driver in the forthcoming mga6 !
domisse
 
Posts: 6
Joined: Sep 8th, '16, 21:36


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest