Ubuntu 16.04 上的 Wifi 非常慢

Ubuntu 16.04 上的 Wifi 非常慢

我遇到的问题是,虽然以太网连接工作正常,但每当我通过 wifi 连接到家庭互联网时,连接速度都比任何其他设备慢得多。虽然我在 Windows 台式电脑、MacBook 和平板电脑上的下载速度约为 35Mbps,但我在 Ubunutu 笔记本电脑上的下载速度仅为 2-3Mbps。我尝试了其他帖子中建议的一些修复方法(禁用电源管理、禁用 N 模式、设置国家代码),但对我都不起作用。

配置:

lo        no wireless extensions.

enp0s25   no wireless extensions.

wlp2s0    IEEE 802.11abg  ESSID:"Chillroom"  
          Mode:Managed  Frequency:2.417 GHz  Access Point: 00:22:CF:DD:07:DC   
          Bit Rate=48 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=47/70  Signal level=-63 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:46   Missed beacon:0

左手边:

*-network               
       description: Ethernet interface
       product: Ethernet Connection (3) I218-LM
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25
       version: 03
       serial: 1c:39:47:96:6e:ee
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.2-3 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:47 memory:c1200000-c121ffff memory:c123d000-c123dfff ioport:3080(size=32)
  *-network
       description: Wireless interface
       product: Wireless 7265
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 48
       serial: 64:80:99:89:24:7a
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-71-generic firmware=17.352738.0 ip=192.168.2.112 latency=0 link=yes multicast=yes wireless=IEEE 802.11abg
       resources: irq:51 memory:c1100000-c1101fff

uname -a:

Linux tim-travelmate-p645-s 4.4.0-71-generic #92-Ubuntu SMP Fri Mar 24 12:59:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

消息 |查找

[    5.271105] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265-19.ucode failed with error -2
[    5.273376] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265-18.ucode failed with error -2
[    5.300553] iwlwifi 0000:02:00.0: loaded firmware version 17.352738.0 op_mode iwlmvm
[    5.348721] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 7265, REV=0x184
[    5.348792] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[    5.348965] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[    5.412995] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    5.444120] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
[    7.549660] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[    7.549856] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[    7.607466] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[    7.607651] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5585.892257] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5585.892457] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5585.950226] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5585.950416] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5870.008472] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5870.008657] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5870.066554] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[ 5870.066740] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled

如果您还需要了解其他信息,请告诉我。

感谢您的时间 :)

答案1

我拥有并成功使用了两台英特尔无线设备。几年来,我在数千篇论坛帖子中磨练了一些技巧。

首先,检查路由器中的设置。首选 WPA2-AES;而不是任何 WPA 和 WPA2 混合模式,当然也不是 TKIP。其次,如果您的路由器支持 N 速度,那么使用 2.4 GHz 频段的 20 MHz 信道宽度(而不是自动 20/40 MHz)可能会获得更好的连接性,尽管它可能会影响 N 速度。使用固定信道(1、6 或 11)比自动信道选择更能带来更好的连接效果。此外,请确保路由器未设置为仅使用 N 速度;首选自动 B、G 和 N。进行这些更改后,重新启动路由器。

接下来,我建议明确设置你的监管范围。检查你的:

sudo iw reg get

如果您选择 00,则这是一个通用的设置。请在此处查找您的设置:http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2然后暂时设置一下:

sudo iw reg set IS

当然,如果不是冰岛,请替换您的国家代码。永久设置它:

gksudo gedit /etc/default/crda

如果您没有文本编辑器 gedit,请使用 nano 或 Kate 或 leafpad。

将最后一行改为:

REGDOMAIN=IS

仔细校对,保存并关闭文本编辑器。

接下来,我在网络管理器中将 IPv6 设置为忽略:http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png 此示例适用于以太网,但您想要无线。

如果这些更改没有帮助,请尝试:

sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=8

如果有帮助,请使其永久生效:

sudo -i
echo "options iwlwifi 11n_disable=8"  >>  /etc/modprobe.d/iwlwifi.conf
exit

最后,如果可用,网络管理器将默认使用以太网。请在断开以太网的情况下进行测试。

顺便说一句,我相信 -17 固件是最新的适用固件。提取 @Elder Geek 引用的文件会得到较旧的 -14 固件。

答案2

如果@Chili555 回答对你不起作用,你可能只是受到了 RF 干扰,也就是平台噪音。这在 2.4GHz 频段很常见。以下是来自https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi

关于平台噪音:

Wi-Fi heavily relies on radio frequencies, and those are subject to
interference. Interference may come from another Wi-Fi device, or from many 
other non Wi-Fi devices (e.g. microwaves) that operates on the same frequency,
and it might also come from other components of your own device/computer – 
this is known as 'platform noise'. Platform noise depends on the actual
platform/computer and its design/manufacturing, and not on the Intel Wi-Fi 
module.

Some common sources of platform noise might be:

    The PCIe bus, especially when switching in/out of power saving modes.
    USB3 and graphics (in certain scenarios).
    Sometimes, even the fact that several ingredients’ ground lines are
    connected can cause noise.

This kind of interference might happen on 2.4GHz band, it is much less likely 
to happen on 5.2GHz band. Also note that using 40MHz (and not 20MHz) channel 
 bandwidth will increase the probability to suffer from platform noise 
(since more frequencies might impact the Wi-Fi performance).

Some potential work-around options to this issue:

    Disable Wi-Fi's power save (prevent the PCIe link to go to power save): 
    power_scheme=1 module parameter for iwlmvm
    Disable USB3 in BIOS (if possible), it not, just stop using it
    Disable 40MHz on 2.4GHz: cfg80211_disable_40mhz_24ghz module parameter
    Use 5GHz band (on devices that support 5GHz operation)

The fact that one of these options helped doesn't prove that the issue being 
troubleshooted is 'platform noise', but it may be an indication.

Another thing that can be tried is to modify the antenna position. The antennas 
are typically located in the lid of the laptop. It is worth trying to
open / close the lid or to rotate the system and see if it has any effect.

相关内容