Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Nvidia drivers fail to install on zen kernel (Read 976 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Nvidia drivers fail to install on zen kernel

Hello, for context, i've been playing around with the new optimus-manager program for dual-gpu laptops, but since it's a buggy mess for me, i've decided to put it down for now and reinstall my zen kernel and nvidia drivers.
However, doing a simple 'sudo pacman -S nvidia-dkms' fails. Here are the logs:
Spoiler (click to show/hide)

Re: Nvidia drivers fail to install on zen kernel

Reply #1
I manually downloaded the nvidia-dkms package and directly addressed what make is complaining about, namely:
 - I made it use gcc instead of cc by running 'env CC=gcc make' instead of 'make'
 - Rewrote instances of "MIGRATE_PFN_LOCKED" into "MIGRATE_PFN_VALID" in the nvidia-uvm/uvm_migrate_pageable.c file
And managed to produce a successful build of the kernel modules.
Why does normal pacman usage fail though?

Re: Nvidia drivers fail to install on zen kernel

Reply #2
Did you remember to install the headers for the linux-zen kernel? That's what is jumping out at me.

Code: [Select]
# pacman -S linux-zen-headers

Re: Nvidia drivers fail to install on zen kernel

Reply #3
Did you remember to install the headers for the linux-zen kernel? That's what is jumping out at me.

Code: [Select]
# pacman -S linux-zen-headers
Yes, i have them installed from when i first installed artix, it's only after i messed with the optimus-manager package yesterday that everything nvidia broke down

 

Re: Nvidia drivers fail to install on zen kernel

Reply #4
Install nvidia-dkms 495.46-2 from Arch extra repo.