Closed m1st0 closed 3 years ago
After running ps aux | grep nvidia
I found that the additional Xorg session on Display 8 was still running. Simple enough test then to turn it off by sudo fuser -k /tmp/.X11-unix/X8
before I unload the modules in question. This worked.
I then noticed bumblebee had the option turned on to keep the now unused Xorg session running.
KeepUnusedXServer=false
in /etc/bumblebee/bumblebee.conf.sudo systemctl restart bumblebeed
.Now my scripting works to load and unload all modules. In any case I hope my oversight helps in seeing some commands to work with the card and modules for other issues.
After loading modules, turning the discrete card on, and then running a program under optirun, I unload the kernel modules as understood to turn off my discrete card as follows:
However this fails to turn off my nvidia card. Syslog reports
bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF
. Thereby I check down the modules that failed to unload one by one. Module nvidia won't unload due to nvidia-drm, so I try to manually unload it again:Checking on what is using nvidia-drm,
sudo lsmod | grep nvidia
results inAs a last resort, I can directly force the nvidia card off , but my system doesn't seem to be in a good state from:
I am on nvidia version 460.56-0ubuntu0.20.10.1 . Please help on the drm issue.