You are Here:
Linux Lite 5.0 Final is now available for download and installation



Speed ​​up slow WiFi connection on Ubuntu Linux

Author (Read 1015 times)

0 Members and 5 Guests are viewing this topic.

Speed ​​up slow WiFi connection on Ubuntu Linux
« on: June 16, 2020, 01:09:07 PM »
 

Leonardo Gilberto Muņoz Mendez

  • New to Forums
  • *
  • 17
    Posts
  • Reputation: 1
One of the most common problems you face after installing Ubuntu is the network problem. Sometimes you won't have a wireless network in Ubuntu and sometimes a very slow wireless connection and sometimes it will fluctuate between fast and slow. If you're lucky, it could be fixed by installing proprietary drivers on Ubuntu, but overall, you'll be furious, cursing for a slow or no WiFi connection.

Speed ​​up WiFi on Ubuntu Linux
This article was originally written for Ubuntu 13.04, but is also applicable for troubleshooting slow network issues in Ubuntu 14.04, Ubuntu 14.10, and Linux Mint 17.
In this post, I will only focus on fixing slow WiFi problem in Ubuntu 14.04, Linux Mint and other similar operating systems. This actually consists of several little tricks you can try to get WiFi faster. So, let's see how to fix slow WiFi in Ubuntu:

Solution 1: For slow WiFi on Atheros wireless network adapters
First, you need to find your wireless network adapter. You can do this using the lshw -C network command in the terminal. If your adapter's manufacturer is Atheros, this solution should work for you.
Open a terminal (Ctrl + Alt + T in Ubuntu) and use the following commands one by one:

I sweat his
echo "options ath9k nohwcrypt = 1" >> /etc/modprobe.d/ath9k.conf

This will add the additional line to the configuration file. Restart your computer and you should be ready to go. If it doesn't fix or if you don't have the Atheros WiFi adapter, try other solutions.

Solution 2: disable 802.11n
The next trick is to force disable the 802.11n protocol. Even after so many years, most of the world is running 802.11a, b and g. While 802.11n provides better data rates, not all routers support it, especially older ones. Disabling 802.11n has been observed to help speed up the wireless connection in Ubuntu and other operating systems.

Open terminal and use the following command:

sudo rmmod iwlwif
sudo modprobe iwlwifi 11n_disable = 1
If you don't find a significant increase in wireless connection speed, restart your computer to reverse the changes and forget about this solution. BUT if it worked for you and you now have faster WiFi, you should make the permanent changes using these commands:

I sweat his
echo "options iwlwifi 11n_disable = 1" >> /etc/modprobe.d/iwlwifi.conf

Restart your computer and live your life at full speed.

Important note:
If you are using a version earlier than Ubuntu 12.04, use the above steps with iwlwifire replaced by iwlagn.

Solution 3: fix the bug in Debian Avahi-daemon
The slow WiFi problem in Ubuntu could also be related to a bug in Debian's Avahi-daemon. Ubuntu and many other Linux distributions are based on Debian, so this bug also spreads to these Linux distributions. To correct this error, you must edit the nsswitch configuration file. Open a terminal and use the following command:

sudo gedit /etc/nsswitch.conf
This will open the configuration file in gedit so you can easily edit it in the GUI. Here, look for the following line:

hosts: mdns4_minimal files [NOTFOUND = return] dns mdns4
If you find this file, replace it with the following line:

hosts: dns files
Save it, close it, restart your computer. It should fix the slow wireless connection problem for you. If you don't check the other solution.

Solution 4: disable IPv6 support
Yes, you heard correctly. Let's go back to the previous century and worry about IPv4 just abandoning IPv6 support. It's perfectly fine because IPv6 is still in deployment mode and a significant number of ISPs don't even support it. Also, if it improves WiFi speed, why not, I say. To disable IPv6 support, use the following commands one by one:

I sweat his
echo "#disable ipv6" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf

Restart your computer and it should do the magic. If not, try the following.

Solution 5: leave the default network manager and adopt Wicd
The slow or inconsistent wireless connection, in some cases, is also due to Ubuntu's own default network manager. I'm not sure what causes this, but I've seen people on the Ubuntu forums talking about this issue, especially on Ubuntu 12.04. You can install Wicd, a better alternative network administrator from the Ubuntu Software Center or from the terminal. For details on how to use Wicd, you can read my other article I used to find SSID of wireless networks in Ubuntu.

Solution 6: more power for the wireless adapter
This trick might be outdated and that's why I mentioned it at the end. At the time of Ubuntu 11.04, the Linux Kernel had a power management system. This annoyed some users with its wireless connection speed, as it sent less power to the wireless adapter and therefore affected its performance. As a result, the wireless connection would sometimes be fast and sometimes very slow. While this is likely to be fixed in later Kernels, systems running older Linux Kernel may still face it.
 


Re: Speed ​​up slow WiFi connection on Ubuntu Linux
« Reply #1 on: June 17, 2020, 08:32:56 AM »
 

TheDead

  • Gold Level Poster
  • *******
  • 761
    Posts
  • Country: ca
  • Reputation: 69
  • Linux Lite Worshipper
    • My OpenDesktop Projects

  • Linux Lite: 4.8 64bit

  • CPU: HAL9000

  • MEMORY: 2Gb

  • VIDEO CARD: Quantum State VR v.3

  • Kernel: 4.x
Hi!

Have you tried these in version 16.04 and up?
Your text seems to point 14.04 and less which are not supported anymore.
Unless this relates to really old hardware, more recent versions are recommended.

In Linux Lite terms :
Linux Lite 2.x is based on Ubuntu 14.04 LTS (support has ended)
Linux Lite 3.x is based on Ubuntu 16.04 LTS (LTS/Security updates until April 2021)
Linux Lite 4.x is based on Ubuntu 18.04 LTS (LTS/Security updates until April 2023, 64bits only)
Linux Lite 5.x is based on Ubuntu 20.04 LTS (current fully supported release, 64bits only)
Last Edit: June 17, 2020, 08:35:36 AM by TheDead
- TheDead (TheUxNo0b)

If my blabbering was helpful, please click my [Thank] link.
 

Re: Speed ​​up slow WiFi connection on Ubuntu Linux
« Reply #2 on: June 17, 2020, 09:09:20 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1147
    Posts
  • Country: us
  • Reputation: 187
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 5.0 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D

  • Kernel: 5.x
Actually all of these "solutions" are dated and/or not applicable at all to Linux Lite 3.x and up. I wouldn't recommend any of them and 3, 4, 5 & 6 could actually harm your system.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Speed ​​up slow WiFi connection on Ubuntu Linux
« Reply #3 on: June 17, 2020, 09:55:37 AM »
 

Moltke

  • Gold Level Poster
  • *******
  • 711
    Posts
  • Country: ve
  • Reputation: 84
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
Actually all of these "solutions" are dated and/or not applicable at all to Linux Lite 3.x and up. I wouldn't recommend any of them and 3, 4, 5 & 6 could actually harm your system.

TC

Actually, he just copied/pasted this article https://itsfoss.com/speed-up-slow-wifi-connection-ubuntu/  he never mentioned he did though.
Last Edit: June 17, 2020, 10:16:54 AM by Moltke
Without each others help there ain't no hope for us :)
 

Re: Speed ​​up slow WiFi connection on Ubuntu Linux
« Reply #4 on: June 17, 2020, 12:09:23 PM »
 

Leonardo Gilberto Muņoz Mendez

  • New to Forums
  • *
  • 17
    Posts
  • Reputation: 1
Godd Morning I use this things whith a Distribution Xubuntu 18.04 in my brothers Netbook Intel Atom N455 whith the Intel Centrino Wireless Card N100 and apply to all Centrino cards.

I expose here this solution if there are any person have this problems.

All this cards have problems whith the Kernels 4 and 5
 


Tags:
 


Linux Lite 5.0 Final is now available for download and installation