How to disable usb device on linux mint?

by aliya.yundt , in category: General Help , 25 days ago

How to disable usb device on linux mint?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by johann , 23 days ago


To disable a USB device on Linux Mint, you can use the usbhid driver module. Here's how:

  1. Open a terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the applications menu.
  2. 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.

  1. Note down the ID of the USB device that you want to disable. It will look like ***x:***x.
  2. 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:
sudo nano /etc/modprobe.d/blacklist.conf

  1. Add the usbhid module to the blacklist file. Press Ctrl + Shift + V to paste, and add the following line:
blacklist usbhid

  1. Save and exit the file by pressing Ctrl + X, then press Y and hit Enter to confirm the save.
  2. 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.