operating system Linux Mint While deservedly considered one of the most user-friendly distributions for users switching from Windows, setting up a wireless connection can be the first significant challenge. Unlike proprietary systems, where drivers are often built in by default, in the open source world, manual intervention is sometimes required to activate. Wi-Fi adapterThis is especially relevant for owners of laptops with Broadcom chips or specific Realtek models that are not supported by the kernel out of the box.
The process of connecting to the internet varies depending on your hardware and the distribution version, whether it's Cinnamon, MATE, or Xfce. You'll need to navigate driver managers, check the status of network services, and possibly manually edit configuration files. Understanding these mechanisms will allow you not only to access the network but also to accurately diagnose future issues, ensuring stable work systems.
In this article, we'll cover every step in detail: from initial diagnostics to fine-tuning power-saving settings. We'll cover both graphical tools accessible to beginners and powerful console utilities for advanced users. Being comfortable with the terminal will significantly simplify the process, especially if the network's graphical interface isn't responding correctly.
⚠️ Attention: Before making changes to system network configuration files, it is strongly recommended to create a restore point or backup important data, as an error in command syntax may result in temporary loss of network access.
Diagnosing and identifying the network adapter
The first step before doing any driver installation or changing settings is to accurately identify your wireless moduleLinux Mint has powerful built-in tools for collecting hardware information, allowing you to find out the chip manufacturer and model without installing additional software. This is critical, as drivers are selected specifically for a specific device.
To get a detailed list of connected equipment, use the utility lshw, which provides a structured report on all computer components. Enter the command in the terminal to see detailed information about network interfaces, including their status (enabled/disabled) and the driver used.
sudo lshw -C network
In the command output, pay attention to the lines description And product, where the model name will be indicated, for example, Realtek RTL8821CE or Intel Wireless 8265. The parameter is also important configuration, which will show whether the driver is loaded (driver=iwlwifi) and whether the interface is active. If instead of the driver name you see UNCLAIMED, this means that the system sees the device, but does not have the software to work with it.
An alternative and faster way is to use the command lspci for internal cards or lsusb for USB dongles. These commands produce a compact list of hardware identifiers that can be used to search for solutions online if standard methods fail.
lspci -knn | grep -iA2 net
After running this command, you will see a list of network cards with their kernel modules (Kernel driver in use). If the module is listed, basic support is present in the kernel. If the line is empty or contains a message about the missing driver, manual installation of proprietary software or compilation of modules from source code will be required.
- 🔍 Use
sudo lshw -C networkto get a complete report on the status of all network interfaces. - 🆔 Team
lspci -knnhelps you quickly find the device ID and the name of the kernel driver being used. - 📡 For USB adapters, always use the command
lsusb, since they are not detected via the PCI bus. - ⚙️ Pay attention to the status
UNCLAIMED- this is the main indicator of the absence of a driver.
Installing drivers via a graphical interface
Linux Mint is renowned for its user-friendly graphical environment, which allows you to perform most hardware configuration tasks without having to delve into the command line. It uses a built-in tool for managing device drivers. Driver Manager (Driver Manager) that automatically scans your system for hardware that requires proprietary software.
To run the scan, open the main menu, search for "Drivers," and select the appropriate option. The system will prompt you for an administrator password, after which it will begin analyzing your hardware and comparing your installed versions with those available in the repositories. This process may take several minutes, especially if you have many peripherals installed.
If alternative drivers exist for your Wi-Fi adapter, they will be listed with recommendations. Typically labeled as (recommended) These options are the most stable and tested by the distribution's developers. All you have to do is select the desired option, click "Apply changes," and wait for the installation to complete.
⚠️ Attention: After installing the drivers through the GUI, be sure to perform a full system reboot, not just log out, so that the new kernel module is properly initialized.
In some cases, especially for very new or rare adapter models, the graphical utility may report that no additional drivers are required, even though Wi-Fi isn't working. This means the required driver is either already built into the kernel (but isn't automatically activated) or isn't in the official Mint repositories, requiring a terminal command for manual installation.
- 💻 Open "Driver Manager" from the system menu to automatically search for software.
- ✅ Select options marked recommended for maximum compatibility.
- 🔄 Always restart your computer after installing or updating device drivers.
- 🚫 If the driver manager is empty, this does not always mean there are no drivers - manual installation is possible.
Troubleshooting Broadcom and Realtek Drivers
The most common wireless connection issues in Linux Mint occur with chips from companies Broadcom And RealtekWhile Intel adapters typically work out of the box, these manufacturers often use proprietary firmware or require compiling DKMS modules, which can be confusing for inexperienced users.
For Broadcom devices, the situation is often resolved by installing the package bcmwl-kernel-sourceHowever, since it requires internet access to download, this creates a vicious circle. The solution is to temporarily connect via an Ethernet cable or use a USB modem from an Android smartphone in tethering mode, after which you can install it via the terminal.
sudo apt update
sudo apt install bcmwl-kernel-source
With Realtek adapters, especially the RTL88xx series, the situation is more complicated. Often, the standard driver rtl8821ce-dkms It's available in the repositories, but for the latest models, you may need to clone the repository from GitHub and compile it manually. Make sure you have the kernel headers and compiler tools installed.
sudo apt install git dkms build-essential linux-headers-$(uname -r)git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh
After running the installation script, the module will be built for the current kernel version. It's important to understand that if you update the system kernel, you may need to repeat the procedure if the package isn't automatically updated from the repositories. To verify that the module was successfully downloaded, use the command lsmod | grep rtl or lsmod | grep brcm depending on the manufacturer.
What should I do if driver compilation fails?
If you receive an error when running the installation script, check that the kernel header version matches the version of the running kernel. Installing the package often resolves the issue. linux-headers-generic and reboot before trying to compile again.
Setting up a Wi-Fi connection via NetworkManager
The service responsible for managing network connections in Linux Mint is NetworkManager, which has both a graphical applet in the system tray and a console utility nmcliFor most users, the graphical interface is sufficient: click the network icon, select your access point's SSID, and enter the password. However, diagnostics and fine-tuning require a more in-depth approach.
The graphical interface allows you to configure a static IP address, DNS servers, and proxy settings. To do this, go to the network settings, select your connection, and open the IPv4 tab. Here, you can switch the method from "Automatic (DHCP)" to "Manual" and enter the required addresses, which is often required on corporate networks or with specific router configurations.
For command line users or for situations where the GUI freezes, this is an indispensable tool. nmcliIt allows you to scan networks, connect to them, and manage adapter status without restarting the service. For example, the command to enable Wi-Fi looks like this: nmcli radio wifi on, and to scan available points - nmcli dev wifi list.
nmcli dev wifi connect "SSID_network" password "Your_password"
Sometimes you need to forget a network that has stopped connecting due to changed security settings. In the graphical interface, this is done using the "Forget network" button in the connection properties, and in the terminal, using the command nmcli con delete "ProfileName"This clears saved configurations and allows you to create a new connection from scratch.
- 📡 The NetworkManager graphical applet is convenient for quickly connecting to known networks.
- ⚙️ Static IP and DNS are configured in the IPv4 connection properties.
- 💻 Utility
nmcliAllows you to manage the network completely through the terminal. - 🗑️ Using the "Forget Network" feature helps resolve configuration errors.
☑️ What to do if there is no Wi-Fi
Configuration via terminal and Netplan
In newer versions of Linux Mint based on recent Ubuntu kernels, low-level network management is increasingly being handled by the backend. NetplanWhile the graphical interface is still used for day-to-day tasks, Netplan's configuration files may override settings or require editing if DHCP issues occur.
Netplan configuration files are located in the directory /etc/netplan/ and have an extension .yamlYAML syntax is indentation-sensitive, so care must be taken when editing. The file is typically called 01-network-manager-all.yaml or something similar, and it specifies the use of NetworkManager as a renderer.
network:version: 2
renderer: NetworkManager
If you need to set a static IP address via the terminal, you can edit this file by adding a section ethernets or wifis with the appropriate parameters addresses, gateway4, and nameservers. After making changes, the configuration is applied with the command sudo netplan apply.
It is also worth mentioning the classic method of editing a file /etc/network/interfaces, which is still used in some scenarios, although it is considered deprecated for desktop versions. If your Wi-Fi isn't working, check if your interface is listed there with the parameter auto or iface, which may conflict with NetworkManager.
⚠️ Attention: When editing Netplan YAML files, use only spaces for indentation, tabs are not allowed and will cause syntax errors when applying the configuration.
To diagnose network problems at the TCP/IP protocol level, use utilities ping, traceroute And digThey will help determine where exactly the connection is broken: at the physical connection level, routing, or DNS name resolution.
- 📄 Netplan configuration files are located in
/etc/netplan/. - ⚠️ YAML syntax requires strict indentation (spaces only).
- 🔄 Apply the changes with the command
sudo netplan apply. - 🔍 Check it out
/etc/network/interfacesfor conflicts with NetworkManager.
Optimizing energy saving and stability
One of the common reasons for unstable Wi-Fi on Linux Mint laptops is an aggressive policy energy savingThe system may attempt to disable the wireless adapter to save battery power, resulting in disconnected connections or an inability to connect after waking from sleep mode.
To disable this feature, you can create a configuration file for NetworkManager. Create the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and configure it to disable power saving mode. This often solves the problem of Wi-Fi dropping out.
[connection]
wifi.powersave = 2
Meaning 2 means turning off power saving (meaning 3 — enabled). After creating or modifying the file, you must restart the NetworkManager service with the command sudo systemctl restart NetworkManagerThe changes will take effect immediately and will persist after a reboot.
It's also worth paying attention to your router settings. Using the 5 GHz band instead of 2.4 GHz can significantly improve stability and speed if your adapter supports the standards. 802.11ac or axIt is also recommended to lock the broadcast channel in the router settings to avoid switching to more congested frequencies.
| Parameter | Value for disable | Default value | Description |
|---|---|---|---|
| wifi.powersave | 2 | 3 | Controls Wi-Fi power saving mode |
| ipv6.method | ignore | auto | Disabling IPv6 if your ISP doesn't support it |
| mtu | 1500 | auto | Maximum package size (standard) |
| dns-priority | -100 | 0 | Connection DNS server priority |
The Impact of IPv6 on Connection Speed
In some cases, if your ISP has incorrectly configured IPv6 support, the system may take a long time to establish a connection via this protocol before falling back to IPv4. Disabling IPv6 in your connection settings can speed up webpage loading.
Frequently Asked Questions (FAQ)
Why doesn't Linux Mint see my Wi-Fi adapter?
Most likely, your device is missing kernel drivers. Check the command output. lspci -knnIf the device is marked as UNCLAIMED, find the chip model and look for instructions on installing drivers (often this requires compiling DKMS or connecting via Ethernet to download packages).
How to reset all network settings in Linux Mint?
To reset NetworkManager settings, you can delete the connection configuration files in the folder /etc/NetworkManager/system-connections/Clearing the network cache will also help. Afterwards, you'll need to restart the service. sudo systemctl restart NetworkManager.
Is it possible to share Wi-Fi from a Linux Mint laptop?
Yes, there's a "Hotspot" tab in the Network Settings. You can create a virtual hotspot through which other devices can connect to the internet if your primary adapter is connected via cable or Wi-Fi (the adapter must support these modes).
Wi-Fi is slow, even though the signal is strong. What's wrong?
This could be due to channel interference (try changing the channel on your router), an outdated security standard (use WPA2/WPA3), enabled adapter power saving, or DNS issues. Try entering a public DNS (e.g., Google 8.8.8.8) in your connection settings.
Do I need to install drivers manually after every system update?
If you installed drivers through repositories (packages .deb (or DKMS), they should be updated automatically along with the system. If you compiled the driver manually from source code without DKMS, you'll have to repeat the process after updating the kernel.