JafarAkhondali / acer-predator-turbo-and-rgb-keyboard-linux-module

Linux kernel module to support Turbo mode and RGB Keyboard for Acer Predator notebook series
GNU General Public License v3.0
337 stars 59 forks source link

fix: properly unregister and cleanup char devices #121

Closed IllusionMan1212 closed 9 months ago

IllusionMan1212 commented 9 months ago

I've noticed the same major device was used for both acer-gkkbl and acer-gkkbl-static and that was causing problems when removing and adding the module since acer-gkkbl was never removed. The virtual devices were also not being unregistered properly and hung around after uninstallation if you check /proc/devices and /sys/devices/virtual/

JafarAkhondali commented 9 months ago

Thanks @IllusionMan1212 ! This may solve many issues :)