MX 21.3 KDE Nvidia driver installation frustration

Message
Author
User avatar
MadmanRB
Posts: 88
Joined: Sun May 05, 2019 10:32 am

MX 21.3 KDE Nvidia driver installation frustration

#1 Post by MadmanRB »

Okay, so you know it's bad when I'm using Windows to report an issue I'm currently facing under MX 21.3 KDE
Here is the hardware in question:

CPU:
AMD Ryzen 5 3600

AMD X570

RAM: 16GB Dual Channel DDR4-SDRAM

GPU:
EVGA NVIDIA GeForce RTX 2070 SUPER


I would list more hardware, but again.... using windows right now, so I can write this.
I cant get MX to even get a command line session to perhaps fix this.

I installed the drivers, reinstalled drivers, uninstalled MX, reinstalled MX, clean install, but MX utterly fails here.
And yes my system was fully up-to-date BTW, no issue there.
And I'm not an idiot as I installed nvidia drivers before using MX's nvidia driver in the past, and it's not like my GPU is unsupported or anything.
Guess back to linux mint on this machine, unfortunate as that's been a pain in my ass as of late, thus why I wanted to see how MX was faring.
Mint may be bugging out on me, but at least I can get my nvidia card to work.
Blue bunny from outer space!
Image

User avatar
Eadwine Rose
Administrator
Posts: 14468
Joined: Wed Jul 12, 2006 2:10 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#2 Post by Eadwine Rose »

You can boot the live USB I wager?
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
Stevo
Developer
Posts: 14451
Joined: Fri Dec 15, 2006 7:07 pm

Re: MX 21.3 KDE Nvidia driver installation frustration

#3 Post by Stevo »

We are fixing a problem with the AHS drivers right now...which KDE edition is using.

A temporary AHS workaround would be to first install nvidia-modprobe from bullseye-backports, I believe, then use the Nvidia-installer.

User avatar
MadmanRB
Posts: 88
Joined: Sun May 05, 2019 10:32 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#4 Post by MadmanRB »

Eadwine Rose wrote: Sat Feb 18, 2023 4:37 pm You can boot the live USB I wager?
Yes the live works just fine, no issues.
Stevo wrote: Sat Feb 18, 2023 4:45 pm We are fixing a problem with the AHS drivers right now...which KDE edition is using.

A temporary AHS workaround would be to first install nvidia-modprobe from bullseye-backports, I believe, then use the Nvidia-installer.
Ah that makes sense, I was wondering why it wasn't working as MX worked with this card before.
I will try another reinstall (just in case) and see if I can get my issue resolved.
If not, I will wait out and once the AHS drivers are fixed, try it again.
Keep me informed in any case.
I am willing to keep this topic open until the issue is resolved.
Blue bunny from outer space!
Image

User avatar
MadmanRB
Posts: 88
Joined: Sun May 05, 2019 10:32 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#5 Post by MadmanRB »

Well I tried again and yeah something is certainly wrong.
Since I need my system to keep running, I have reinstalled mint for the time being, but will keep a close eye on this.
Honestly my mint system is okay but I do have minor gripes with it that I hoped MX could solve but since I cant get my GPU to work the way I want it mint it is for now.
I mean I could install the non AHS versions of MX but the AHS does come with its perks.
Blue bunny from outer space!
Image

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#6 Post by django013 »

Stevo wrote: Sat Feb 18, 2023 4:45 pm We are fixing a problem with the AHS drivers right now...which KDE edition is using.

A temporary AHS workaround would be to first install nvidia-modprobe from bullseye-backports, I believe, then use the Nvidia-installer.
Oh, good to know!

Guess I'm facing the same error.
After installing nvidia-driver system continues using nouveau-driver
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
MadmanRB
Posts: 88
Joined: Sun May 05, 2019 10:32 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#7 Post by MadmanRB »

Yeah its a bit of a shame, I mean I would use nouveau, but I like to game under linux now that proton is a thing.
Blue bunny from outer space!
Image

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#8 Post by django013 »

Hi,

when I noted the update of nvidia-modprobe I had the hope, that the bug was resolved.
So I purged nvidia-driver and reinstalled it, but purging the driver did not remove the built kernel module, so dkms was not triggered on reinstall.

So I manually invoked

Code: Select all

/usr/lib/dkms/dkms_autoinstaller start
with this output:

Code: Select all

~# /usr/lib/dkms/dkms_autoinstaller start
dkms: running auto installation service for kernel 6.1.0-4mx-amd64:Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git20221215/source/dkms.conf)
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git20221215/source/dkms.conf)
...
'make' all KVER=6.1.0-4mx-amd64.........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-4mx-amd64 (x86_64)
Consult /var/lib/dkms/rtl8821cu/5.12.0/build/make.log for more information.
logfile is this:

Code: Select all

$ cat /var/lib/dkms/rtl8821cu/5.12.0/build/make.log 
DKMS make.log for rtl8821cu-5.12.0 for kernel 6.1.0-4mx-amd64 (x86_64)
So 19. Feb 10:08:34 CET 2023
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-4mx-amd64/build M=/var/lib/dkms/rtl8821cu/5.12.0/build  modules
make[1]: Verzeichnis „/usr/src/linux-headers-6.1.0-4mx-amd64“ wird betreten
...
  CC [M]  /var/lib/dkms/rtl8821cu/5.12.0/build/os_dep/osdep_service.o
/var/lib/dkms/rtl8821cu/5.12.0/build/os_dep/osdep_service.c: In function ‘rtw_random32’:
/var/lib/dkms/rtl8821cu/5.12.0/build/os_dep/osdep_service.c:2918:9: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
 2918 |  return prandom_u32();
      |         ^~~~~~~~~~~
      |         prandom_u32_max
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-4mx-common/scripts/Makefile.build:255: /var/lib/dkms/rtl8821cu/5.12.0/build/os_dep/osdep_service.o] Fehler 1
make[1]: *** [/usr/src/linux-headers-6.1.0-4mx-common/Makefile:2030: /var/lib/dkms/rtl8821cu/5.12.0/build] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-6.1.0-4mx-amd64“ wird verlassen
make: *** [Makefile:2498: modules] Fehler 2
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
Stevo
Developer
Posts: 14451
Joined: Fri Dec 15, 2006 7:07 pm

Re: MX 21.3 KDE Nvidia driver installation frustration

#9 Post by Stevo »

If you don't have a wireless card with the Realtek 8821CU card, just remove rtl8821cu-dkms.

Actually, save time doing rebuilds by removing any dkms drivers packages you don't use, since they will get rebuilt with all kernel updates, and some of those take some time.

If you do need that driver, try this new one: https://mxrepo.com/mx/repo/pool/ahs-sta ... 21cu-dkms/

Support for that chipset is supposed to be built into Linux kernels starting with 6.2, though.

User avatar
MadmanRB
Posts: 88
Joined: Sun May 05, 2019 10:32 am

Re: MX 21.3 KDE Nvidia driver installation frustration

#10 Post by MadmanRB »

Stevo wrote: Sun Feb 19, 2023 6:59 pm
Support for that chipset is supposed to be built into Linux kernels starting with 6.2, though.
Sweet! There's one less thing to worry about :woot: :woot:
Honestly this is why I dont use certain distros with my old lappy as it uses that chipset, very nice to see it integrated into the kernel making my linux options become wider.
Blue bunny from outer space!
Image

Post Reply

Return to “Hardware /Configuration”