How to Enable Wi-Fi on Linux Manjaro: A Step-by-Step Guide

operating system Manjaro Linux Manjaro is renowned for its friendliness for newcomers coming from the Windows world, but setting up wireless networks can sometimes be a challenge. Unlike some other distributions, Manjaro doesn't always include proprietary drivers for all Wi-Fi adapter models by default, requiring additional steps. Understanding Linux network architecture will help you quickly get online and enjoy a stable connection.

The process of enabling the wireless module may vary depending on the desktop environment you are using, whether it is KDE Plasma, GNOME or XFCEIn most cases, the system automatically detects the hardware, but there are situations where manual intervention via the terminal or installation of specific packages is required. We'll cover all the main methods, from graphical interfaces to the command line.

Before attempting any complex manipulations, it's worth checking the basic settings to ensure that the problem lies with the software and not the physical switch. Hardware unit This feature is often overlooked, especially on laptops, where a key combination can disable the module at the BIOS or controller level. Let's take a closer look at all the nuances of activating the connection.

Hardware diagnostics and driver testing

The first step before any configuration is to accurately determine the model of your network adapter. Linux has a powerful tool for this. lspci for cards installed in slots, and lsusb For external USB dongles. Running these commands in the terminal will provide the device IDs needed to search the repositories for the appropriate driver.

lspci -k | grep -A 3 -i network

If the above command doesn't produce any results, try checking your USB devices, as many modern laptops use internal modules identified as USB devices. The command output will show the vendor ID and product ID, which can be used to find information on specialized forums or in the kernel.org database. No output may indicate that the device is disabled at the BIOS level or is physically faulty.

For a more in-depth analysis, you can use the utility inxi, which is often pre-installed on Manjaro. It provides a summary of system information in a readable format. If you see that a driver is not loaded (field driver empty or specified N/A), which means manual installation of packages will be required.

⚠️ Attention: If you are using a laptop with hybrid graphics or a complex power saving system, make sure that the Wi-Fi module is not blocked by the function rfkill due to airplane mode.

Users often forget that some adapters, especially Broadcom and Realtek, require additional kernel header packages to function. This is easily resolved in Manjaro using a utility. mhwd and package managers. It is important to understand which kernel (kernel) is now active to set the appropriate headers linux-headers.

How to find out the kernel version?

In the terminal, enter the command `uname -r`. This will display the currently running kernel version, which is critical for installing the correct headers and drivers.

Using the NetworkManager GUI

Most modern Manjaro builds use a network manager by default. NetworkManager, which provides a convenient graphical interface for managing connections. Depending on your desktop environment, the network icon may be located in the system tray or notification center. Clicking it usually opens a list of available wireless networks.

If the interface shows Wi-Fi is off, try switching the slider to the on position. Sometimes the system may require you to enter your user password to confirm changes to network settings. If enabled, the list of available access points will update automatically, and you can select the desired network.

  • 📡 Click the network icon in the tray and select "Turn on Wi-Fi" from the drop-down menu.
  • 🔐 Enter the password for your access point in the dialog box that appears.
  • ⚙️ Check your IPv4 settings if automatic address acquisition (DHCP) does not work.

For more detailed configuration, you can access the network settings through the system environment settings. There, you can set a static IP address, manually enter DNS servers, or configure a proxy server. This is especially useful for corporate networks or providers that require specific configurations.

📊 Which interface do you prefer for network configuration?
Graphical (GUI)
Terminal (CLI)
Automatic script
I don't care

Activating Wi-Fi via the terminal using nmcli

For command line lovers or situations where the graphical interface is unresponsive, the utility is ideal nmcli (Network Manager Command Line Interface). It allows you to manage all aspects of NetworkManager without having to restart services or use complex configuration files. powerful tool, which should be in the arsenal of any administrator.

To enable a wireless interface, you first need to know its name. Typically, it is wlo1, wlan0 or similar designation. Once the device name is obtained, the enable command can be executed. If the interface was locked programmatically, this command will unlock it.

nmcli radio wifi on

nmcli device wifi connect "Network_Name" password "Your_Password"

It's important to note that when entering a password in the command line, it may appear in cleartext in the command history unless special flags are used. For security, it's best to enter the password through an interactive prompt or use secure keystores. Security Data security in Linux relies on the user's attention to the commands they enter.

⚠️ Attention: When using commands with passwords in the terminal, make sure there are no strangers nearby who can see the screen, or use hidden character input.

If the connection is not established the first time, check the device status with the command nmcli device statusIt will show the interface's status: connected, disconnected, or unavailable. This will help quickly diagnose the problem, whether it's an incorrect password or a weak signal.

Installing drivers for Broadcom and Realtek

Driver problems most often occur among owners of adapters from companies Broadcom And RealtekManjaro has a convenient mechanism for installing drivers via a utility. mhwd (Manjaro Hardware Detection). This tool automatically detects your hardware and offers to install the necessary packages from the official repositories.

To get started with mhwd You need to run a system scan. The utility will analyze the connected hardware and provide a list of recommended drivers. Free drivers are usually available for wireless cards (free) and unfree (non-free) drivers. The choice depends on the specific chipset model.

  • 🔍 Run the scan: mhwd -l for a list of available drivers.
  • 📥 Install the driver: sudo mhwd -a pci nonfree 0300 (example for video, for Wi-Fi use the appropriate class).
  • 🔄 Reboot your system to apply the changes.

In some cases, especially with newer laptop models, drivers may be included in the package linux-firmwareMake sure this package is updated to the latest version. Manjaro frequently releases kernel updates that include support for new hardware, so keeping your system up to date is the best way to prevent problems.

☑️ Check before installing drivers

Completed: 0 / 4

Please remember that installing drivers from third-party sources (AUR) can lead to system instability when updating the kernel. Always use the official Manjaro repositories first. If the driver you need isn't available in the official sources, check the community forum for compatibility information with the current kernel version.

Managing the radio module state via rfkill

Tool rfkill designed to control wireless communication devices that support the standard RF KillIt allows you to lock and unlock radio modules using software and hardware. This is often necessary when the system "thinks" Wi-Fi is off, even though the switch is enabled in the graphical interface.

Running the command rfkill list will display a list of all wireless devices and their current status. You'll see two types of blocking: Soft blocked (software) and Hard blocked (Hardware). A software lock can be removed with a command, while a hardware lock requires a physical action, such as pressing a button on the laptop.

rfkill list all

sudo rfkill unblock wifi

If you see the "Hard blocked: yes" status, no software methods will enable Wi-Fi unless you change the physical switch position or disable airplane mode in the BIOS. This is a protective mechanism that prevents Wi-Fi from being transmitted in areas where it is prohibited.

Sometimes, a module becomes stuck in a locked state even after a reboot. In such cases, a full system reboot (shutdown and power-on) rather than a simple restart helps. This allows the power controller to completely reset the device.

Setting up a static IP and DNS in Manjaro

In some network environments, especially in offices or when using specific ISPs, automatic DHCP address acquisition may not work correctly. In this case, manual registration is required. static IP address and DNS servers. This can also speed up network response times if you're using fast public DNS.

Setting up a static address in NetworkManager can be done either through the graphical interface or the terminal. In the GUI, go to the connection properties, select the IPv4 tab, and change the method from "Automatic" to "Manual." Here, you enter the address, mask, gateway, and DNS.

Parameter Meaning (Example) Description
Address 192.168.1.50 The unique address of a device on the network
Netmask 255.255.255.0 Subnet mask
Gateway 192.168.1.1 Router (gateway) address
DNS 8.8.8.8, 1.1.1.1 Domain name servers

When using the terminal and nmcli The commands may look more complex, but they give you complete control. You can modify an existing connection by adding parameters. ipv4.addresses, ipv4.gateway And ipv4.dnsAfter changing the settings, the connection must be reconnected.

⚠️ Attention: Make sure that the static IP address you select is not already occupied by another device on the network, otherwise an address conflict will occur and the connection will fail.

For home networks, it's often useful to reserve an address for your Linux computer directly in the router settings (DHCP Reservation). This will keep the computer's IP address automatically assigned, but the address will always be the same, which is convenient for port forwarding or setting up a server.

Solving common connection problems

Even with proper configuration, Wi-Fi may become unstable or constantly disconnect. One common cause is Linux's aggressive power saving policy, which attempts to disable the Wi-Fi module to conserve battery life. This can be fixed by editing the configuration file. /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf.

Change the parameter value wifi.powersave on 2 (which means disabling power saving) and restart the NetworkManager service. Problems may also be related to a conflict between NetworkManager And systemd-networkd, if they try to control the same interface at the same time.

  • 🔋 Disable power saving for Wi-Fi in the NetworkManager config.
  • 🛑 Make sure that you do not have multiple network managers running at the same time.
  • 📡 Check if your Wi-Fi channel is overloaded by neighboring routers.

If all else fails, try temporarily downgrading to an older kernel via the Grub boot menu. New kernels sometimes contain bugs that break certain hardware. Manjaro makes it easy to switch between installed kernel versions, which is a major advantage of the distribution.

Why doesn't Wi-Fi see 5 GHz networks?

Most likely, your driver or region is configured incorrectly. Check your region code with the command iw reg getIf it says "00", set your code (for example, US or RU) with the command sudo iw reg set RUAlso, make sure that the adapter physically supports the 802.11ac/ax standard.

How to reset all network settings in Manjaro?

You can delete the NetworkManager configuration files in the folder /etc/NetworkManager/system-connections/ (after making a backup) and restart the service. This will restore the settings to factory defaults.

Can a Wi-Fi adapter be used as a hotspot?

Yes, NetworkManager supports creating hotspots. In the graphical interface, select "Create a new Wi-Fi network" and select the "Hotspot" type. In the terminal, this can be done via nmcli device wifi hotspot.

What should I do if Wi-Fi disappears after an update?

This is often due to a kernel update that didn't support the headers or drivers. Try booting from the previous kernel via Grub and reinstalling the packages. linux-headers And networkmanager.