Wifi 不断断开(Ubuntu 20.04)

Jac*_*ack 6 wireless networking broadcom disconnect 20.04

我有一台双启动 Windows 10 和 Ubuntu 20.04 的机器。我可以在 Windows 上很好地连接到 Wifi,但在使用 Ubuntu 时,它会每隔 10-20 分钟左右断开连接。当这种情况发生时,我总是可以通过以下方式让它再次工作:

\n
sudo rmmod wl\nsudo modprobe wl\n
Run Code Online (Sandbox Code Playgroud)\n

我已经尝试过类似帖子中的建议(例如,禁用 IPv6、设置REGDOMAIN=GB/etc/default/crda安装linux-firmware),但到目前为止没有任何效果。如果有人能提供帮助,我将非常感激。

\n

输出来自lspci -nn -d 14e4:

\n
21:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)\n
Run Code Online (Sandbox Code Playgroud)\n

journalctl"断开连接时间附近的输出:

\n
Oct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:68:fb:e3 (SSID='Careline Wireless' freq=5240 MHz)\nOct 15 08:05:51 jack-MS-7C02 geoclue[1644]: Failed to query location: Error resolving \xe2\x80\x9clocation.services.mozilla.com\xe2\x80\x9d: Temporary failure in name resolution\nOct 15 08:05:51 jack-MS-7C02 NetworkManager[952]: <info>  [1602745551.4197] device (wlo1): supplicant interface state: scanning -> associating\nOct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: Associated with 18:e8:29:68:fb:e3\nOct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0\nOct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: WPA: Key negotiation completed with 18:e8:29:68:fb:e3 [PTK=CCMP GTK=CCMP]\nOct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-CONNECTED - Connection to 18:e8:29:68:fb:e3 completed [id=0 id_str=]\nOct 15 08:05:51 jack-MS-7C02 wpa_supplicant[981]: bgscan simple: Failed to enable signal strength monitoring\nOct 15 08:05:51 jack-MS-7C02 NetworkManager[952]: <info>  [1602745551.4878] device (wlo1): supplicant interface state: associating -> completed\nOct 15 08:05:52 jack-MS-7C02 code.desktop[4422]: [main 2020-10-15T07:05:52.330Z] update#setState idle\nOct 15 08:06:23 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:67:f8:9d (SSID='Careline Wireless' freq=2437 MHz)\nOct 15 08:06:23 jack-MS-7C02 NetworkManager[952]: <info>  [1602745583.1708] device (wlo1): supplicant interface state: completed -> associating\nOct 15 08:06:23 jack-MS-7C02 kernel: ERROR @wl_cfg80211_get_station : \nOct 15 08:06:23 jack-MS-7C02 kernel: Wrong Mac address, mac = 18:e8:29:68:fb:e3   profile =18:e8:29:67:f8:9d\nOct 15 08:06:23 jack-MS-7C02 kernel: ERROR @wl_cfg80211_get_station : \nOct 15 08:06:23 jack-MS-7C02 kernel: Wrong Mac address, mac = 18:e8:29:68:fb:e3   profile =18:e8:29:67:f8:9d\nOct 15 08:06:27 jack-MS-7C02 kernel: ERROR @wl_cfg80211_get_station : \nOct 15 08:06:27 jack-MS-7C02 kernel: Wrong Mac address, mac = 18:e8:29:68:fb:e3   profile =18:e8:29:67:f8:9d\nOct 15 08:06:27 jack-MS-7C02 kernel: ERROR @wl_cfg80211_get_station : \nOct 15 08:06:27 jack-MS-7C02 kernel: Wrong Mac address, mac = 18:e8:29:68:fb:e3   profile =18:e8:29:67:f8:9d\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: Authentication with 18:e8:29:67:f8:9d timed out.\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-DISCONNECTED bssid=18:e8:29:67:f8:9d reason=3 locally_generated=1\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: nl80211: Was expecting local disconnect but got another disconnect event first\nOct 15 08:06:33 jack-MS-7C02 NetworkManager[952]: <warn>  [1602745593.1701] sup-iface[0x55c1d41a8910,wlo1]: connection disconnected (reason -3)\nOct 15 08:06:33 jack-MS-7C02 NetworkManager[952]: <info>  [1602745593.1709] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=GB\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: Reject scan trigger since one is already pending\nOct 15 08:06:33 jack-MS-7C02 wpa_supplicant[981]: wlo1: Failed to initiate AP scan\nOct 15 08:06:34 jack-MS-7C02 wpa_supplicant[981]: wlo1: Reject scan trigger since one is already pending\nOct 15 08:06:34 jack-MS-7C02 wpa_supplicant[981]: wlo1: Failed to initiate AP scan\nOct 15 08:06:34 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:67:fb:e3 (SSID='Careline Wireless' freq=2412 MHz)\nOct 15 08:06:34 jack-MS-7C02 geoclue[1644]: Failed to query location: Error resolving \xe2\x80\x9clocation.services.mozilla.com\xe2\x80\x9d: Temporary failure in name resolution\nOct 15 08:06:34 jack-MS-7C02 NetworkManager[952]: <info>  [1602745594.7696] device (wlo1): supplicant interface state: disconnected -> associating\nOct 15 08:06:44 jack-MS-7C02 wpa_supplicant[981]: wlo1: Authentication with 18:e8:29:67:fb:e3 timed out.\nOct 15 08:06:44 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-DISCONNECTED bssid=18:e8:29:67:fb:e3 reason=3 locally_generated=1\nOct 15 08:06:44 jack-MS-7C02 NetworkManager[952]: <warn>  [1602745604.7632] sup-iface[0x55c1d41a8910,wlo1]: connection disconnected (reason -3)\nOct 15 08:06:44 jack-MS-7C02 NetworkManager[952]: <info>  [1602745604.7685] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:06:44 jack-MS-7C02 NetworkManager[952]: <info>  [1602745604.8882] device (wlo1): supplicant interface state: disconnected -> scanning\nOct 15 08:06:46 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:68:fb:e3 (SSID='Careline Wireless' freq=5240 MHz)\nOct 15 08:06:46 jack-MS-7C02 geoclue[1644]: Failed to query location: Error resolving \xe2\x80\x9clocation.services.mozilla.com\xe2\x80\x9d: Temporary failure in name resolution\nOct 15 08:06:46 jack-MS-7C02 NetworkManager[952]: <info>  [1602745606.5059] device (wlo1): supplicant interface state: scanning -> associating\nOct 15 08:06:46 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-ASSOC-REJECT bssid=18:e8:29:68:fb:e3 status_code=16\nOct 15 08:06:46 jack-MS-7C02 NetworkManager[952]: <info>  [1602745606.5717] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:06:46 jack-MS-7C02 NetworkManager[952]: <info>  [1602745606.6720] device (wlo1): supplicant interface state: disconnected -> scanning\nOct 15 08:06:48 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:67:f8:78 (SSID='Careline Wireless' freq=2412 MHz)\nOct 15 08:06:48 jack-MS-7C02 geoclue[1644]: Failed to query location: Error resolving \xe2\x80\x9clocation.services.mozilla.com\xe2\x80\x9d: Temporary failure in name resolution\nOct 15 08:06:48 jack-MS-7C02 NetworkManager[952]: <info>  [1602745608.3074] device (wlo1): supplicant interface state: scanning -> associating\nOct 15 08:06:48 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-ASSOC-REJECT bssid=18:e8:29:68:fb:e3 status_code=16\nOct 15 08:06:48 jack-MS-7C02 NetworkManager[952]: <info>  [1602745608.3555] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:06:49 jack-MS-7C02 NetworkManager[952]: <info>  [1602745609.3571] device (wlo1): supplicant interface state: disconnected -> scanning\nOct 15 08:06:50 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:68:f8:9d (SSID='Careline Wireless' freq=5180 MHz)\nOct 15 08:06:50 jack-MS-7C02 NetworkManager[952]: <info>  [1602745610.9553] device (wlo1): supplicant interface state: scanning -> associating\nOct 15 08:06:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-ASSOC-REJECT bssid=18:e8:29:68:fb:e3 status_code=16\nOct 15 08:06:51 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Careline Wireless" auth_failures=1 duration=10 reason=CONN_FAILED\nOct 15 08:06:51 jack-MS-7C02 NetworkManager[952]: <info>  [1602745611.0197] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:06:56 jack-MS-7C02 NetworkManager[952]: <info>  [1602745616.0236] device (wlo1): supplicant interface state: disconnected -> scanning\nOct 15 08:06:57 jack-MS-7C02 geoclue[1644]: Failed to query location: Error resolving \xe2\x80\x9clocation.services.mozilla.com\xe2\x80\x9d: Temporary failure in name resolution\nOct 15 08:06:59 jack-MS-7C02 systemd[1830]: Started Application launched by gnome-shell.\nOct 15 08:06:59 jack-MS-7C02 dbus-daemon[950]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.123' (uid=1000 pid=5315 comm="/opt/google/chrome/chrome " label="unconfined")\nOct 15 08:06:59 jack-MS-7C02 systemd[1]: Condition check resulted in Bluetooth service being skipped.\nOct 15 08:06:59 jack-MS-7C02 gnome-keyring-daemon[1858]: asked to register item /org/freedesktop/secrets/collection/Default_5fkeyring/1, but it's already registered\nOct 15 08:06:59 jack-MS-7C02 gnome-keyring-daemon[1858]: asked to register item /org/freedesktop/secrets/collection/Default_5fkeyring/1, but it's already registered\nOct 15 08:07:00 jack-MS-7C02 gnome-shell[5323]: Fontconfig error: Cannot load default config file: No such file: (null)\nOct 15 08:07:00 jack-MS-7C02 gnome-shell[5323]: [5355:5355:1015/080700.530435:ERROR:shared_image_manager.cc(214)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.\nOct 15 08:07:01 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="Careline Wireless"\nOct 15 08:07:01 jack-MS-7C02 wpa_supplicant[981]: wlo1: Trying to associate with 18:e8:29:67:f8:78 (SSID='Careline Wireless' freq=2412 MHz)\nOct 15 08:07:01 jack-MS-7C02 NetworkManager[952]: <info>  [1602745621.6160] device (wlo1): supplicant interface state: scanning -> associating\nOct 15 08:07:01 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-ASSOC-REJECT bssid=18:e8:29:68:fb:e3 status_code=16\nOct 15 08:07:01 jack-MS-7C02 wpa_supplicant[981]: wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Careline Wireless" auth_failures=2 duration=20 reason=CONN_FAILED\nOct 15 08:07:01 jack-MS-7C02 NetworkManager[952]: <info>  [1602745621.6758] device (wlo1): supplicant interface state: associating -> disconnected\nOct 15 08:07:03 jack-MS-7C02 NetworkManager[952]: <warn>  [1602745623.8441] device (wlo1): link timed out.\nOct 15 08:07:03 jack-MS-7C02 NetworkManager[952]: <info>  [1602745623.8443] device (wlo1): state change: activated -> failed (reason 'supplicant-timeout', sys-iface-state: 'managed')\nOct 15 08:07:03 jack-MS-7C02 gnome-shell[2059]: An active wireless connection, in infrastructure mode, involves no access point?\nOct 15 08:07:03 jack-MS-7C02 NetworkManager[952]: <warn>  [1602745623.8468] device (wlo1): Activation: failed for connection 'Careline Wireless'\nOct 15 08:07:03 jack-MS-7C02 gnome-shell[1595]: An active wireless connection, in infrastructure mode, involves no access point?\n
Run Code Online (Sandbox Code Playgroud)\n

小智 0

我今天看到了下面这个帖子。您可以尝试将 SSID 名称更改为全部小写,看看是否可以解决问题?我不确定问题是什么,但可能值得一试。

https://bbs.archlinux.org/viewtopic.php?id=249140


小智 0

就我而言,问题是在我在 garuda linux 上将 MAC 地址设置为随机后开始的,这弄乱了 garuda 和 windows 双启动上的 wifi,我尝试了我发现的每一篇文章,没有任何效果,干净安装的 ubuntu 修复程序也没有修复它,也没有将 mac 地址设置回默认值解决了该问题。我最终删除了 Windows 和 garuda,只保留了主分区

sudo iwconfig wlp2s0 power off
cd /etc/pm/
sudo -H gedit wifi_pwr_off
Run Code Online (Sandbox Code Playgroud)

这将打开一个空白文件,将其复制到空白文件:

#!/bin/sh
/sbin/iwconfig wlp2s0 power off
Run Code Online (Sandbox Code Playgroud)

保存文件并关闭

sudo chmod u+x wifi_pwr_off
Run Code Online (Sandbox Code Playgroud)

完毕