In this article, we will be discussing how to troubleshoot and resolve Wi-Fi dropout issues in Ubuntu 18.04. This guide is intended for users who have experienced frequent disconnections from their Wi-Fi network after upgrading to Ubuntu 18.04.
Understanding the Problem
Wi-Fi dropout issues can be quite frustrating, especially when you’re in the middle of important work. The problem can occur on different Wi-Fi networks and persist even after changing the wireless card. In some cases, you might find a timeout error message in your Wi-Fi logs.
How to Troubleshoot and Fix the Issue
Here are some steps you can take to debug and resolve the network access dropout issue:
1. Disable Wi-Fi Powersave
Wi-Fi powersave is a feature that can cause disconnections when it’s not working properly. To disable it, you will need to modify a configuration file. Open the terminal and type the following command:
sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
This command opens the configuration file in a text editor. Look for the line that says
wifi.powersave and change its value to 2. This will disable the Wi-Fi powersave feature.
2. Check DNS Settings
Incorrect DNS settings can cause network issues. You should ensure that your DNS settings are correctly configured. To do this, open the
/etc/resolv.conf file by typing the following command in the terminal:
sudo nano /etc/resolv.conf
Make sure that the DNS server specified in this file is correct. If you’re not sure what to put here, you can use Google’s public DNS servers: 220.127.116.11 and 18.104.22.168.
3. Check Router Settings
Your router’s settings could also be causing the problem. Ensure that it is not set to use mixed mode (WPA and WPA2) or TKIP. Instead, set it to use WPA2-AES. Additionally, check the channel settings and consider using a fixed channel (1, 6, or 11) instead of automatic channel selection.
4. Set Regulatory Domain
The regulatory domain setting of your wireless interface can affect its performance. You can check this setting using the command:
sudo iw reg get
If the output shows “00,” set it explicitly to your country code using the following command:
sudo iw reg set US
In this command, replace “US” with your country’s code. You can make this setting permanent by editing the
5. Check MTU Settings
The MTU (Maximum Transmission Unit) setting of your Wi-Fi interface could be causing the dropout issue. The default MTU for Wi-Fi is 1492. You can check the current MTU setting using the command:
ip link show wlan0
This command displays information about the
wlan0 interface, including its MTU setting. If necessary, you can change the MTU using the following command:
sudo ip link set dev wlan0 mtu 1492
6. Update Kernel
If you have a Qualcomm Atheros AR93xx or AR94xx network controller, updating the kernel to version 5.17.5 or newer may resolve the issue. You can check your current kernel version using the command:
If necessary, you can update the kernel using the standard software update process in Ubuntu.
7. Check for Added Routes
In the network settings, check the IPv4 and IPv6 tabs for any added routes. If there are any routes, try deleting them. This can be done through the Network Manager GUI.
Troubleshooting Wi-Fi dropout issues in Ubuntu 18.04 can be a complex process, but with patience and a systematic approach, you can identify and resolve the problem. Remember to carefully read the logs using the
journalctl command to understand the behavior of Network Manager and identify any unusual messages or events that may help in debugging the issue. Good luck!
To open the terminal in Ubuntu 18.04, you can press
Ctrl+Alt+T on your keyboard. This will open a new terminal window.
To modify a configuration file in Ubuntu, you can use a text editor like
vi. In the terminal, you can open the file with the command
sudo nano /path/to/file.conf. This will open the file in the
nano text editor, where you can make the necessary changes. Press
Ctrl+X to exit
nano and save the changes when prompted.
To check your current kernel version in Ubuntu, you can open the terminal and run the command
uname -r. This will display the kernel version installed on your system.
To update the kernel in Ubuntu, you can use the standard software update process. Open the terminal and run the command
sudo apt update to update the package lists. Then run
sudo apt upgrade to upgrade the installed packages, including the kernel if an update is available. You may need to restart your system after the update for the new kernel to take effect.