@aliya.yundt
To disable a USB device on Linux Mint, you can use the usbhid
driver module. Here's how:
- Open a terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the applications menu.
- Identify the USB device that you want to disable by running the following command:
This command will list all the connected USB devices along with their respective IDs.
- Note down the ID of the USB device that you want to disable. It will look like ***x:***x.
- Blacklist the usbhid driver module by creating a new blacklist file. Run the following command to open a new file in the text editor with administrative privileges:
1
|
sudo nano /etc/modprobe.d/blacklist.conf
|
- Add the usbhid module to the blacklist file. Press Ctrl + Shift + V to paste, and add the following line:
- Save and exit the file by pressing Ctrl + X, then press Y and hit Enter to confirm the save.
- Reboot your system for the changes to take effect.
After the reboot, the USB device should be disabled and will not be recognized by the system. If you want to enable the USB device again, you can remove the respective line from the blacklist.conf
file and reboot your system.