I was trying to run a program and forcing it to use the nvidia GPU instead of the intel integrated one, but it showed an error. Something about it not existing? I checked with nvidia-smibut it said it couldn’t communicate with the nvidia driver. I ran journalctl -e to check logs and it showed this: “Module nvidia is blacklisted”. So I ran inxi -G and it clearly shows the GPU there, but its driver is N/A.
I’ve tried googling for fixes but none seems to work, even after restarts. nvidia-inst doesn’t fix it too. I’ve checked the blacklist files (in /etc/modprobe.d/ and /usr/lib/modprobe.d/) but there’s nothing related to nvidia being blacklisted. I have no idea when this issue occured cause I haven’t really utilize the GPU in a while. And also I really don’t want to reinstall the OS completely. Help appreciated.
thats default way of what it will do, nvidia driver is doing so, you can switch Nvidia GPU on per application run or using a switcher tool to handle it.
Ah yeah, that’s the way it’s been before for a while. Thing is it doesn’t work now. It has no driver now. The system cannot use that GPU and has been sticking to iGPU for quite some time which I haven’t notice until now. I noticed it because I was trying to run a program using that GPU but it refuses cause the GPU doesn’t work.
It could be but other than /etc/modprobe.d/ and /usr/lib/modprobe.d/, is there like anywhere else that could potential define nvidia to be blacklisted? And yeah nvidia drivers are installed and updated almost every week (with pacman -Syu)
I’ve just looked into that file and it showed some nvidia things blacklisted. So I removed the blacklisted nvidia modules and restarted my system. However, the GPU still isn’t working and it still says nvidia is blacklisted in journalctl.
Update: So I notice /proc/cmdline said the nvidia modules are blacklisted despite /etc/kernel/cmdline already edited to not have them blacklisted. I decided to dig further into what /proc/cmdline is actually reading from. Turns out it’s the .conf file of… idk what its technical name is but the path is /efi/loader/entries/somelonghashidthing-6.12.61-1-lts.conf. The file had the modules blacklisted so I edited it to remove the nvidia from the blacklist. Restarted my system and now it works!
Although, probably not the most optimal and efficient solution but I’ll take whatever for now. I think the reason why it happened in the first place was I had a previous boot issue before and I thought completely reinstalling the kernel from scratch was a good idea (it wasn’t even the solution, but eventually I fixed it).
I said it the solution reply, it’s likely the fact that I did a clean reinstall of the kernel but without the nvidia tweaks so they became blacklisted by default. Still, thanks for your help with the cmdline though