That’s why I researched the problem further and found a better way.
- Unplug your device before booting.
- Disable
NetworkManager
with these commands to prevent the kernel from freezing.
systemctl stop NetworkManager
systemctl disable NetworkManager
- Reconnect your device and check which driver your device is using. See https://unix.stackexchange.com/questions/60078/find-out-which-modules-are-associated-with-a-usb-device
- Stop and blacklist your driver. Open
/etc/modprobe.d
and create a new.conf
file and add the lineblacklist your-driver
.
rmmod your-driver
cd /etc/modprobe.d/.
nano blacklist.conf
# Now add the following line and save.
# blacklist your-driver
- Install the correct driver. This step will vary depending on your driver.
- Enable ‘NetworkManager’ again.
systemctl enable NetworkManager
systemctl start NetworkManager
And the kernel shouldn’t freeze again.