operating system Ubuntu While Linux is renowned for its stability and security, setting up a wireless connection can sometimes be challenging for beginners. Unlike Windows, where drivers are often installed automatically from large databases of manufacturers, in Linux distributions this process may require manual intervention. This is especially true for owners of laptops with the latest network adapters or specific chipsets. Broadcom And Realtek.
Enabling WiFi in Ubuntu isn't just a matter of pressing a button, but a complex process that can range from simply toggling a switch in the interface to installing proprietary drivers via the terminal. Modern versions of the distribution, such as 22.04 LTS and 24.04 Noble Numbat, have significantly simplified user experience by introducing an improved network manager. NetworkManagerHowever, understanding the processes is necessary for troubleshooting.
In this article, we'll cover all possible scenarios: from simple module activation to complex cases where there's no internet connection for installing drivers. You'll learn how to use the graphical interface, command line, and diagnostic utilities. Important It is important to understand that a successful connection depends on the correct operation of the system kernel and the availability of free drivers in the repositories.
Physical condition check and switches
Before delving into software settings and the command line, it's important to rule out hardware causes for the connection failure. On many laptops, especially business series Lenovo ThinkPad or Dell Latitude, there is a physical switch or key combination to disable radio interfaces. In Ubuntu, the state of this switch is read by the system. rfkill, which blocks the operation of the module at a low level.
If you press a key combination (often this is Fn + F2 (or the key with the antenna icon), the system will send a signal to the kernel to power down the WiFi adapter. In the graphical interface, this may be displayed as a gray, inactive network icon. Sometimes users forget about Airplane mode, which may have been activated accidentally. Check the top taskbar: if the network icon is crossed out or missing, the problem is most likely a blocked network.
⚠️ Attention: If the WiFi indicator on your laptop is orange, it often means that there is a software blockage through rfkillPhysically turning off the adapter's power in the BIOS can also result in the system not recognizing the device at all.
A command line utility is ideal for detailed diagnostics of blocking status. It will show whether the adapter is blocked by software (Soft block) or hardware (Hard block). Launch the terminal and enter the command:
rfkill list all
In the output you will see a list of devices. If opposite wireless LAN is worth the value yes in the column Soft blocked, which means the module is blocked by software. To unblock it, simply run the command sudo rfkill unblock wifiThe situation with Hard blocked More complicated: this means that the switch on the case is in the "Off" position, and no software methods will help until you physically switch it.
Activating WiFi via the GNOME graphical interface
Most standard Ubuntu builds use the desktop environment GNOME, which provides an intuitive interface for managing networks. If your drivers are installed correctly and the module isn't blocked, enabling WiFi will take a few seconds. On the right side of the top panel (System Tray) is the network icon, typically a fan-shaped symbol or two computers.
Clicking this icon opens the quick settings menu. Here you will see the toggle Wi-FiIf it's disabled, simply click it to enable it. The system will immediately begin scanning for available access points. The list is sorted by signal strength, and secured networks are marked with a lock icon. To connect to your home network, simply select it from the list and enter the WPA2/WPA3 security password.
Sometimes a menu toggle is missing or inactive. This may indicate a missing management interface or a service conflict. In such cases, it's helpful to restart the network service without rebooting the entire system. This can be done via the terminal, which often resolves minor interface glitches:
sudo systemctl restart NetworkManager
After restarting the service, the icon should appear and the list of networks should refresh. If you're using a laptop with two antennas (2.4 GHz and 5 GHz), Ubuntu may display the same network twice. It's recommended to select the 5 GHz network for faster speeds if you're close to the router, as this band has less noise.
Diagnostics and driver installation via the terminal
The most common reason for non-working WiFi in Ubuntu is the lack of proprietary drivers. The Linux kernel contains many open-source drivers, but some manufacturers, such as Broadcom, source code, requiring the use of closed binaries. Ubuntu provides a convenient mechanism for searching and installing such drivers via a utility. Additional Drivers.
First, you need to determine the model of your network adapter. The command lspci for internal cards or lsusb For USB adapters, it will list the connected hardware. Find the line containing the words Network controller or Wireless. Remember the device ID, for example, 14e4:43b1This information is critical to finding the correct driver package.
If you have access to an Ethernet cable or share your phone's internet connection via a USB modem, the installation process will be automatic. Open the app. Software & Updates (Programs and updates) and go to the tab Additional DriversThe system will scan your hardware and offer to install the recommended driver. Select it and click Apply Changes.
In situations where the graphical interface does not offer solutions, you can use the terminal. Utility ubuntu-drivers will automatically select the necessary packages. Run the command:
sudo ubuntu-drivers autoinstall
After installation is complete, be sure to reboot your computer. The kernel should pick up the new module, and the WiFi adapter will be available for configuration. If automatic installation doesn't work, your adapter may be too new and requires manual driver compilation from source, which is a more complex procedure.
☑️ Driver diagnostics
Solving problems with Broadcom and Realtek
Devices from the company Broadcom are historically the most problematic in the Linux environment. They often require a package bcmwl-kernel-sourceThe problem is compounded by the fact that installing this package requires internet access, which you don't have due to your WiFi not working. It's a classic "chicken and egg" problem. The solution is to connect via cable or use your smartphone as a USB modem (RNDIS mode).
For adapters Realtek, especially for RTL88xx series models, the situation may be different. Often, the Ubuntu repositories already contain a driver. rtlwifi-new-dkms, but it may not be supported by the new kernel. In such cases, enthusiasts post updated versions on GitHub. Installation may require a compiler. build-essential and kernel header files linux-headers-generic.
| Manufacturer | Typical driver package | Support status | Necessary actions |
|---|---|---|---|
| Intel | iwlwifi (in the kernel) | Excellent | Usually works out of the box |
| Broadcom | bcmwl-kernel-source | Requires installation | Internet connection required for downloading |
| Realtek | rtlwifi-new-dkms | Average/Good | Manual assembly is possible |
| Qualcomm/Atheros | ath9k / ath10k | Excellent | Works out of the box |
When installing drivers manually, always check that the kernel and driver versions match. System update (sudo apt update && sudo apt upgrade) can sometimes "break" third-party DKMS modules if they haven't been rebuilt for the new kernel version. In this case, restarting the kernel resolves the issue. sudo dpkg-reconfigure for a specific driver package.
⚠️ Attention: When manually downloading drivers from third-party sources (GitHub, forums), always check the author's reputation. Installing unverified code with root privileges can compromise your system's security.
Setting up static IP and DNS servers
After successfully connecting to an access point, you may experience network instability or web pages not opening, even though the connection is active. This is often due to incorrect DHCP settings or issues with the provider's DNS servers. In such cases, manually assigning a static IP address or using a public DNS can help.
To change the settings, go to Settings → Network → Wi-Fi, click on the gear next to your network and select the tab IPv4By default, the mode is set there. Automatic (DHCP)Switch it to Manual, if your router requires hard address binding, or leave Automatic, but enter DNS manually in the field DNSPopular and fast servers are 8.8.8.8 (Google) and 1.1.1.1 (Cloudflare).
If you prefer the terminal, editing the configuration is possible through the utility nmcli (NetworkManager command line interface). This is a powerful tool that allows you to manage all aspects of your network. For example, to change the DNS for a specific connection, use the command:
nmcli con mod"Connection_Name" ipv4.dns"8.8.8.8 1.1.1.1"
After changing the settings, you need to restart the connection with the command nmcli con up"Connection_Name"Using reliable DNS servers not only speeds up website loading, but can also help bypass some types of ISP blocking related to domain name resolution.
Why change MTU?
Sometimes data packets are lost due to an incorrect MTU (Maximum Transmission Unit) size. If websites load intermittently, try reducing the MTU to 1400 in your IPv4 settings. The default value is 1500.
Hidden networks and connection profile management
In corporate networks or to enhance home network security, administrators often hide the SSID (network name). In Ubuntu, connecting to such a network requires manually creating a new profile. In the graphical interface, when you select "Connect to Hidden Network...," the system prompts you for the network name (SSID), security type (usually WPA2 Personal), and password.
It is important to strictly adhere to the letter case when entering the hidden network name, as SSID The address is case-sensitive. If you misspell a single letter, the connection will fail. Also, keep in mind that hidden networks don't broadcast their presence, so your laptop will constantly send requests to search for the network, which may slightly increase power consumption.
It is convenient to manage saved profiles through the terminal, especially if you need to delete an old profile with a changed password. Command nmcli connection will display a list of all known networks. To delete an unnecessary profile, use:
nmcli connection delete "Old_Network_Name"
This is useful if you've changed your router, but it's broadcasting a network with the same name and the security settings have changed. The old profile may conflict with the new one, preventing successful authorization. Clearing the list of known networks is a good step when troubleshooting connection issues.
Frequently Asked Questions (FAQ)
Why doesn't Ubuntu see my WiFi adapter after updating the system?
Updating the Linux kernel may have caused a proprietary driver (for example, for Broadcom) to not be automatically rebuilt for the new kernel version. Try running the command sudo apt install --reinstall bcmwl-kernel-source (or your driver name) and reboot. Also, check if the module was disabled in the BIOS after the reset.
How to enable WiFi in Ubuntu Server without a GUI?
In server versions, the utility is used netplanYou need to edit the configuration file in /etc/netplan/, adding a description of the WiFi connection with the SSID and password, and then apply the changes with the command sudo netplan apply. You can also use nmtui (NetworkManager text interface), if installed.
Is it possible to share WiFi from an Ubuntu laptop?
Yes, it is possible. In the WiFi settings (Settings → Wi-Fi) there is an option Turn On Wi-Fi HotspotHowever, for the hotspot to function, your WiFi adapter must support monitor and injection mode (Master mode). Most modern adapters do, but some older models may not be able to launch the hotspot.
What should I do if my WiFi speed in Ubuntu is significantly slower than in Windows?
Often the problem is in power saving mode. Ubuntu can aggressively reduce the adapter's power. Try disabling power saving for WiFi by adding the following parameter: options iwlwifi 11n_disable=1 (for Intel) in the module configuration file or by changing the settings in /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf, setting the value to 2.