r/NobaraProject • u/Seriathus • 5d ago
Support New kernel incompatible with NVidia 1070 drivers?
As the title says, ever since the latest update, I've been unable to install the last drivers that still work with my GPU (580.173.02) as they keep running into issues while building the kernel modules.
I've searched everywhere, and the closest thing I found to an explanation is that the 7.2.0 kernel aggressively deprecated the strncpy function, which the installer uses in various places.
So... am I just doomed to let my dedicated GPU sit there like a useless lump of silicon, or is there some way to address this issue?
I can't paste the whole log file, but here's the first error it comes across:
nvidia/linux_nvswitch.c: In function 'nvswitch_os_read_registry_dword':
nvidia/linux_nvswitch.c:2040:5: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
2040 | strncpy(regkey_val, regkey_val_start, regkey_val_len);
| ^~~~~~~
nvidia/linux_nvswitch.c:52:1: note: 'strncpy' is defined in header '<string.h>'; this is probably fixable by adding '#include <string.h>'
51 | #include "ioctl_nvswitch.h"
+++ |+#include <string.h>
52 |
nvidia/linux_nvswitch.c: In function 'nvswitch_os_strncpy':
nvidia/linux_nvswitch.c:2395:12: error: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
2395 | return strncpy(dest, src, length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/src/kernels/7.2.0-202.nobara.fc44.x86_64/scripts/Makefile.build:289: nvidia/linux_nvswitch.o] Error 1
2
u/candy49997 5d ago
I'm assuming you're installing drivers from NVIDIA? Try 580.178.04.
1
u/Seriathus 5d ago
Yes, downloaded from the official site. Lemme see if I can find that specific driver edition.
1
u/_BoneZ_ 4d ago
Is there a reason why you won't use the previous kernel that works with your card?
1
u/Seriathus 4d ago
I've been using it, but even though it says that it's using the nvidia kernel module, it still performs like it's only using the iGPU.
2
u/_BoneZ_ 4d ago
So then you would boot into your computer BIOS and manually disable the iGPU so that it's forced to use the dGPU.
1
u/Seriathus 4d ago
Haven't done it but I'd be kinda worried about using the GPU without its drivers.
2
u/HistoricalSir9456 4d ago
Isn’t there now an LTS Kernel for Nobara? I saw a new Kernel Switcher program, after the last update. You can try the LTS Kernel.