Single-GPU-Passthrough icon indicating copy to clipboard operation
Single-GPU-Passthrough copied to clipboard

Unable to unload nvidia module

Open Mindstrial opened this issue 5 years ago • 5 comments

I'm having problems with startup hook. I've followed this guide, but starting VM shows my motherboard logo (the same as when starting PC) and hangs. I used ssh to manually run the script and found two problems:

echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind this prints echo: write error: No such device

modprobe -r nvidia this prints modprobe: FATAL: Module nvidia is in use.

I've tried using lsmod | grep nvidia to find what module is using nvidia, but unfortunately I didn'get any module names, only count nvidia 19722240 15

I've tried googling for solutions, but haven't found anything. I'm using Solus OS with Budgie desktop (with LightDM). Any help would be appreciated.

Mindstrial avatar Aug 19 '20 09:08 Mindstrial

I have the same issue, any luck?

ryujinxx avatar May 13 '21 03:05 ryujinxx

Sorry, no. I gave up on this long time ago and just went dual-boot. If you manage to solve this, please post the solution here!

Mindstrial avatar May 13 '21 05:05 Mindstrial

for me it was nvidia-persistenced

nift4 avatar Dec 27 '21 19:12 nift4

echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind this prints echo: write error: No such device

Do you have CONFIG_FB_EFI enabled in your kernel .config? Removing the nvidia module is probably failing because it's still being used as the framebuffer, check with $ cat /proc/fb

$ modprobe -D nvidia would find what is needing nvidia

jiblime avatar Dec 30 '21 00:12 jiblime

I had the same issue, and it was caused by nvidia-persistenced. I've updated my copies of the start and stop scripts to account for that service. Stack overflow thread helped me down this track. https://stackoverflow.com/questions/61543214/how-to-unload-an-nvidia-kernel-module-nvidia-for-new-driver-installation

Dimensional avatar Mar 13 '23 02:03 Dimensional