pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.38k stars 81 forks source link

Slow WiFi | Intel AX200 #1583

Open kzawadzki94 opened 3 years ago

kzawadzki94 commented 3 years ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="20.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.10" VERSION_ID="20.10" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy LOGO=distributor-logo-pop-os

Issue/Bug Description: Wifi is extremaly slow after recent updates. Line bandwith is 500 Mbps, usually it worked within 250-450 over wifi. Now it gets 1-20 Mbps. Other devices run just fine so it is not a provider issue.

dmesg | grep -i wifi:

[    5.176144] Intel(R) Wireless WiFi driver for Linux
[    5.176203] iwlwifi 0000:06:00.0: enabling device (0000 -> 0002)
[    5.202219] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[    5.204598] iwlwifi 0000:06:00.0: api flags index 2 larger than supported by driver
[    5.204613] iwlwifi 0000:06:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
[    5.204617] iwlwifi 0000:06:00.0: Found debug destination: EXTERNAL_DRAM
[    5.204618] iwlwifi 0000:06:00.0: Found debug configuration: 0
[    5.204956] iwlwifi 0000:06:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm
[    5.205094] iwlwifi 0000:06:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2
[    5.226187] iwlwifi 0000:06:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[    5.410075] iwlwifi 0000:06:00.0: base HW address: 08:d2:3e:b6:33:2a
[    5.432902] iwlwifi 0000:06:00.0 wlp6s0: renamed from wlan0

uname -a: Linux pop-os 5.8.0-7642-generic #47~1614007149~20.10~82fb226-Ubuntu SMP Tue Feb 23 02:59:01 UTC x86_64 x86_64 x86_64 GNU/Linux

bflanagin commented 3 years ago

@kzawadzki94: After doing a quick google search this issue may be caused by faulty drivers or an issue with the wifi router the device is connecting to. Either way others have reported the commands below solve the issue:

sudo -i
echo "options iwlwifi disable_11ax=Y"  >>  /etc/modprobe.d/iwlwifi.conf
exit

Reboot and report back if it solves the problem.

kzawadzki94 commented 3 years ago

@bflanagin Thanks for your reply.

Your solution did not help, I have tried multiple different options for iwlwifi, this is my current modprobe file:

# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
options iwlwifi disable_11ax=Y
options iwlwifi 11n_disable=8
options iwlwifi power_save=0
options iwlmvm power_scheme=1
options iwlwifi d0i3_disable=1
options iwlwifi uapsd_disable=1

Still no luck, also disabling power management in iwconfig did not help as well...

I have also tried to reinstall kernel. No change.

bflanagin commented 3 years ago

This is going to be a hard one to diagnose without similar hardware, and the fixes seem to run the gambit. I'll keep this open in case someone comes up with a fix, you might want to check the Ubuntu support sites for a similar issue as we use Ubuntu for drivers and the like.

This is a little out of date, but might be a good start https://askubuntu.com/questions/1215884/slow-wifi-connection-ubuntu-18-04-with-onboard-intel-wi-fi-6-ax200

kzawadzki94 commented 3 years ago

@bflanagin I may have found a solution, seems like fix from https://askubuntu.com/a/1232022 post resolved this issue.

Quote:

Basically, I edited the file /etc/gai.conf as super user: sudo nano /etc/gai.conf Then I looked for the line with precedence ::ffff:0:0/96 100 and removed the # character that preceded it. I had to reboot my >system for it to take effect. It worked like a charm.

That has been a tough week...

tomdeering-wf commented 3 years ago

I had an identical problem and the solution you linked worked also for me. Thanks @kzawadzki94!

filipemendespi commented 3 years ago

I was also having this problem after an update and I managed to solve it with this solution https://askubuntu.com/a/1240386

jclendineng commented 2 years ago

This is going to be a hard one to diagnose without similar hardware, and the fixes seem to run the gambit. I'll keep this open in case someone comes up with a fix, you might want to check the Ubuntu support sites for a similar issue as we use Ubuntu for drivers and the like.

This is a little out of date, but might be a good start https://askubuntu.com/questions/1215884/slow-wifi-connection-ubuntu-18-04-with-onboard-intel-wi-fi-6-ax200

That fixed my issue on the latest PopOS install with an AX200 card. Seeing full speeds now, thanks!