LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-28-2020, 04:40 AM   #1
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Rep: Reputation: 25
NVidia driver doesn't work on new openSuse Leap


# /sbin/lspci -nnk | grep -EiA3 'vga|display|3d'
10:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117 [GeForce GTX 1650] [10de:1f82] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:8d92]
Kernel modules: nouveau
10:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)
--
Subsystem: ASRock Incorporation Device [1849:43d0]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
15:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b8] (rev 02)
# cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jul 28 04:19:17 2020
installer version: 450.57

PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> Installing NVIDIA driver version 450.57.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
grep: /etc/sysconfig/kernel: No such file or directory
-> done.
-> The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but a reboot may be required first. Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Performing CC check.
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

I do not understand :"ERROR: Unable to find the kernel source tree for the currently running kernel."
 
Old 07-28-2020, 08:02 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Guessing you downloaded the Nvidia installer instead of using Suse's guide. You don't say and that massive wall of text is hard to read. Please use code tags next time.

My advice is to use the OpenSuse guide to Installing NVIDIA drivers and forget the one from Nvidia. With the one form Nvidia, you are going to have install the kernel headers, source and some dev tools because it needs to build. a module for your kernel. Far easier to use the driver Suse provides:

https://en.opensuse.org/SDB:NVIDIA_drivers
 
Old 07-28-2020, 01:36 PM   #3
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by sevendogsbsd View Post
Guessing you downloaded the Nvidia installer instead of using Suse's guide. You don't say and that massive wall of text is hard to read. Please use code tags next time.

My advice is to use the OpenSuse guide to Installing NVIDIA drivers and forget the one from Nvidia. With the one form Nvidia, you are going to have install the kernel headers, source and some dev tools because it needs to build. a module for your kernel. Far easier to use the driver Suse provides:

https://en.opensuse.org/SDB:NVIDIA_drivers
The "massive wall" was the output of two commands: lspci and the nvidia loader. Sorry if you got info overload, lol. I went to the URL you mentioned, found nothing immediately useful. I was trying to do it the way it's has been used on Slackware, I was under the impression that Suse was a Slackware derivative, my mistake. But I'm suspicious of the nouveau driver, it doesn't recognize my graphics card.
 
Old 07-28-2020, 01:42 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Suse is in no way Slackware other than being called "Linux". May have been 20 years ago, but not now.

I wasn't overwhelmed by info, it's common courtesy to use code tags so the code itself is inside a scrollable box; makes the post easier to read.

I would follow the advice in Suse's wiki - I have used it many times when I had OpenSuse Leap and an Nvidia card and it always worked for me.I had a GTX 1050Ti and it worked fine.
 
1 members found this post helpful.
Old 07-29-2020, 05:44 AM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by rdx View Post
I do not understand :"ERROR: Unable to find the kernel source tree for the currently running kernel."
If you're going to use the driver obtained from nVidia, be aware that the nVidia installer compiles the nvidia module against the kernel header files. If you haven't installed those yet, you'll see the error message you showed above.

If you're like me and have what nVidia considers a "legacy" card, I think you need to follow this process:
  • Go into YaST and into the "Software->Software Management" dialog.
  • Tab over to the "Search Phrase" field and enter "kernel".
  • Press Enter.
  • Then tab over to the package listing (upper right pane) and scroll down until you see the package "kernel-source".
  • If it doesn't show an "i" (meaning "installed"), press the space bar until you see "+" (meaning "add").
  • Then press "tab" repeatedly until you get to the "Accept" option. Press "Enter" and wait until the kernel source installation finishes.
Once the kernel sources have been installed, exit YaST and retry the nvidia installer command you used.

Note: Occasionally, a kernel update will require that you re-run the nvidia installation process to recompile their driver against the new kernel. You won't have to re-install the kernel sources once you have them installed---the normal OpenSUSE update process will keep them in sync with any updated kernel.

HTH...
 
2 members found this post helpful.
Old 07-30-2020, 02:37 AM   #6
marius162
LQ Newbie
 
Registered: Apr 2015
Posts: 15

Rep: Reputation: Disabled
Similar problems here.

Just a small remark, assuming that "new openSuse Leap" translates to LEAP 15.2: currently I'm facing similar problems. I've had to freshly install it on one of my spare ssd since I couldn't upgrade LEAP 15.0 because of a load of unresolved dependencies (another story). But then, I couldn't add the 32-bit version of wine 5.0 (which I install from source) since it doesn't find the 32-bit opengl libraries, although I installed all the additional libraries through YaST (Mesa, libgl, libglu, etc). The only progress I have made so far is to figure out that the nvidia repository SuSE offers does not seem to have them. I have also fumbled the thing so far as to be able to call the nvidia installers, of which I have tried NVIDIA-Linux-x86-375.20.run which I had previously installed under 15.0 (did not work, don't recall what the problem was), NVIDIA-Linux-x86_64-440.64.run and NVIDIA-Linux-x86_64-450.57.run which finish without error when asked to install the 32 bit libraries. But still, wine 32 bit insists on not to finding opengl.

This whole process of ./configure and adding the missing components through YaST worked flawlessly under 15.0, but it doesn't seem to under 15.2. Out of clues now.

P.S. although I'm not sure if that is SuSE's fault, assuming that I'd consider switching to another distribution which still supports a 32 bit subsystem sufficently (and hopefully, continues to that in the future), which one would that be?

Last edited by marius162; 07-30-2020 at 02:51 AM.
 
Old 07-30-2020, 04:40 AM   #7
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
Thumbs up

Quote:
Originally Posted by sevendogsbsd View Post
Guessing you downloaded the Nvidia installer instead of using Suse's guide. You don't say and that massive wall of text is hard to read. Please use code tags next time.

My advice is to use the OpenSuse guide to Installing NVIDIA drivers and forget the one from Nvidia. With the one form Nvidia, you are going to have install the kernel headers, source and some dev tools because it needs to build. a module for your kernel. Far easier to use the driver Suse provides:

https://en.opensuse.org/SDB:NVIDIA_drivers
+1 for using the repository of nvidia drivers rather than download and install(.run method).

When I upgraded from 15.0 to 15.1, I kept the repository enabled and was able to do a dist upgrade seamlessly . (I dont recommend it, but I'll do it again while upgrading to 15.2. Full story on opensuse forum, if anyone cares)
 
1 members found this post helpful.
Old 01-12-2021, 09:08 AM   #8
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
^ Just came back to say that in my test, this works for 15.1 to 15.2 too. Again, ymmv.
 
Old 01-19-2021, 08:17 AM   #9
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Rep: Reputation: 21
As mentioned by others before, installing the kernel sources will do the trick. While you're at it, also install dkms. Then, when the NVidia installer asks if it should build dkms modules say yes. This way you won't have to reinstall the NVidia module with every kernel update.

Far as I'm concerned that works great. Last time I checked, the pre-built NVidia kernel module is rather old, so that's why I use the most recent version from NVidia.
 
Old 03-04-2021, 09:20 AM   #10
jbujons
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Hi,

I am facing a similar problem to that of previous posts. I am trying to update the OS of my workstation at work with the latest Leap 15.2. This machine is already working without problems on Leap 42.3, with cuda toolkit 8.0, and with Nvidia driver 418.74, both of which were installed by the command line method (cuda cannot be installed from repositories, afaik). Now, I have installed Leap 15.2 on a new disk, making sure that the kernel sources were also installed. However when I tried to install cuda_10.0 (or 10.1) I always get the "Installation failed" message and the reason seems to be that the installer cannot find the kernel source packages. I am sure that the kernel sources are installed so I tried a few different things like the nomodeset kernel parameter as start option, deinstalling the Nouveau drivers and even blacklisting them, and resinstalling the whole Leap 15.2 from scratch, but without any improvement.

I am thinking on trying the newest cuda version (11.2) to see if that makes a difference, but that is not a good option for me since I think it requires a very new version of the Nvidia driver and I would prefer not to use Nvidia drivers above 418.XX, since these are the latest versions that support Nvidia 3D vision. So I am a bit in a catched up situation in this sense.

Any suggestions would be appreciated.

Jordi
 
Old 03-04-2021, 01:30 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
seeing as you are SKIPPING installing
OpenSUSE 15.0
OpenSUSE 15.1

and going to
OpenSUSE 15.2

you are going to have problems , likely major problems

do a new clean install of OpenSUSE 15.2

as i recall there was a MAJOR system change in 15.0 over 42.3
and doing an inplace upgrade was not recommended
 
Old 03-05-2021, 03:16 AM   #12
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 193

Rep: Reputation: Disabled
Install kernel-devel and kernel-default-devel or kernel-preempt-devel depending on your running kernel.
 
Old 03-05-2021, 03:27 AM   #13
jbujons
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Thanks for your answer and comments, and sorry if I did not explained myself clearly enough: I did a clean install. In fact, I did it twice. As I said on my post: "Now, I have installed Leap 15.2 on a new disk, making sure that the kernel sources were also installed." So it is nothing related to this.

After my post, I tried to install cuda 11.2 in te same way (ie. command line at boot) and it worked flawlessly: cuda and the Nvidia driver associated were installed without warnings or error messages. But as I said in my previous post, this has the problem that the driver version that is installed is 460.27, which does not support Nvidia 3D vision. As far as I know, this support was dropped by Nvidia after driver versions 418.XX and that is the reason why I was trying cuda 10.0 or 10.1, which come with driver versions 410.48 and 418.87.

The fact that cuda 11.2 and the associated driver install without problems, while 10.0 or 10.1 fail with the error "kernel sources not found" tells me that, either the installer looks for the kernel sources in the wrong place (has there been any change in the location of kernel sources in Leap 15.2?), or that there is some other problem like gcc version (7.5.0) or kernel version (5.3.18) not supported by cuda 10.X.
 
Old 03-05-2021, 03:31 AM   #14
jbujons
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by Sauerland View Post
Install kernel-devel and kernel-default-devel or kernel-preempt-devel depending on your running kernel.
kernel-devel, kernel-default-devel and kernel-preempt-devel are all already installed. I guess that's not it.
 
Old 03-05-2021, 03:01 PM   #15
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 193

Rep: Reputation: Disabled
See if you can patch the driver......

Newer nvidia driver needs newer Cuda.......
 
  


Reply

Tags
nvidia, opensuse



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: openSUSE Leap 15.0 Reached End of Life, Upgrade to openSUSE Leap 15.1 Now LXer Syndicated Linux News 0 12-01-2019 09:21 AM
LXer: openSUSE Leap 42.3 Linux OS Reached End of Life, Upgrade to openSUSE Leap 15.1 LXer Syndicated Linux News 0 06-30-2019 01:54 AM
[SOLVED] Problems with upgrading Leap 42.3 to Leap 15.0 Crb999 SUSE / openSUSE 6 06-11-2018 07:04 AM
LXer: openSUSE Leap 42.2 is out, how to upgrade safely from openSUSE Leap 42.1 LXer Syndicated Linux News 0 11-17-2016 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:26 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