Ubuntu 18.04 上的 XPS 13 9360 出现随机网络错误

Ubuntu 18.04 上的 XPS 13 9360 出现随机网络错误

我的 Dell XPS 13 9360 在过去几天开始出现随机网络错误(firefox、apt 更新,一切似乎都受到影响)。

我只使用 wifi,这个问题在多个 wifi 路由器上都会出现

据我记得,它是在几天前的更新后开始的。

uname -a
Linux mymachinename 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

dmesg 显示大量连接丢失

[ 1020.770922] wlp58s0: Connection to AP 14:91:82:7a:2b:ae lost
[ 1025.784678] wlp58s0: authenticate with 14:91:82:7a:2b:ae
[ 1025.832168] wlp58s0: send auth to 14:91:82:7a:2b:ae (try 1/3)
[ 1025.833814] wlp58s0: authenticated
[ 1025.838891] wlp58s0: associate with 14:91:82:7a:2b:ae (try 1/3)
[ 1025.842646] wlp58s0: RX AssocResp from 14:91:82:7a:2b:ae (capab=0x431 status=0 aid=4)
[ 1025.845821] wlp58s0: associated
[ 1035.107017] wlp58s0: Connection to AP 14:91:82:7a:2b:ae lost
[ 1040.121106] wlp58s0: authenticate with 14:91:82:7a:2b:ae
[ 1040.168512] wlp58s0: send auth to 14:91:82:7a:2b:ae (try 1/3)
[ 1040.170212] wlp58s0: authenticated
[ 1040.174965] wlp58s0: associate with 14:91:82:7a:2b:ae (try 1/3)
[ 1040.179890] wlp58s0: RX AssocResp from 14:91:82:7a:2b:ae (capab=0x431 status=0 aid=4)
[ 1040.182447] wlp58s0: associated
[ 1049.442709] wlp58s0: Connection to AP 14:91:82:7a:2b:ae lost
[ 1054.454300] wlp58s0: authenticate with 14:91:82:7a:2b:ae
[ 1054.501903] wlp58s0: send auth to 14:91:82:7a:2b:ae (try 1/3)
[ 1054.503598] wlp58s0: authenticated
[ 1054.506659] wlp58s0: associate with 14:91:82:7a:2b:ae (try 1/3)
[ 1054.512507] wlp58s0: RX AssocResp from 14:91:82:7a:2b:ae (capab=0x431 status=0 aid=4)
[ 1054.514927] wlp58s0: associated
sudo lshw -class network
  *-network                 
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:3a:00.0
       logical name: wlp58s0
       version: 32
       serial: 9c:b6:d0:d4:b4:af
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.15.0-47-generic firmware=WLAN.RM.4.4.1-00079-QCARMSWPZ-1 ip=192.168.1.141 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:133 memory:dc000000-dc1fffff
...
journalctl /usr/sbin/NetworkManager

ápr 13 22:49:03 xpsbuntu NetworkManager[951]: <warn>  [1555188543.6125] sup-iface[0x55c27a0798b0,wlp58s0]: connection disconnected (reason -4)
ápr 13 22:49:03 xpsbuntu NetworkManager[951]: <info>  [1555188543.6381] device (wlp58s0): supplicant interface state: completed -> disconnected
ápr 13 22:49:03 xpsbuntu NetworkManager[951]: <info>  [1555188543.7182] device (wlp58s0): supplicant interface state: disconnected -> scanning
ápr 13 22:49:08 xpsbuntu NetworkManager[951]: <info>  [1555188548.6132] device (wlp58s0): supplicant interface state: scanning -> authenticating
ápr 13 22:49:08 xpsbuntu NetworkManager[951]: <info>  [1555188548.6207] device (wlp58s0): supplicant interface state: authenticating -> associating
ápr 13 22:49:08 xpsbuntu NetworkManager[951]: <info>  [1555188548.6289] device (wlp58s0): supplicant interface state: associating -> associated
ápr 13 22:49:08 xpsbuntu NetworkManager[951]: <info>  [1555188548.6356] device (wlp58s0): supplicant interface state: associated -> 4-way handshake
ápr 13 22:49:08 xpsbuntu NetworkManager[951]: <info>  [1555188548.6517] device (wlp58s0): supplicant interface state: 4-way handshake -> completed
ápr 13 22:49:17 xpsbuntu NetworkManager[951]: <warn>  [1555188557.9565] sup-iface[0x55c27a0798b0,wlp58s0]: connection disconnected (reason -4)
ápr 13 22:49:17 xpsbuntu NetworkManager[951]: <info>  [1555188557.9820] device (wlp58s0): supplicant interface state: completed -> disconnected
ápr 13 22:49:18 xpsbuntu NetworkManager[951]: <info>  [1555188558.0622] device (wlp58s0): supplicant interface state: disconnected -> scanning
ápr 13 22:49:22 xpsbuntu NetworkManager[951]: <info>  [1555188562.9579] device (wlp58s0): supplicant interface state: scanning -> authenticating
ápr 13 22:49:22 xpsbuntu NetworkManager[951]: <info>  [1555188562.9649] device (wlp58s0): supplicant interface state: authenticating -> associating
ápr 13 22:49:22 xpsbuntu NetworkManager[951]: <info>  [1555188562.9723] device (wlp58s0): supplicant interface state: associating -> associated
ápr 13 22:49:22 xpsbuntu NetworkManager[951]: <info>  [1555188562.9794] device (wlp58s0): supplicant interface state: associated -> 4-way handshake
ápr 13 22:49:22 xpsbuntu NetworkManager[951]: <info>  [1555188562.9962] device (wlp58s0): supplicant interface state: 4-way handshake -> completed
ápr 13 22:49:32 xpsbuntu NetworkManager[951]: <warn>  [1555188572.2915] sup-iface[0x55c27a0798b0,wlp58s0]: connection disconnected (reason -4)

答案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

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

sudo nano /etc/default/crda

将最后一行改为:

REGDOMAIN=IS

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

相关内容