Cant unload nvidia_drm - endless loop

Hi, I’m using a ThinkPad X1 Extreme with combined Intel/Nvidia graphic
GeForce GTX 1650 with Max-Q Design/PCIe/SSE2 on openSUSE Tumbleweed.
nvidia-glG05-440.100 driver from nvidia-repository and suse-bbswitch to switch between intel and nvidia graphic.

The issue arises when I switch from nvidia to Intel graphic or when an update arrives (and this happens frequently on a rolling release) and nvidia driver is active.
In this case - rpm installation - the installer goes into an endless loop.

root cause is probably that nvidia_drm cant be unloaded:

X1E:/home/docb # rmmod --force nvidia_drm
rmmod: ERROR: Module nvidia_drm is in use

prime-select intel
modprobe: FATAL: Module nvidia_drm is in use.
modprobe: FATAL: Module nvidia_drm is in use.
(and so on)

Any ideas how the module can be unloaded?

1 Like