You are not logged in.

#1 2023-12-03 21:02:01

slithis
Member
Registered: 2023-12-03
Posts: 4

[SOLVED] nvidia drivers not loading despite nouveau blacklisting

Howdy folks. Let me list what I have done so far.

The output of

 lspci -k | grep -A 2 -E "(VGA|3D)" 

for my card is

29:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2070] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd TU106 [GeForce RTX 2070]
	Kernel driver in use: nouveau

Running

 pacman - Qs nvidia 

prints

 local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/libxnvctrl 545.29.06-1
    NVIDIA NV-CONTROL X extension
local/nvidia 545.29.06-2
    NVIDIA drivers for linux
local/nvidia-lts 1:545.29.06-2
    NVIDIA drivers for linux-lts
local/nvidia-settings 545.29.06-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities
local/opencl-nvidia 545.29.06-1
    OpenCL implemention for NVIDIA

to the terminal. I have 100% removed kms from the hooks array and regenerated initramfs. The output shown at the top of the post is what I see even after rebooting. The command

 pacman -Q linux 

prints out

 linux 6.6.3.arch1-1 

to the terminal. I have attempted to run

 nvidia-config 

but after rebooting and using

startx

it doesnt load at all. Running

 nvidia-settings

results in an output to the terminal of

ERROR: NVIDIA driver is not loaded


(nvidia-settings:3127): GLib-GObject-CRITICAL **: 06:56:27.583: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:3127): CRITICAL **: 06:56:27.584: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been
       installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application
       profiles will continue to work, but values cannot be prepopulated or validated, and will not be listed in the help text.
       Please see the README for possible values and descriptions.

I have run a full system upgrade already. I am a bit confused, as I feel like I have tried almost all the other forum posts I can find's suggestions... any ideas on why nothings working out?

Last edited by slithis (2023-12-05 06:02:07)

Offline

#2 2023-12-03 21:53:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,274

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

nvidia-config

Don't and remove that config again.

What's the output of

uname -a
cat /proc/cmdline
modprobe -v nvidia

But since nouveau gets blacklisted by nvidia-utils, there's essentially no other explanation as nouveau still residing in the initramfs, pot. because you're not booting kernel and initramfs you're manipulating (forgetten to mount the /boot partition?)

Offline

#3 2023-12-03 22:08:14

slithis
Member
Registered: 2023-12-03
Posts: 4

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

The outputs of those commands in order are

Linux fishy 6.6.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 29 Nov 2023 00:37:40 +0000 x86_64 GNU/Linux

BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c8044096-9559-4f4a-b8fd-7ff8490f7831 rw loglevel=3 quiet

insmod /lib/modules/6.6.3-arch1-1/extramodules/nvidia.ko.xz
modprobe: ERROR: could not insert 'nvidia': No such device

I seem to have found another resource that recommended adding to the modules of mkinitcpio.conf "nvidia nvidia_modeset nvidia_drm". Would that perhaps address the nvidia No such device error?

Current mountpoints are

nvme0n1     259:0    0 238.5G  0 disk
├─nvme0n1p1 259:1    0   256M  0 part /boot/efi
│                                     /boot
└─nvme0n1p2 259:2    0 238.2G  0 part /

Last edited by slithis (2023-12-03 22:10:33)

Offline

#4 2023-12-03 22:14:05

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

Offline

#5 2023-12-03 22:51:46

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,274

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

The error is because nouveau is loaded.

BOOT_IMAGE=/boot/vmlinuz-linux

You're not booting from nvme0n1p1

umount /boot
ls /boot
lsinitcpio /boot/initramfs-linux.img | grep nouveau

Offline

#6 2023-12-04 02:17:06

slithis
Member
Registered: 2023-12-03
Posts: 4

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

I've gone through and fully made the changes listed here. I now have a "nvidia_drm.conf" file with the following contents:

options nvidia_drm modeset=1 fbdev=1

and I have added the modules.  I then reran

 mkinitcpio -P 

which successfully created an image. Rebooting yields the same results.

Forgive my ignorance @Seth. Aren't the mountpoints /boot and /boot/efi shown in my post above on nvme0n1p1?  Even running

 umount /boot 

results in an error because

 umount: /boot:target is busy 

Offline

#7 2023-12-04 07:14:43

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,274

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

Yes are, but that's not where you're booting from.

BOOT_IMAGE=/boot/vmlinuz-linux

is a path relative to the root partition.

sudo lsof | grep /boot

But you could also just remove the fstab entry and reboot

Offline

#8 2023-12-05 06:01:22

slithis
Member
Registered: 2023-12-03
Posts: 4

Re: [SOLVED] nvidia drivers not loading despite nouveau blacklisting

Okay folks -- the issue is fixed. However, it is worth noting that I did not happen to follow your advice @seth. After a bit of messing around, I took the nuclear option -- realized that I probably messed things up during all the stuff I tried setting up the system in the first place, and completely reinstalled arch. One of the first things I've now done was to set up nvidia following the wiki closely. And the output of

lsmod | grep nvidia

is now the lovely set of things I wanted to see. While it may not provide closure (I believe what you were trying to suggest would help, but I'm a bit dense to have fixed it) -- the issue is resolved.

Offline

Board footer

Powered by FluxBB