bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
MIT License
1.22k stars 62 forks source link

nvidia driver wont work after uninstalling envycotnrol #54

Closed Bruol closed 1 year ago

Bruol commented 2 years ago

Thank you for this great project! I have noticed, that if you switch to integrated graphics and then uninstall envycontrol via pip uninstall, the udev rules at /lib/udev/rules.d/50-remove-nvidia.rules and the file that blacklists the nvidia driver at /etc/modprobe.d/blacklist-nvidia.conf are not deleted. This results in the nvidia driver not working after the uninstall, until you manually delete these files.

bayasdev commented 2 years ago

Thank you for this great project! I have noticed, that if you switch to integrated graphics and then uninstall envycontrol via pip uninstall, the udev rules at /lib/udev/rules.d/50-remove-nvidia.rules and the file that blacklists the nvidia driver at /etc/modprobe.d/blacklist-nvidia.conf are not deleted. This results in the nvidia driver not working after the uninstall, until you manually delete these files.

Switching to hybrid mode first removes those files ;)