Grimoire-
Command
.es

GNU+Linux command memo

Reload Linux kernel modules (for WiFi, webcam or touchpad…)

Recharcher les modules du noyau Linux (comme celui du WiFi, de la webcam ou de la souris) pour retrouver un comportement normal en cas de blocage, en sortie de veille prolongée par exemple.

Reload kernel modules (such as WiFi, webcam or touchpad) to fix bad behaviors, occuring after hibernation for instance.

# modprobe -r elan_i2c && modprobe elan_i2c  (1) (2)
1 -r to remove the module if no other modules depends on it and it’s not being actively used.
2 elan_i2c is a touchpad module

iwldvm is an Intel WiFi module.
iwlmvm is also a WiFi module.
snd-hda-intel is a sound-card module.
uvcvideo is a webcam module.

1. Used modules

If modprobe refuses to remove your module, because other modules depends on it, you can use :

# rmmod -f snd-hda-intel && modprobe snd-hda-intel

rmmod -f will remove the module anyway. Use it with caution, removing an important module can destabilize your system.

2. How to find which module to remove

To find which module to remove, you can list loaded modules and search which module name correspond to your need…

$ lsmod | grep wifi
iwlwifi               294912  1 iwlmvm

Removing the iwlwifi module is not allowed, even using rmmod -f but reloading iwlmvm is enough.