How to Enable WiFi in Xubuntu: A Complete Guide

Modern Linux distributions, such as Xubuntu, often automatically detect wireless adapters immediately after installation. However, if you've just installed the system or updated the kernel, you may encounter a situation where the network icon in the tray is missing or shows the adapter as disabled. This is a common issue and can be resolved by checking the physical switch or software interface lock.

Before moving on to complex configuration methods via the terminal, it is worth making sure that the basic functionality of the equipment is correct. Network adapter It may be blocked at the BIOS level or by a physical switch on the laptop case. It's also worth checking that airplane mode isn't enabled, as it often hijacks wireless module control. In Xubuntu, network management is handled by a daemon. NetworkManager, which requires the correct operation of the drivers.

If simple methods don't help, don't panic. There are many ways to diagnose and fix the problem. In this article, we'll cover both graphical configuration methods and using the command line for a more in-depth analysis. You'll learn how to check the status of locks, install proprietary drivers, and configure a static IP address if necessary.

Checking the physical condition and operating modes

The first step should always be troubleshooting the physical layer. Many laptops are equipped with hardware switches or function keys (usually the Fn + F key combination with an image of an antenna). In Xubuntu, the state of these switches is read by the system and can forcefully disable the WiFi module, even if you try to enable it programmatically.

Check the indicators on the device. If the indicator light is orange or blinking in a specific pattern, this may indicate that the adapter is in sleep mode or locked. In some cases, a reboot with WiFi enabled is required, as the BIOS may only initialize the card during system startup.

⚠️ Attention: Some laptop models (especially Lenovo and HP) have specific power management software that can conflict with Linux drivers. If the keyboard switch isn't responding, try finding the "Wireless Device Control" option in the BIOS and make sure it's set to "Always On."

  • 🔌 Check if the WiFi module is disabled in your computer's BIOS/UEFI.
  • 🔘 Press the Fn key combination + the corresponding button with the network icon.
  • ✈️ Make sure that "Airplane Mode" is disabled in the Xubuntu system tray.
  • 💡 Reboot your router to rule out problems on the access point side.

It's also worth checking your battery status. In some configurations, Xubuntu's power-saving policies may aggressively disable the WiFi module to conserve battery life. Unplug your laptop and see if the adapter's behavior changes. If WiFi reappears when you plug in the charger, the issue is related to power management settings.

Using the Network Manager GUI

Xubuntu uses the lightweight XFCE desktop environment by default, which is tightly integrated with NetworkManagerThis is the basic tool for the average user. If the network icon (usually in the upper right corner of the panel) shows a crossed-out computer or no connections, left-click on it.

In the menu that opens, select "Enable Wi-Fi." If this option is missing or grayed out, it means the system isn't detecting the adapter or it's blocked at a lower level. If the option is enabled but the network won't connect, try deleting the saved network profile and creating it again.

nmcli radio wifi on

This command, which can be run in the terminal, emulates enabling WiFi through the graphical interface. It's often more useful than clicking with a mouse, as it provides an instant response and can bypass some graphical bugs in the XFCE interface. If the tray icon appears after running this command but no networks are found, check to see if your router's SSID is hidden.

📊 Which method of turning on WiFi do you prefer?
Graphical interface (mouse)
Command line (terminal)
Automatic script
I don't need it, I have a cable.

Diagnostics via terminal and rfkill utility

When the graphical interface is silent, the command line comes to the rescue. Utility rfkill is the de facto standard for managing the state of wireless devices in Linux. It displays a list of all radio devices and their blocking status (soft block or hard block).

Open terminal (Ctrl+Alt+T) and enter the command rfkill listYou will see a list of devices such as phy0 or wlan0Pay attention to the "Soft blocked" and "Hard blocked" columns. If "Soft blocked" is "yes," the blocking is software-based and can be easily removed. If "Hard blocked" is "yes," the problem is physical or BIOS-related.

Lock type Meaning Solution
Soft blocked: yes Software blocking Run the rfkill unblock wifi command
Hard blocked: yes Hardware lock Use the switch on the case or BIOS
Soft blocked: no Unlocked There is a problem with the drivers or network settings.
Hard blocked: no No blocking The adapter is ready for use.

To remove the software lock, use the command sudo rfkill unblock wifiThe system will ask for an administrator password. After that, restart rfkill list and verify that the status has changed. If the blocking returns immediately after a reboot, it's possible that a blocking action is specified in the system configuration files.

Installing and updating WiFi drivers

A common reason for lack of WiFi in Xubuntu is the lack of proprietary drivers. Unlike Windows, where drivers are often built into the installer, in Linux, some manufacturers (especially Broadcom and Realtek) require manual installation (firmware). Xubuntu has a convenient tool for this.

Go to the application menu and find "Additional Drivers" (Software & Updates -> Additional Drivers). The system will scan your hardware and suggest available drivers. If you see your adapter listed as "recommended," select it and click "Apply Changes."

☑️ Checking drivers

Completed: 0 / 1

If the automatic search doesn't yield any results, your device may require internet access to download packages. This creates a vicious circle: the driver requires internet access, but the driver requires internet access. The solution is to connect your smartphone via USB and enable USB Tethering in the phone's settings. Xubuntu will recognize this as a wired Ethernet connection.

⚠️ Attention: When installing drivers via the terminal (using the apt install command), make sure the "restricted" and "multiverse" repositories are enabled. Without them, the system will not be able to find proprietary packages, even if you enter the correct package name.

It is also worth checking if there is a conflict with the open driver. nouveau or ath9k with your hardware. In rare cases, temporarily disabling the kernel module via sudo modprobe -r module_name and then reloading it. However, this requires precise knowledge of the chip model.

Setting up static IP and DNS

There are situations where WiFi is enabled and the network is found, but the internet isn't working. This is often a DHCP issue, with the router not assigning an address automatically. In Xubuntu, you can manually configure network settings. This is especially true for office networks or older routers.

To edit settings via the terminal, it is convenient to use the utility nmtui (Network Manager Text User Interface). It provides a pseudo-graphical menu where you can select "Edit a connection," find your WiFi, and access IPv4 settings. Here, you need to switch the method from "Automatic" to "Manual."

sudo nmtui

In manual mode, you'll need to enter the IP address, subnet mask, gateway (usually the router's address, e.g., 192.168.0.1), and DNS servers. Using public DNS servers, such as Google (8.8.8.8) or Cloudflare (1.1.1.1), often resolves issues with slow page loading.

How to find out your gateway and current IP?

If you have access to the command line, enter 'ip addr' to view the current address and 'ip route | grep default' to determine the default gateway. This will help you fill in the fields correctly during manual configuration.

Specific issues with Realtek and Broadcom adapters

Adapters Realtek (especially models RTL8723, RTL8821) and Broadcom (BCM43xx series) are known for being finicky in Linux. They often require drivers from the DKMS repositories, which are rebuilt with every kernel update. If WiFi is lost after a system update, the module's build is likely corrupted.

For Broadcom, the package often helps bcmwl-kernel-source. Its installation is through sudo apt install bcmwl-kernel-source automatically registers the module in the kernel. For Realtek, you sometimes have to download the source code from GitHub and compile it manually if the standard packages firmware-realtek don't help.

  • 📦 For Broadcom, install the package bcmwl-kernel-source.
  • 🛠 For Realtek, look for packages with the prefix firmware-realtek.
  • 🔄 After installing the drivers, be sure to reboot.
  • 📝 Check logs via dmesg | grep firmware for loading errors.

A critical point is the Linux kernel version. New adapters may not work with older kernels, and conversely, very old cards may lose support in newer versions. If a system update broke your WiFi, consider loading an older kernel through the GRUB menu when you boot your computer.

Reset network settings and configuration

If all else fails, NetworkManager's configuration files may be corrupted or contain inconsistent entries. In Xubuntu, you can reset your network settings to factory defaults. This will delete all saved WiFi passwords and VPN settings, but often restores functionality.

Configuration files are stored in the directory /etc/NetworkManager/system-connections/By deleting them (after making a backup), you'll force the system to recreate them. It's also helpful to clear the DHCP client cache, as it may "remember" an old IP address that conflicts with the current network.

sudo systemctl restart NetworkManager

Restarting the NetworkManager service is a safe operation that doesn't require rebooting the entire operating system. It's often used after changing configuration files. If the problem persists, check the file. /etc/network/interfacesIn modern versions of Xubuntu, it should only contain a line for the loopback interface; everything else is managed by NetworkManager.

Frequently Asked Questions (FAQ)

Why did the WiFi icon disappear in Xubuntu after updating?

This is most often caused by a Linux kernel update that is incompatible with your WiFi adapter's current driver. It's also possible that the XFCE interface packages have been updated, causing the network applet to no longer load automatically. Try reinstalling the package. xfce4-notifyd or network-manager-gnome.

How to enable WiFi without GUI (terminal only)?

Use the utility nmcli. Team nmcli radio wifi on Turn on the radio module. To connect to the network, use: nmcli dev wifi connect "Network_Name" password "Your_Password"This completely replaces the graphical interface.

Can antivirus software block WiFi in Xubuntu?

On Linux, antivirus programs (like ClamAV) operate differently than on Windows and almost never interfere with network drivers. Blocking is almost always caused by firewall settings (UFW) or the system kernel itself, not by third-party antivirus software.

What should I do if the adapter is detected as "Unmanaged"?

This means NetworkManager is ignoring the device. Check the file /etc/NetworkManager/NetworkManager.conf. The [main] section must specify managed=true or the line is commented out managed=falseAfter editing the file, you need to restart the service.

Will rolling back drivers help if WiFi stops working?

Yes, if the problem appeared immediately after a system update. You can boot to the previous kernel version via the GRUB (Advanced options for Xubuntu) menu at startup. If WiFi works there, then the new driver in the new kernel contains a bug.