How to Install Wi-Fi Drivers in Linux Mint: A Step-by-Step Guide

Transition to an operating system Linux Mint Users often encounter a classic problem: after installing the system, the wireless adapter doesn't work, and connecting to the network is impossible. This happens because many network card manufacturers don't provide open-source drivers, and the distribution's standard kernel may not contain proprietary modules for your hardware. Unlike Windows, where drivers are often built into the installer or downloaded automatically, Linux sometimes requires manual intervention to activate. wireless interface.

There's no need to panic, though: most modern adapters are still supported by the community, and the solution is usually found in repositories or requires compiling the module from source code. Installation process This can range from a simple switch in the settings to complex packet assembly via the terminal. In this article, we'll cover all the current methods that will help you get Wi-Fi up and running even on the most demanding hardware.

First, it's important to understand what kind of chipset is installed in your device, as this will determine your strategy. Realtek, Broadcom And Intel require fundamentally different approaches to configuration. We'll consider methods for both systems with internet access (via Ethernet or USB modem) and for cases where the computer is completely isolated from the network.

Identifying the network adapter and checking its status

Before looking for a solution, you need to accurately determine the model of your network controller. Linux provides powerful diagnostic tools, and the first step is to use the utility lspci for cards connected via the PCI bus, or lsusb For USB dongles, these commands will list all connected devices, where you need to find lines containing the words Wireless, Network or Wi-Fi.

The received identifier (for example, RTL8821CE or BCM43142) is the key to finding the correct driver. It often happens that the device appears in the list but is marked as "Unclaimed," meaning there is no loaded kernel module. In this case, the operating system sees the physical presence of the card but doesn't know how to interact with it.

It's also worth checking whether the adapter is blocked at the software or hardware level. Utility rfkill allows you to see the blocking status. If you see that the status Soft blocked installed in yes, this means the driver is loaded, but is blocked by system settings. Hardware lock (Hard blocked) is usually solved by switching a physical switch on the laptop case or by a combination of keys with an antenna icon.

rfkill list all

Running this command will give you a clear understanding of the current state of the radio modules. If the adapter is not visible even in lspci, the problem may lie in the BIOS/UEFI, where the port may be disabled, or in physical damage to the component.

Using drivers from the Linux Mint repositories

The easiest and safest way to enable Wi-Fi is to use the built-in driver manager. In the distribution Linux Mint (based on Ubuntu) has a "Driver Manager" utility that automatically scans your hardware and offers to install proprietary modules from official repositories. This method is ideal if you have temporary internet access via an Ethernet cable or a smartphone connected via USB.

To launch, open the application menu and search for "Drivers." The system will ask for an administrator password and run a scan. If, for example, your adapter Broadcom or some models RealtekIf there's a pre-built package, it will appear in the list marked "recommended." Simply select it and click the Apply Changes button.

⚠️ Note: Installing drivers through the manager requires a stable internet connection. If Wi-Fi isn't working, use your smartphone in USB modem mode (usually detected as a wired network by RNDIS) to access the repositories.

After installation, the system will prompt you to reboot. This is a mandatory step, as the new kernel module must be loaded instead of the old or built-in one. In most cases (about 80% of scenarios), this method resolves the issue without the need to manually enter commands.

  • 📀 Open the menu and find "Device Drivers".
  • 🔍 Wait until the hardware scan is complete.
  • ✅ Select the recommended driver from the list.
  • 🔄 Click "Apply changes" and restart your computer.

If the driver manager doesn't find anything suitable, this means there is no ready-made binary package for your kernel version, and you'll have to resort to manual installation via the terminal.

Installing drivers via terminal (APT)

For users who prefer control over the system, or in cases where the graphical interface fails, the terminal is indispensable. Package manager apt Allows you to install drivers directly, knowing the package name. Drivers for popular chipsets are often already compiled and available in repositories, but are not automatically activated. For example, Broadcom cards often require a package. bcmwl-kernel-source, and for some Intel - firmware-iwlwifi.

Before installing new packages, it's always a good idea to update your list of available software. This ensures you download the latest driver version compatible with your version. Linux MintThe list update command is fast and does not require much traffic.

sudo apt update

After updating, you can try installing the driver that matches your chipset. The package name often contains the manufacturer or model name of the chip. If you're unsure of the package name, you can search the repositories using keywords.

sudo apt install firmware-realtek

⚠️ Note: When installing packages from repositories, make sure additional repositories (Multiverse and Restricted) are enabled, as proprietary drivers are often found there. In Linux Mint, these are usually enabled by default, but you should check the settings in "Software Sources."

Sometimes after installation you need to manually initialize the kernel module with the command modprobeThis forces the system to load the driver immediately, without rebooting, which is convenient for quickly checking functionality. If the command runs without errors, the logs (dmesg) messages about successful initialization appear, which means the driver has installed correctly.

  • 📦 Update the package database: sudo apt update.
  • 🔧 Install the required firmware or driver package.
  • ⚙️ Reboot your system or use modprobe.
  • 📡 Check if Wi-Fi networks appear in the system tray.

Compiling drivers from source code

The situation becomes more complicated when ready-made packages are not available in the repositories. This often happens with new laptop models equipped with new chips. Realtek (e.g., the RTL88xx series) that haven't yet been included in the stable Linux kernel branches. In such cases, the only option is to compile the driver from source code. This process requires a compiler. gcc, kernel header files and the build system make.

First, you need to install a basic set of compilation tools. These packages are universal and will be needed not only for Wi-Fi drivers but also for installing any other software built from source. Without them, the build process will fail at the very first step.

sudo apt install build-essential git dkms linux-headers-$(uname -r)

After installing the tools, you need to find the driver repository. These projects are most often hosted on GitHub. You'll need to clone the repository to a local folder, navigate to it, and run the installation script. A popular solution for Realtek cards is to use scripts that automatically detect the chip and select the appropriate code branch.

It's important to understand that compiling locks the driver to the current kernel version. If you update the system kernel, the driver will stop working, and the process will have to be repeated. To avoid this, a technology called DKMS (Dynamic Kernel Module Support), which automatically recompiles the module when the kernel is updated. Make sure to use DKMS options during installation if provided by the driver author.

Where can I find the source code for the drivers?

The most reliable source is the manufacturer's official GitHub repository (if open) or popular community forks, such as lwfinger/rtlwifi_new for Realtek. Avoid downloading drivers from random forums, as they may contain errors or malicious code.

The compilation process can take anywhere from a few minutes to half an hour, depending on your processor speed. At the end, you'll receive a module file (.ko), which will be loaded into the system. Errors during this stage make often indicate a mismatch between compiler and kernel versions or missing dependencies.

Solving problems with Broadcom and Realtek

Chipsets Broadcom And Realtek traditionally cause the most trouble for Linux users. The Broadcom problem is often solved by installing the package bcmwl-kernel-source, but sometimes you need to disable the built-in driver bcma or b43, which conflicts with the proprietary one. For this, a configuration file is created in /etc/modprobe.d/ with blacklist rules.

With devices Realtek The situation is more varied. Many modern laptops use the RTL8821CE card, which is known for its instability in Linux. It often requires cloning a specific GitHub repository, as support in the standard kernel may be limited. It's important to monitor the log messages. dmesg immediately after attempting to connect to see if the device drops out or simply cannot obtain an IP address.

Chip model Typical package/solution Support status
Broadcom BCM43xx bcmwl-kernel-source Stable (proprietary)
Realtek RTL8821CE Compiling from GitHub Requires manual installation
Intel AX200/AX210 firmware-iwlwifi Excellent (in the core)
Realtek RTL8723DE firmware-realtek Good

If the network appears after installing the driver but keeps dropping out, try changing the power saving settings. Linux tends to conserve power by default, which can cause the Wi-Fi module to turn off when idle. Disabling this feature often stabilizes the connection.

Actions when there is no internet access

A classic dilemma: you need a driver for the internet, but you need the internet to download the driver. In this situation, a smartphone comes to the rescue. Connect your Android smartphone to your computer via a USB cable, enable "Tethering & Modem" in the phone's settings, and select "USB Modem." Linux Mint will automatically recognize it as a wired Ethernet connection, and you'll have internet access.

If USB modding isn't possible, you'll need to use another computer to download the necessary packages (.deb files) and then transfer them via USB. You'll need to download not only the driver itself but also any dependencies that may be required for installation. This can be a labor-intensive process, as you'll need to manually manage dependencies.

An alternative option is to use a Live USB with a newer version of Linux Mint or another distribution (such as Fedora) that already has the driver built in. In this case, you can mount the main partition and copy the necessary firmware files or kernel modules to the running system.

⚠️ Warning: When downloading packages manually, ensure that the distribution version (e.g., Mint 21.3 Vanessa) and architecture (amd64) match your system. Installing packages from a different version may break dependencies and cause system instability.

After connecting via USB modem, do not forget to perform sudo apt update, so that the system knows about the new sources, and then proceed to install the drivers in the standard way described above.

📊 What is your Wi-Fi adapter chipset?
Intel: Works immediately
Broadcom: Proprietary driver required
Realtek: Always dancing with a tambourine
I don't know, I need to look
Another manufacturer

☑️ Driver installation checklist

Completed: 0 / 6

Frequently Asked Questions (FAQ)

Why did Wi-Fi stop working after a system update?

Most likely, the Linux kernel was updated, and the driver you installed manually (by compiling) wasn't rebuilt for the new version. You need to rerun the driver installation procedure or check the status of the DKMS service. If DKMS wasn't configured, the module is simply missing from the new kernel version.

How to roll back a driver if the system won't boot?

When booting your computer, select the "Advanced options for Linux Mint" menu in GRUB and run the previous kernel version that supported Wi-Fi. After booting, remove the problematic driver or undo any changes to the configuration files that caused the crash.

Is it possible to use Windows drivers in Linux?

Directly, no. Windows drivers (.sys files) are not compatible with the Linux kernel. However, there is a project ndiswrapper, which allows you to run some Windows drivers on Linux, but this is considered an outdated method, unstable, and only works with very old cards. For modern hardware, it's better to look for a native driver.

Where can I view Wi-Fi error logs?

The main source of information is the team dmesg | grep -i firmware or dmesg | grep -i wifi. Also useful file /var/log/syslog, where is the network manager NetworkManager Describes in detail the connection attempt process and the reasons for refusal.

Setting up Wi-Fi in Linux Mint may seem complicated at first glance. Understanding how drivers work and using the terminal gives you complete control over your network connection. In most cases, installing a single package or updating the kernel resolves the issue. We hope these instructions have helped you restore fast and stable network access.