Wifi 在 ubuntu 20.04 双启动 (DELL XPS-L502X) 上缓慢且不稳定

Sre*_*eep 3 wireless networking iwlwifi 20.04

我使用的是双启动 Windows 10 和 Ubuntu 20.04 的戴尔 XPS l502x 笔记本电脑。在Windows上的互联网速度快而稳定,而这是非常缓慢和不稳定,而我使用Ubuntu的,它不断下探。当我启动到 Ubuntu 时,信号强度也弱得多,而它在相同条件下在 Windows 中完美运行。

的输出lspci -nnk | grep -A2 0280

03:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] [8086:008a] (rev 34)
    Subsystem: Intel Corporation Centrino Wireless-N 1030 BGN [8086:5325]
    Kernel driver in use: iwlwifi
Run Code Online (Sandbox Code Playgroud)

的输出dmesg | grep iwl

 [   17.896470] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[   17.974380] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[   18.938665] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[   18.938672] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[   18.938677] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   18.938684] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 1030 BGN, REV=0xB0
[   18.975229] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   20.747957] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[   35.230165] iwlwifi 0000:03:00.0: Radio type=0x2-0x2-0x1
[   35.326450] iwlwifi 0000:03:00.0: Radio type=0x2-0x2-0x1
Run Code Online (Sandbox Code Playgroud)

的输出sudo lshw -C network

 description: Wireless interface
       product: Centrino Wireless-N 1030 [Rainbow Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 34
       serial: bc:77:37:28:9f:5b
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-31-generic firmware=18.168.6.1 ip=192.168.0.104 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:39 memory:f1b00000-f1b01fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: enp6s0
       version: 06
       serial: 14:fe:b5:9c:fc:0d
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII
       resources: irq:17 ioport:2000(size=256) memory:f1804000-f1804fff memory:f1800000-f1803fff
Run Code Online (Sandbox Code Playgroud)

我希望这些信息足以帮助我解决这个问题,如果需要有关此问题的任何其他信息,请告诉我。

Sre*_*eep 5

在浏览并尝试了各种博客上的几个线程后,我终于解决了这个问题。

问题:我的路由器很旧并且不支持 802.11n 协议,这导致互联网仅在 Ubuntu 中变慢,因为默认情况下正在使用它。

解决方案: 强制永久禁用 802.11 协议:

步骤 1: 使用 nano 或任何其他文本编辑器打开 iwlwifi.conf。

sudo nano /etc/modprobe.d/iwlwifi.conf
Run Code Online (Sandbox Code Playgroud)

第 2 步:添加一行以强制禁用 802.11n 协议

options iwlwifi 11n_disable=1
Run Code Online (Sandbox Code Playgroud)

第 3 步:保存并重新启动您的 PC。

注意:在您重新启动 PC 之前,这些更改不会生效。

如果您想撤销更改,请删除您添加的行并重新启动。

这解决了我的问题,如果您的 PC 有同样的问题,我相信它也能解决您的问题。