sodcalculator

10 Tech How-To

Activate Linux USB Dongles (D-Link, Belkin & More)

Guide 10-22307 · Updated · Step by step

This guide explains how to get a USB Wi-Fi or Bluetooth dongle working on Linux, covering common brands like D-Link and Belkin. You’ll learn how to identify the chipset, load the correct driver, and troubleshoot connection issues—no terminal wizardry required, just a few straightforward commands.

What You’ll Need

  • A Linux system with an internet connection (wired or another working wireless device)
  • The USB dongle you want to activate
  • Access to a terminal (usually Ctrl+Alt+T)
  • Basic familiarity with entering commands (copy-paste works fine)

Step-by-Step

  1. Plug in the dongle and wait a few seconds. Most Linux distributions will automatically detect it and attempt to load a driver.
  2. Identify the device. Open a terminal and run lsusb. Find the line that mentions your dongle’s manufacturer (e.g., D-Link, Belkin) or its chipset. Note the ID (like 2001:3319). This ID is crucial for finding the right driver.
  3. Check if the driver is already loaded. Run lsmod | grep -E 'rtl|mt76|ath|iwl|btusb'. If you see a module that matches your chipset (e.g., rtl8xxxu for Realtek), the driver is already active. If not, you’ll need to install it.
  4. Install the driver package. For most modern kernels, the driver is built-in. If not, use your package manager. For Ubuntu/Debian: sudo apt install firmware-realtek or sudo apt install linux-firmware. For Fedora: sudo dnf install linux-firmware. For Arch: sudo pacman -S linux-firmware.
  5. If the driver isn’t in the repos, you may need to compile it from source. This is common for very new or very old chipsets. Search for the chipset name (e.g., “RTL8812BU driver linux”) and follow the project’s README. Usually it’s: make then sudo make install, then sudo modprobe .
  6. After installing, reload the module or reboot. Run sudo modprobe (replace with the actual module name) or simply reboot.
  7. Connect to Wi-Fi. Use your desktop’s network manager (click the Wi-Fi icon) or the command line: nmcli dev wifi connect password .
  8. For Bluetooth dongles, the process is similar. Ensure the bluetooth service is running: sudo systemctl start bluetooth and enable it with sudo systemctl enable bluetooth. Then use your system’s Bluetooth settings to pair.

Common Mistakes

  • Assuming the brand matters more than the chipset. D-Link and Belkin use chipsets from Realtek, MediaTek, Atheros, etc. The chipset determines the driver, not the brand.
  • Ignoring the kernel version. Very old kernels may not support newer chipsets. Consider updating your kernel if you have a recent dongle.
  • Forgetting to install firmware. Many chipsets need proprietary firmware blobs. The linux-firmware package covers most, but some need extra packages like firmware-realtek.
  • Not checking dmesg for errors. If the dongle isn’t working, run dmesg | tail to see kernel messages. They often tell you exactly what’s missing.
  • Using the wrong driver for dual-band dongles. Some dongles have separate drivers for 2.4GHz and 5GHz. Make sure you’re loading the one that matches your network.

Tips

  • Use a wired connection when installing drivers. If the dongle isn’t working, you won’t have internet. Plug in an Ethernet cable or use your phone’s USB tethering.
  • Check the Linux Hardware Database (linux-hardware.org). Search for your USB ID to see if others have reported success and with what driver.
  • Prefer dongles with well-supported chipsets. If you’re buying new, look for ones based on Intel, Atheros (now Qualcomm), or MediaTek—they tend to have the best Linux support out of the box.
  • Keep your system updated. New kernels and firmware packages are constantly adding support for new hardware. sudo apt update && sudo apt upgrade (or your distro’s equivalent) is your friend.
  • Use a USB 2.0 port if you have issues. Some dongles have power issues on USB 3.0 ports. Try a different port.

Troubleshooting

If the dongle still doesn’t work after following the steps:

  • Check dmesg output. Run dmesg | grep -i error or dmesg | tail -20 to see if the kernel is complaining about the device. Look for messages like “firmware not found” or “unknown chipset”.
  • Try a different USB port. Sometimes a port can be faulty or not provide enough power. Try a port directly on the motherboard (back of the computer) rather than a front panel or hub.
  • Disable secure boot. If you compiled a driver from source, Secure Boot may block it. You can either sign the module or disable Secure Boot in your BIOS/UEFI settings.
  • Check if the dongle is recognized at all. Run lsusb again. If the device doesn’t appear, it might be physically dead or in a bad state. Try a different computer to confirm.
  • Use a live USB. Boot from a live Linux USB (e.g., Ubuntu) and see if the dongle works there. If it does, your installed system is missing something. If not, the dongle may be incompatible or broken.
  • Search the web for your exact USB ID. For example, “2001:3319 linux” will show you forums and bug reports where others have solved the same problem.

Frequently Asked Questions

  1. Why does my D-Link dongle show up as a Realtek device? Because D-Link doesn’t make chips; they buy them from Realtek, MediaTek, etc. The chipset is what matters for drivers.
  2. Do I need to install drivers for every USB dongle? No. Many are plug-and-play with the kernel’s built-in drivers. Only if the dongle uses a very new or very obscure chipset will you need to install extra drivers.
  3. Can I use a Windows driver on Linux? Sometimes, via NDISwrapper, but it’s unreliable and not recommended. It’s better to find a native Linux driver.
  4. Why does my dongle work on Ubuntu but not on Fedora? Different distributions may have different kernel versions or firmware packages. Check your distro’s specific documentation.
  5. What does ‘modprobe’ do? It loads a kernel module (driver) into the running kernel. The module must exist in the system’s module directory first.
  6. Is it safe to compile a driver from source? Generally yes, if you get it from the official project repository. However, kernel updates can break it, and you’ll need to recompile after each kernel update.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →