neggles / cm4io-fan

CM4 IO board PWM fan controller driver
GNU General Public License v2.0
79 stars 16 forks source link

How do I Uninstall cm4io-fan from raspberrypi? #13

Closed niraj711 closed 2 years ago

niraj711 commented 2 years ago

I installed it fine, but if I want to uninstall it, how would I do that?

neggles commented 2 years ago

Hi! Hmm, that depends on how you installed it - if you used the .deb package (which is a bit out of date) then sudo apt purge cm4io-fan should do it, in theory at least.

If you installed it manually, this should remove it - will be 0.1.1 or 0.2.0 in these commands:

  1. sudo dkms uninstall cm4io-fan/<version>
  2. sudo dkms remove cm4io-fan/<version>
  3. sudo rm -fr /usr/src/cm4io-fan-<version>
  4. Remove or comment out the line beginning with dtoverlay=cm4io-fan, from /boot/config.txt
  5. Optionally remove or comment out the dtparam=i2c_vc=on line in /boot/config.txt as well (should be directly above the dtoverlay= line)
  6. Reboot

If you're not having issues with the DKMS module, you can just remove the line from /boot/config.txt to stop the module loading.

If that doesn't work, let me know what version you have installed and how you installed it, and I'll see what I can do. Will also add some uninstall instructions to README.md when I get a chance 😃

neggles commented 2 years ago

I'm going to assume that worked for you and close this - feel free to reopen if not :)