解决intel 9260/AX200网卡网速过慢的问题
Tofloor
poster avatar
ping134
deepin
2020-07-22 04:42
Author
本帖最后由 ping134 于 2020-8-26 08:50 编辑

我自己之前更换了intel 9260的无线网卡,在使用Ubuntu、UOS、Deepin等系统时,速度与windows的差别可谓天地之间,大部分时候在Linux下网速被限制为最高54Mb,通过一阵研究发现,在debian系的系统中,与intel网卡有关的驱动文件是iwlwifi.conf,于是我访问https://wiki.debian.org/iwlwifi/,大概看了一下介绍,我感觉找到了可能导致这一问题的原因,在网站上,列出了支持的一系列设备:

The iwlwifi Linux kernel driver supports several Intel wireless LAN adapters:
  • Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
  • Intel Wireless WiFi 5150AGN
  • Intel WiFi Link 1000BGN
  • Intel 6000 Series WiFi Adapters (6200AGN and 6300AGN)
  • Intel Wireless WiFi Link 6250AGN Adapter
  • Intel 6005 Series WiFi Adapters
  • Intel 6030 Series WiFi Adapters
  • Intel Wireless WiFi Link 6150BGN 2 Adapter
  • Intel 100 Series WiFi Adapters (100BGN and 130BGN)
  • Intel 2000 Series WiFi Adapters
  • Intel 7260 WiFi Adapter
  • Intel 7265 WiFi Adapter
  • Intel 3160 WiFi Adapter
  • Intel 3165 WiFi Adapter

这些设备大多较老,iwlwifi可能对新的网卡支持不够。于是尝试网上各种找解决方案,其中比较通用的一种做法是将文件中11n_disable=1参数改为11n_disable=0或者11n_disable=8,经过测试,这种通用方案针对Ubuntu以及UOS是有效的,网卡基本能恢复正常的速度,但针对目前的deepin 20 beta无效,会导致一个新问题,WIFI速率查看是正常了,但网络无法正常连接,因此该方案目前针对deepin v20是不可用的。
于是接着寻找方案,目前将两种针对deepin 20 beta可用的方案分享一下:第一就是:sudo dedit /etc/modprobe.d/iwlwifi.conf
将文件中11n_disable=1改为#11n_disable=1,同时将后续代码bt_coex_active=0 power_save=0 swcrypto=1另起一行(这一步很重要,否则无用),这个目前看来是有效的,但有一个问题,在系统启动的时候以及在执行网络相关命令的时候,会有报错,目前这些报错并未发现有什么影响。第二种解决方案:先sudo cp /etc/modprobe.d/iwlwifi.conf  iwlwifi.conf.backup
然后编辑iwlwifi文件:sudo dedit /etc/modprobe.d/iwlwifi.conf   将文件内容清空,更改为:
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
这一方案是在Ubuntu论坛上找到的,目前使用比较完美。

最后不需要重启,执行代码重启网卡设备即可:sudo modprobe -r iwlmvm
sudo modprobe iwlwifi


Deepin V20公测版解决方案更新:不需要以上吧啦吧啦的一大堆操作,直接:
sudo dedit /etc/modprobe.d/iwlwifi.conf
将11n_disable=1这一参数改为11n_disable=0;
保存文件。
sudo modprobe -r iwlmvm
sudo modprobe iwlwifi
解决!



Reply Favorite View the author
All Replies
peterguo97
deepin
2020-08-17 00:51
#1
感谢,确实有用,我的AX200速率提升了5倍左右
Reply View the author
hejunbo
deepin
2020-09-29 06:55
#2
非常感谢 确认有用  不过还有点不太完美的地方
iwconfig显示的速率一直是6 Mb/s  但实际上使用正常
  1. wlp3s0    IEEE 802.11  ESSID:"*****"                                                                                                                                                                                                                                       
  2.           Mode:Managed  Frequency:5.24 GHz  Access Point: **:**:**:**:62:9D                                                                                                                                                                                                      
  3.           Bit Rate=6 Mb/s   Tx-Power=20 dBm                                                                                                                                                                                                                                       
  4.           Retry short limit:7   RTS thr:off   Fragment thr:off                                                                                                                                                                                                                    
  5.           Power Management:on                                                                                                                                                                                                                                                     
  6.           Link Quality=63/70  Signal level=-47 dBm                                                                                                                                                                                                                                
  7.           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0                                                                                                                                                                                                               
  8.           Tx excessive retries:0  Invalid misc:10   Missed beacon:0                                                                                                                                                                                                               
  9.                                                                      
Copy the Code
并且我在对端AP上看到已经是使用了802.11ax协议,之前一直只能是802.11a

  1. **:**:**:**:0e:26    1   48 720M    960M  -47     -49     -44    0      0   65535    EP   EQO NULL    0          b        1201000           AWRSM          1gGTRs 00:07:28     RSN WME IEEE80211_MODE_11AXA_HE80  2 2   0  
  2. RSSI is combined over chains in dBm
  3. Minimum Tx Power               : 0
  4. Maximum Tx Power               : 0
  5. HT Capability                  : Yes
  6. VHT Capability                 : Yes
  7. MU capable                     : Yes
  8. SNR                            : 49
  9. Operating band                 :    5GHz
  10. Current Operating class        : 115
  11. Supported Operating classes    : 81  83  84  115  116  117  118  119  120  121  122  123  124  125  126  127
  12. Supported Rates                : 12  18  24  36  48  72  96  108
  13. Max STA phymode                : IEEE80211_MODE_11AXA_HE80
Copy the Code


Reply View the author
linxuew
deepin
2020-11-19 09:24
#3

网速确实提升了,但是同样用speedtest测速,win10可以跑370M,但是deepin只有200M


Reply View the author
linxuew
deepin
2020-11-19 09:25
#4


感觉网卡识别错误了

Reply View the author
godsandkings
deepin
2020-12-15 06:47
#5

十分感谢,用文末的方法后网速和win上一样了

Reply View the author
deepin-yichengxian
deepin
2021-08-10 21:23
#6

貌似没有这个,我的网卡是7265,cat: /etc/modprobe.d/iwlwifi.conf: 没有那个文件或目录

Reply View the author