- Speed Up Slow WiFi Connection in Ubuntu Linux
- Solution 1: For Slow WiFi in Atheros Wireless Network Adapters
- Solution 2: Disable 802.11n (works best if you have older router)
- Solution 3: Fix the bug in Debian Avahi-daemon
- Solution 4: Disable IPv6 support
- Solution 5: Ditch default network manager and embrace Wicd (possibly obsolete)
- Solution 6: More power to wireless adaptor (possibly obsolete)
- Did it work for you?
- Linux Mint Forums
- [SOLVED] Extremely Slow WiFi
- [SOLVED] Extremely Slow WiFi
- Низкая скорость WiFi соединения в linux
- вот вывод lspci | grep -ie wifi -ie wireless
- ? lsusb | grep -ie wifi -ie wireless
- lspci -vvvvv | grep Wireless -A 12
- uname -a
- Кстати
- Пробовал
- iwconfig
- с телефоном вот iwconfig
Speed Up Slow WiFi Connection in Ubuntu Linux
Last updated September 3, 2020 By Abhishek Prakash 235 Comments
One of the most common problems faced after installing Ubuntu is the network problem. Some times you will have no wireless network in Ubuntu and some times very slow wireless connection and sometime it will fluctuate between fast and slow.
Monitor your internet speed in Ubuntu first. Is it inconsistent or too slow only on on your Ubuntu Linux system?
If you are lucky, it could be fixed by installing propriety drivers in Ubuntu but generally, you will be left fuming, cursing over slow or no Wi-Fi connection.
In this post, I’ll only focus to fix slow Wi-Fi problem in Ubuntu, Linux Mint and potentially other Ubuntu-based distros. This actually consists of several small tricks that you can try to get faster Wi-Fi.
Let’s see how to fix slow Wi-Fi in Ubuntu:
Solution 1: For Slow WiFi in Atheros Wireless Network Adapters
First, you need to find your wireless network adapter in Linux. You can do so by using the command below in the terminal:
If your adapter 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:
Here, you’re basically enabling a module to use software-based encryption over hardware encryption for your adapter.
This will add the additional line to the configuration file. Restart your computer and you should be good to go.
If it does not fix or if you don’t have Atheros WiFi adaptor, try other solutions.
Solution 2: Disable 802.11n (works best if you have older router)
The next trick is to force disable the 802.11n protocol. Even after so many years, most of the world runs 802.11a,b and g. While 802.11n provides better data rate, not all the routers support it, especially the older ones. It has been observed that disabling the 802.11 n helps speed up the wireless connection in Ubuntu and other OS.
Open the terminal and use the following command:
It’s worth noting that in newer kernels, doing this will also disable the 802.11ac protocol and will limit the device throughput to 54 Mbps as mentioned in Gentoo’s wiki page.
If you find no significant increase in the wireless connection speed, restart the computer to revert the changes and forget about this solution.
But, if it worked for you and you have a faster WiFi now, you should make the changes permanent by using these commands:
Restart your computer and live your life at full speed.
Solution 3: Fix the bug in Debian Avahi-daemon
The slow WiFi in Ubuntu problem could also be related to a bug in Avahi-daemon of Debian. Ubuntu and many other Linux distribution are based on Debian so this bug propagates to these Linux distributions as well.
To fix this bug, you have to edit the nsswitch configuration file. Open a terminal and use the following command:
This will open the configuration file in gedit so that you could edit it easily in GUI. You can also use nano instead of gedit if you want to use the terminal. In here, look for the following line:
If you find this file, replace it with the following line:
Save it, close it, restart your computer. It should fix the slow wireless connection problem for you. If it doesn’t, check the other solutions.
Solution 4: Disable IPv6 support
Yes, you heard it right. Let’s go back to the previous century and care about IPv4 by ditching IPv6 support. Sometimes, you don’t even need IPv6 support.
Moreover, if it improves the Wi-Fi speed in some cases. So, you can surely give it a try if nothing else is working for you.
To disable IPv6 support in Ubuntu, use the following commands one by one:
Do note that you’re disabling IPv6 temporarily here. If it doesn’t work, simply reboot your system and you will have IPv6 enabled. But, if it does work, you can type in the following commands to make the change permanent:
Restart your computer and it should do the magic. If not try the next one.
Solution 5: Ditch default network manager and embrace Wicd (possibly obsolete)
This is only applicable if you’re using Ubuntu 16.04 or lower (which is highly unlikely at the time of updating this article) — but this was a working solution back then. If you have Ubuntu 16.04 for some reason, you can try it out.
Slow or inconsistent wireless connection, in some cases, are also due to Ubuntu’s very own default network manager. I am not sure what causes this but I have seen people in Ubuntu Forums talking about this problem in especially in Ubuntu.
You can install Wicd, an alternative network manager from Ubuntu Software Centre or from the terminal. For details on how to use Wicd, you can read my other article which I used to find SSID of wireless networks in Ubuntu.
Solution 6: More power to wireless adaptor (possibly obsolete)
This trick should be obsolete and this is why I mentioned it in the end. But, it looks like some of you find it working even with Ubuntu 20.04.
Linux Kernel has a power management system which comes in handy. However, for some users with their wireless connection it sent less power to the wireless adapter and thus affecting its performance. As a result, wireless connection would be some times fast and some times dead slow. While this is probably fixed in later Kernels, systems running older Linux Kernel may still face it.
Open a terminal and use the following command:
It will give you the name of your wireless device. Normally it should be wlan0. Now use the following command:
This will switch off the special power management system for the wireless adaptor and thus it will get more power and will work more (lame attempt at humour).
Did it work for you?
These are the most common ways to fix slow WiFi in Ubuntu. You should find “the one” for you (damn! even lamer attempt at humour).
Anyway, do let me know if it worked for you and if it worked, which solution was it. Also, if you come across a newer solution, please share it with us so that all of us could be benefited from your experience.
Feel free to drop your suggestion in the comments down below. And if the article helped you to speed up WiFi in Ubuntu, you might want to read how to speed up Ubuntu overall.
Like what you read? Please share it with others.
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
[SOLVED] Extremely Slow WiFi
[SOLVED] Extremely Slow WiFi
Post by mattzab » Wed Feb 15, 2017 10:18 pm
SOLUTION:
It works!
I disabled IPV6 and turned off Wi-Fi Power management. I also disabled 11n.
I found my solution here:
https://sites.google.com/site/easylinux . s-internet
Speed up your wireless internet
9. For some wireless chipsets, a simple tweak is sufficient for increasing the speed and the connection quality of your wireless internet. Namely disabling the power management for the wireless chipset. The price you pay is obviously an increase in power consumption, although this increase isn’t big.
You can do that as follows:
a. First find out if Ubuntu or Mint applies power management to your wireless chipset:
Launch a terminal window.
(You can launch a terminal window like this: *Click*)
Type in the terminal:
You can then not only see the name for your wireless chipset (for example: wlp2s0), but also whether Power Management is on for it. When it’s off, or when no mention is made of Power Management at all, you don’t need to do anything.
b. When Power Management is on, proceed as follows.
In order to prevent typo’s, copy/paste this line into the terminal (it’s one line!):
Now a text file opens. In that text file, you see the following content:
[connection]
wifi.powersave = 3
Change 3 into 2.
Save the modified file and close it.
c. Reboot your computer.
d. Then check in the terminal, by the command iwconfig, whether Power Management for the wireless chipset is off now.
If so, you’re done!
Speed up your Intel wireless chipset
10. If you have a (reasonably) modern wireless chipset from Intel, it’ll run on the iwlwifi driver. If so, you’ll probably be able to increase its speed noticeably, by turning on Tx AMPDU for it.
The purpose of AMPDU is to improve data transmission by aggregating or grouping together several sets of data. Thus it sharply reduces the amount of transmission overhead.
It used to be «on» by default in the iwlwifi driver. But several years ago, it was turned off because of stability issues on a few wifi chipsets. This problem category is, however, only a minority.
For turning it on, proceed like this:
a. First check whether your chipset runs on the iwlwifi driver:
Launch a terminal window.
(You can launch a terminal window like this: *Click*)
Use copy/paste to transfer this line into the terminal:
Does the terminal output contain the word iwlwifi (in red letters)? If so, proceed with the next step.
b. Use copy/paste to transfer the following blue line (it’s one line!) to the terminal. Don’t type it: it’s too easy to make typing errors.
Press Enter and submit your password. Note that your password will remain entirely invisible, not even asterisks will show, which is normal.
c. Reboot your computer.
d. Finally, check your new wireless speed, for example on speedtest.net.
Has your wifi become unstable? Then undo the iwlwifi hack as described below (item 9.1).
Problems? Then undo it like this
10.1. Does the iwlwifi hack create stability issues for your wifi? Then undo it with the following terminal command:
I’ve just installed Linux Mint 18 Cinnamon, and the WiFi works but it’s incredibly slow.
In looking at the Drivers in the System Settings, the only one available to use is for intel microcode, which is enabled.
Here’s the output for my wifi-info (from the Ubuntu forums, I guess. I found it while searching these forums and reading several topics of people that had the same problems, but different hardware)
Источник
Низкая скорость WiFi соединения в linux
Возникла проблема с соединение WiFi на linux: установил linux mint и скорость соединения 1 Мбит/c. Сейчас установил linux Xubunty проблема та же. Это проблема не роутера ибо на всех остальных устройствах скорость нормальная и даже на этом ноутбуке была нормальная только на винде.
Проблема на уровне ядра — в качестве дров в нём. И менять LM на Xubuntu бессмысленно — там ядро одно. Собственно, имеет значение только версия ядра.
Ну и какой именно у тебя адаптер. Покажи выводы
вот вывод lspci | grep -ie wifi -ie wireless
04:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
? lsusb | grep -ie wifi -ie wireless
Терминал ничего не выдаёт
Значит у тебя WiFi чип по PCI, а не по USB подключен.
Интересно. Покажи ещё выводы
lspci -vvvvv | grep Wireless -A 12
uname -a
Linux Extensa-5620 5.3.0-28-generic #30
18.04.1-Ubuntu SMP Fri Jan 17 06:11:07 UTC 2020 i686 i686 i686 GNU/Linux
я мимо крокодил, не знаю как там в минте или убунте но папа у них один и копать нужно здесь: тыц, тыц
Ядро старое. Можно обновить, сейчас до 5.3 (предлагается в Ubuntu). Тогда будут новые или обновлённые драйвера Wi-Fi. Правда, в данном примере это не должно помочь. Wi-Fi адаптер Intel 4965 старый. Лучше бы поменять на новую модель
Кстати
Если я подключаюсь к WiFi который раздаю с телефона то все работает сайты открываются почему так?
Так телефон наверное у Тебя рядом с компом.
Поставь ноут максимально близко к роутеру и посмотри не изменится ли что-то.
Пробовал
Ставил близко прям перед роутером все также
Низкая скорость wifi в линуксе — это самообман, избавляйся от него. Почаще повторяй «скорость соединения прекрасная, гораздо лучше чем на винде». Тут все так делают.
Скорость: 1 Мбит/c
А можно ли решить эту проблему установкой иного драйвера, например с помощью ndiswrapper?
Если устройство поддерживается в NDISwrapper (он не развивается вроде с 2014 года), то можно -дуй на их сайт, читай.
man ifconfig Ключи up, down, debug и т.д.
Это кто показывает? А iwconfig что показывает? И для случая с роутером, и для случая со смартфоном тогда уж.
man ifconfig Ключи up, down, debug и т.д.
Какой ifconfig в linux в 2020-ом? Да ещё и для WiFi.
iwconfig
с телефоном вот iwconfig
Так, а есть ли шанс решить эту проблему установкой другой linux, если да то подскажите дистрибутив
С одной стороны показывает, что принципиально может работать быстро, с другой, очевидно, какая-то несовместимость с роутером. А из Windows действительно с этим же роутером устанавливается соединение на 65 Mb/s ?
До этого стаяла Windows xp там соединение было 144Мбит/c
Так, а есть ли шанс решить эту проблему установкой другой linux, если да то подскажите дистрибутив
Если проблема принципиально решается какой-то ОС, то в Linux дело в драйвере. Смысла менять дистрибутивы из-за драйвера, по большому счёту, нет. По большей части ядра и драйвера из одних и тех же мест, и если где-то есть драйвер, который работает, его можно для любого дистрибутива собрать. В принципе можно попробовать разные LiveCD поперебирать, и если где-то заработает нормально, можно посмотреть, что за драйвер и какой версии.
Хм Invalid misc:14145
ИМХО, на скорость не влияет.
Роутер и wifi адаптер при соединении договариваются как и на какой скорости они будут работать. Ну в процессе скорость может и меняться. Но в 50 раз.
Ну попробуй отключить ВайФай, введи dmesg , потом включи и повтори команду dmesg , может насыпет ошибок.
Я бы проверил совместимость фирмвари и ядра. Это свежий челендж в линуксе.
Тогда как объяснить нормальную скорость с другим источником (точка доступа WiFi со смартфона)? Или прошивка избирательна?
При неустановленном стечении обстоятельств прошивка и драйвер не понимают друг друга.
Я бы проверил совместимость фирмвари и ядра. Это свежий челендж в линуксе.
Так с телефоном-то более-менее. Тут скорее совместимость с роутером.
Так, а есть ли шанс решить эту проблему установкой другой linux, если да то подскажите дистрибутив
Можно, кстати, зайти с другой стороны: что-нибудь на роутере отключить попробовать, или прошивку обновить. Может по другому будут договариваться.
Я подключал проводом к роутеру и скорость была нормальной
Проводное и беспроводное соединение это не одно и тоже.
У меня роутер от Дом ру
О, ну так наедь! Пусть работают. Вот вывод iwconfig покажи, и пусть разбираются со своей стороны. Может, конечно, попробуют отболтаться, но может и нет. Настаивай.
Но до этого то все работало и на другом компе и на телефоне от этого рутера
Но до этого то все работало и на другом компе и на телефоне от этого рутера
А в каком месте тебе слово «несовместимость» прочитать не удалось? Вот если бы всё ровно то же самое раньше работало, был бы другой разговор, а так что-то новое возникло, может и не работать.
Вобщем ясно буду спрашивать у дом ру в чем дело
Вобщем ясно буду спрашивать у дом ру в чем дело
И лучше не говори, что этот же роутер с Windows на том же нотебуке работает. 😉
Вдруг мэтры правы и дело в ядре — из репозитория поставь старое ядро (3.18 например) и попробуй при загрузке выбрать его, если заработает то дальше 4.19 и т.д.
Попробуй покрути NDISwrapper.
Если есть желание и время, то попробуй поставить 10-ку — глянь как на ней работает.
Попробую насчет ядра Десятку (: на этом ноуте семерка то лагать будет
Вдруг мэтры правы и дело в ядре — из репозитория поставь старое ядро (3.18 например) и попробуй при загрузке выбрать его, если заработает то дальше 4.19 и т.д.
Если прошивка не работает (криво работает) с новым ядром, то на старом должна.
Или я должен угадать версию ядра с которой прошивка работает без проблем? Так у меня чакры закрыты.))
Источник