Nvidia Drivers help

Hello, Ive been trying out linux on varoius old laptops, but thought that thus time I should try it on my real dekstop. I was proad when I managed to get the broadcom drivers working using a usb stick :slight_smile: However when I run the NVIDIA install I get the following error:

neither the ‘/usr/src/linux/include/linux/version.h’ nor the /usr/src/linux/generated/uapi/linux/version.h’ kernel header file exists. the most likely reason for this is that the kernel source files in ‘/usr/src/linux’ have not been configured

Its like he wants to rebuild my kernel just for installing some drivers.

My kernel version is:

**localhost:/usr/src/linux # uname -r**
**6.11.5-1-default if that helps.**

If that helps.

Chat gpt told me to try and install this exact kernel, but then I got this:

localhost:/usr/src/linux # sudo zypper install "kernel-default-devel=$(uname -r)"**
Problem retrieving files from 'openSUSE-20241031-0'.**
Empty destination in URI: hd:/?device=/dev/disk/by-id/wwn-0x50014ee65a4ac340-part2**
Please see the above error message for a hint.**
Warning: Skipping repository 'openSUSE-20241031-0' because of the above error.**
Some of the repositories have not been refreshed because of an error.**
Loading repository data...**
Reading installed packages...**
kernel-default-devel=6.11.5-1-default' not found in package names. Trying capabilities.**
No provider of 'kernel-default-devel=6.11.5-1-default' found.**
Resolving package dependencies...**
Nothing to do.**

Please help! Ive come so far! Manage to install broadcom drivers, diabled secure boot. Even managed to press E on the grub2 to disable old driver. I didnt knew any of those words a few days ago :slight_smile:

This would seem to come from keeping the original installation media enabled, which is rarely what anyone wants or needs in a rolling distribution. What repos are enabled? zypper lr -u

6.11.5 devel is on the mirrors

# zypper se -s kernel-default-devel
Loading repository data...
Reading installed packages...

S  | Name                 | Type    | Version    | Arch   | Repository
---+----------------------+---------+------------+--------+-----------
   | kernel-default-devel | package | 6.11.5-2.1 | x86_64 | OSS
#
staffan@localhost:/usr/src/linux-6.11.5-2> zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias               | Name                                   | Enabled | GPG Check | Refresh | URI
--+---------------------+----------------------------------------+---------+-----------+---------+---------------------------------------------------------
1 | openSUSE-20241031-0 | openSUSE-20241031-0                    | Yes     | (r ) Yes  | Yes     | hd:/?device=/dev/disk/by-id/wwn-0x50014ee65a4ac340-part2
2 | repo-debug          | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    | http://download.opensuse.org/debug/tumbleweed/repo/oss/
3 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss/
4 | repo-openh264       | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed
5 | repo-oss            | openSUSE-Tumbleweed-Oss                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss/
6 | repo-source         | openSUSE-Tumbleweed-Source             | No      | ----      | ----    | http://download.opensuse.org/source/tumbleweed/repo/oss/
7 | repo-update         | openSUSE-Tumbleweed-Update             | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/
staffan@localhost:/usr/src/linux-6.11.5-2>

I hope this helps you help me.

Disable repo # 1:

sudo zypper modifyrepo --disable 1

Then follow the instructions on this page and please do not rely on ChatGPT for such specific matters.

2 Likes

Hello! Thank you so far. Ive learne now thanks to you how to disable faulty repos. I have also followed the instruction SDB:NVIDIA drivers - openSUSE Wiki .

I stopped after this instruction:
zypper install-new-recommends --repo repo-non-free

Because I thought that was the last instruction, but Im not sure. I think the instructions arent straightforward for someone like me.

However I get this output now, but I think I had it directly after the install as well:

staffan@localhost:~/Downloads> lsmod | grep nvidia
i2c_nvidia_gpu         12288  0
i2c_ccgx_ucsi          12288  1 i2c_nvidia_gpu
staffan@localhost:~/Downloads> ^C
staffan@localhost:~/Downloads>

I also run fastfetch:
staffan@localhost:~/Downloads> fastfetch
Icons: breeze [Qt], breeze [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3]
Cursor: breeze (24px)
Terminal: konsole 24.8.2
CPU: Intel(R) Core™ i5-9600K (6) @ 4.60 GHz
GPU: NVIDIA GeForce GTX 1660
Memory: 2.77 GiB / 15.54 GiB (18%)
Swap: 0 B / 2.00 GiB (0%)
Disk (/): 6.04 GiB / 32.50 GiB (19%) - btrfs
Local IP (wlp5s0): 192.168.68.111/24
Locale: en_US.UTF-8

So I dont know if it worked, but I think most people got more when they wrote
lsmod | grep nvidia

Thank you so far, and forgive me for the political comment earlier!

Did you notice the following line in the SDB instructions?

Which command to choose depends on how you added the NVIDIA repository and which name the repo has.

So please post again the result of:

zypper lr -d

since you don’t appear to have installed any relevant Nvidia driver.

Yes, I did notice that one and I hope that the first one here should correspond to that command.

staffan@localhost:~/Downloads> zypper lr -d
# | Alias                      | Name              | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                     | Service
--+----------------------------+-------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------+---------
1 | NVIDIA:repo-non-free       | repo-non-free     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed         | NVIDIA
2 | openSUSE:repo-non-oss      | repo-non-oss      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/non-oss         | openSUSE
3 | openSUSE:repo-openh264     | repo-openh264     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed | openSUSE
4 | openSUSE:repo-oss          | repo-oss          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/oss             | openSUSE
5 | openSUSE:repo-oss-debug    | repo-oss-debug    | No      | ----      | ----    |   99     | N/A    | http://cdn.opensuse.org/debug/tumbleweed/repo/oss       | openSUSE
6 | openSUSE:repo-oss-source   | repo-oss-source   | No      | ----      | ----    |   99     | N/A    | http://cdn.opensuse.org/source/tumbleweed/repo/oss      | openSUSE
7 | openSUSE:update-tumbleweed | update-tumbleweed | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/update/tumbleweed               | openSUSE
staffan@localhost:~/Downloads>

I really did follow the instruction :frowning: Secure boot is disabled. Is anything left to try?

what does

zypper se -si nvidia

report?

Your GPU supports the open driver which is in the OSS repo, not the NVIDIA one, so maybe the command you need is the following:

sudo zypper inr --repo repo-oss

that should install (at least) nvidia-open-driver-G06-signed-kmp-default and kernel-firmware-nvidia-gspx-G06.

After running

sudo zypper inr --repo repo-oss

(this did a lot of stuff, I managed to read that some modules werent installed because they werent available. The text was green and not red, so I dont think this is my problem)

zypper se -si nvidia returns

staffan@localhost:~/Downloads> zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                             | Type    | Version              | Arch   | Repository
---+----------------------------------+---------+----------------------+--------+-----------
i  | kernel-firmware-nvidia           | package | 20241018-1.1         | noarch | repo-oss
i+ | openSUSE-repos-Tumbleweed-NVIDIA | package | 20240712.dd8c2eb-1.2 | x86_64 | repo-oss
staffan@localhost:~/Downloads>

I don’t have a Turing GPU on hand, so I’m going somewhat blind here, but following
this guide you should install the following:

zypper in nvidia-open-driver-G06-signed-kmp-default
zypper in nvidia-video-G06 nvidia-gl-G06 nvidia-compute-G06

Please be aware that you already have all the repos you need, so all the “addrepo” steps in the guide are not needed.
The above installation should rebuild the initrd (you should see “dracut” building stuff, don’t care about “missing modules…”, those are normal messages).
Upon reboot you should see a list of installed nvidia packages

zypper se -si nvidia

and a few nvidia modules loaded

lsmod |grep nvidia

Thank you, but that didnt help. After the kernel rebuild (was it?) I lost my wifi. I tried to install it the same way I did before (drivers on usb stick), but this time it didnt work. So I read about GRUB menu where you could select advance and select the old kernel. So this is written on the old kernel :slightly_frowning_face:

While in the wifiless new kernel though, I still run the command, but even though it looked good while installing, lsmod returned the same as before. No new rows :frowning:

This is obviously more complicated than I thought. Maybe this is not for me. I actually have a computer science degree, but that doesnt help like people think :slight_smile:

Rats I really wanted to run linux on something other than my old laptop. I seriously start to believe my hardware is incompatible or something.

Any Idea of why the Wifi stopped working?
When I tried to install the drivers the same way as before it said “nothing to do”

Any idea how to continue on my NVIDIA journey? Im not sure Im ready to give up, but it seems Im having issues above the normality

Installing the Broadcom drivers from source will give a few errors, so I patched them and offered them in the Packman Repo.

So add the Packman Repo:
zypper ar -f https://ftp.halifax.rwth-aachen.de/packman/suse/openSUSE_Tumbleweed/ packman

And install the broadcom drivers:
zypper in broadcom-wl broadcom-wl-kmp-default broadcom-wl-ueficert
If secure boot is enabled, see:
https://en.opensuse.org/SDB:NVIDIA_drivers#Secureboot
This is also useful to get the packman key into the mok…
Also if installing the nvidia driver.

If you want to switch all installed packages to the ones from Packman use:
zypper dup --allow-vendor-change --from packman

For Nvidia post:
zypper se -si nvidia

Also post:

/sbin/lspci -nnk | grep -EiA3 'vga|display|3d'

Now I think Ill have to give up.
I noticed I got a new kernel version after all of this, and one of the broadcom drivers also had a kernel version hardcoded to it. I tried downloading the new version of that rpm on to usb stick for transfer, but wifi still didnt get back after a --force install.

So now Im two steps behind. Ill guess this was my Linux adventure. I can install it on an old laptop, but then Ill know Ill never use it.

Post:
zypper se -si broadcom kernel

Don’t give up so easily, I don’t know your situation, but for a happy installation you need a wired connection at least to be able to run everything you need to use Wifi.

Delete all your installed broadcom-wl packages, they are from different Repos.

Install the 3 packages from Packman.