2022-01-16 18:20:39 +00:00
|
|
|
---
|
2025-02-13 00:42:50 +00:00
|
|
|
title: "kernel modules"
|
2025-02-12 14:01:15 +00:00
|
|
|
tags: [ "system" ]
|
2022-01-16 18:20:39 +00:00
|
|
|
---
|
2020-01-02 00:04:35 +00:00
|
|
|
|
2025-02-13 00:42:50 +00:00
|
|
|
Kernel modules live in lib/modules/$(uname -r)
|
|
|
|
|
|
|
|
## Change
|
|
|
|
|
|
|
|
Load them with
|
|
|
|
|
|
|
|
```sh
|
|
|
|
modprobe ath9k
|
|
|
|
```
|
|
|
|
|
|
|
|
Or remove one with
|
|
|
|
|
|
|
|
```sh
|
|
|
|
modprove uvcvideo
|
|
|
|
```
|
|
|
|
|
|
|
|
The PC's irritating speaker beep can be really annoying. Disable it with:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
modprobe -r pcspeaker
|
|
|
|
```
|
|
|
|
|
|
|
|
Permanently disable a module by blacklisting it in `/etc/modprobe.d`:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
echo 'blacklist pcspkr' > /etc/modprobe.d/*nobeep*.conf
|
|
|
|
```
|
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
Check which kernel modules are loaded into memory:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
su root
|
|
|
|
/sbin/lsmod
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
Check which virtual box modules are loaded into memory
|
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
```sh
|
|
|
|
/sbin/lsmod | grep vbox
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
Virtual box is using vboxpci, vboxnetadp, vboxnetflt, vboxdr.
|
|
|
|
|
|
|
|
Look at what's claiming wifi:
|
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
```sh
|
|
|
|
lshw -C network
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
If this shows that the device is 'unclaimed' then it's time to add a module, e.g. ath9k.
|
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
```sh
|
|
|
|
modprobe ath9k
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
Modules can also be 'restarted' by removing and adding them, e.g. the video module, 'uvcvideo':
|
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
```sh
|
|
|
|
rmmod uvcvideo
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
2025-02-12 14:01:15 +00:00
|
|
|
```sh
|
|
|
|
modprobe uvcvideo
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|