终于解决wifi下载速度慢的问题了
Tofloor
poster avatar
亚历山大一世
deepin
2018-07-02 03:02
Author
我的宽带是100M电信,但是在deepin下载速度最多不超过2M/s,是十分的不正常,经过研究debain的文档后,我将/etc/modprobe.d/iwlwifi.conf中的11n_disable=1改为11n_disable=8在进行测速发现速度达到10M/S ,哈哈真是太爽了,所以急忙和各位分享一下,希望能解决一部分人的网速问题
Reply Favorite View the author
All Replies
1 / 3
To page
亚历山大一世
deepin
2018-07-02 03:04
#1
另外分享一个Linux的网速测试工具十分好用  sudo apt-get install speedtest-cli进行安装  运行speedtest命令进行网速测试
Reply View the author
g_s
deepin
2018-07-02 06:22
#2
握草你可以啊。我尝试了网速终于像样了。那话说,debian为什么要设置为1呢,出于什么考虑? 11n应该是一个很新的wifi标准吧。而且为什么设置8,设置其他值会不会效果还不一样。
Reply View the author
g_s
deepin
2018-07-02 06:31
#3
https://bbs.deepin.org/post/159729
另外分享一个Linux的网速测试工具十分好用  sudo apt-get install speedtest-cli进行安装  运行speedtest命 ...

然后测试迅雷下载时网页打开的速度。发现迅雷速度才达到我实际网速的1/5,网页就延迟打开了。wifi驱动还是linux硬伤啊。
Reply View the author
189******18
deepin
2018-07-02 06:49
#4
我试了一下没啥差别
Reply View the author
亚历山大一世
deepin
2018-07-02 06:55
#5
https://bbs.deepin.org/post/159729
我试了一下没啥差别

我的网卡是intel的
Reply View the author
亚历山大一世
deepin
2018-07-02 06:55
#6
https://bbs.deepin.org/post/159729
握草你可以啊。我尝试了网速终于像样了。那话说,debian为什么要设置为1呢,出于什么考虑? 11n应该是一个 ...

这个debain文档也没有说明
Reply View the author
g_s
deepin
2018-07-02 16:46
#7
https://bbs.deepin.org/post/159729
我试了一下没啥差别

这应该取决于网卡。我和楼主都是Intel的,猜测甚至和具体的一些型号有关。在论坛里面搜网速慢的帖子,评论下面一些人说他们网卡没有任何问题,能证明这点。
Reply View the author
痞子吴
deepin
2018-07-02 17:10
#8
本帖最后由 wgjas2 于 2018-7-2 09:22 编辑

我在想你这11n_disable=8是不是跟11n_disable=0效果是一样的,实际上就是启用了11n模式,而你的路由应该是只支持11b/g/n的,所以加速了,而没有开启11n的情况就向下使用了11g模式,造成了网速慢的问题。如果是11ac的路由,用5G连接点速度其实很快,避开了11n_disable的问题。
其实11n_disable这个选项官方只提供了0和1两个值,对应false和true(关闭/开启)

更新:仔细查了下资料,官方确实有=8这个配置,但是没有说明这个配置项具体信息以下是原文:

Slow WiFi problems when using Bluetooth
Some devices like the 6235 do include a Bluetooth device in the same card, which may lead into radio conflict. Newer devices (7200 and up) try to solve them intelligently, but it is not the case of older ones.

If your WiFi is slow when using Bluetooth, try adding the following to /etc/modprobe.d/iwlwifi.conf and reboot:

options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
原文说是因为某些型号的网卡wifi和蓝牙共同使用的时候会出现wifi速度慢的情况,这时候使用红字配置可以解决这个问题。个人猜想是因为wifi和蓝牙信道干扰的问题,可以用这个暂时解决。
Reply View the author
痞子吴
deepin
2018-07-02 17:13
#9
https://bbs.deepin.org/post/159729
我试了一下没啥差别

iwlwifi.conf是Intel无线网卡驱动的配置
Reply View the author
allyourtube
deepin
2018-07-02 17:37
#10
可以,有效果
Reply View the author
jianguo922
deepin
2018-07-06 16:01
#11
工程师可以把这条加入系统优化中
Reply View the author
蒙笛
deepin
2018-07-07 00:17
#12
按楼主的方法测试了一下,好像网速还可以,就不折腾了。
不过要是系统能探测网卡型号,自动优化就更好了。

Reply View the author
亚历山大一世
deepin
2018-07-07 02:41
#13
https://bbs.deepin.org/post/159729
按楼主的方法测试了一下,好像网速还可以,就不折腾了。
不过要是系统能探测网卡型号,自动优化就更好了。
...

你这上行速度可以啊
Reply View the author
mutong
deepin
2018-07-07 03:36
#14
Reply View the author
bobo
deepin
2018-09-13 18:21
#15
果然有效,网速从20M变成40M。

https://bbs.deepin.org/user/101846 这个优化下个版本放进去吧
Reply View the author
aida
deepin
2018-09-13 21:52
#16
看上去很厉害的样子 收
Reply View the author
亚历山大一世
deepin
2018-09-14 02:45
#17
https://bbs.deepin.org/post/159729
看上去很厉害的样子 收

啊哈哈哈哈哈哈
Reply View the author
scmszsj
deepin
2018-09-14 17:22
#18
试了一下,没有变化……
Reply View the author
sudo_free
deepin
2018-09-14 18:04
#19
本帖最后由 iamhyc65 于 2018-9-14 10:16 编辑

11n_disable这条不是很早之前解决什么兼容性问题搞的嘛

科普一下:
摘自源码/driver/net/wireless/intel/iwlwifi/iwl-drv.c, line 1708-1709
  1. MODULE_PARM_DESC(11n_disable,
  2.         "disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX")
Copy the Code


1禁用了802.11n功能,2禁用了发送聚合,4禁用接收聚合,8启用发送聚合;
简而言之:11n_disable=8只是增强了发送(上行)速率,配置为0才是对的,也就是默认值,也就是删掉这个配置就行了

补充内容:
1. 测试使用了intel 8260网卡,强力推荐8260/8265


Reply View the author
Comments
pholance
2019-10-03 03:05
感谢科普,解答了心中的疑问
相对湿度
deepin
2019-01-01 11:13
#20
本帖最后由 dickzhenhua 于 2019-1-1 03:14 编辑

那么问题又来了,ac模式怎么开启呢,在WIN下就对比清晰,同一个文件,11N模式下载需要1分钟左右,速度才能缓慢上升到6m/s以上,但是设置为11ac模式,不会超过5秒,速度直接到达6m/s以上,但是。。。linux应该怎么开启这个ac模式??? @aida
Reply View the author
1 / 3
To page