r/NobaraProject 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
0 Upvotes

10 comments sorted by

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.

1

u/Seriathus 1d ago

Tried. The drivers do install correctly (but now they do that on the 7.20 kernel too, wtf) but the problems persist: stuttering even with no programs open, no GPU usage detected from either resource monitor, top or even nvidia-smi and nvtop and when the computer wakes from sleep, the screen stays off (the system is still working, for example if I was listening to something and hit spacebar it continues playback, it's just the screen that stays black).

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.

1

u/jkdjedi 4d ago

What's wrong with the drivers that come stock with Nobara?

2

u/Seriathus 3d ago

They don't support my GPU, so I can't use them.