Ubuntu 20.04 中 Wifi 经常断开

Ubuntu 20.04 中 Wifi 经常断开

有时wifi反复断开。有时在几个小时或 30 分钟后断开连接,我找不到原因。有时运行时sudo docker exec -it 96414b09135d bash它也会在几分钟后断开连接。

我尝试设置 sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

wifi.powersave = 2

并尝试过

  1. 须藤 ifconfig wlp2s0 下来
  2. sudo iwconfig wlan0 关闭电源
  3. sudo ifconfig wlp2s0 向上
  4. sudo 服务网络管理器重新启动

并尝试过

systemctl list-unit-files --state enabled

keyboard-setup.service                     enabled enabled      
ModemManager.service                       enabled enabled      
network-manager.service                    enabled enabled      
networkd-dispatcher.service                enabled enabled

也尝试过,

sudo wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf

Successfully initialized wpa_supplicant
Failed to open config file '/etc/wpa_supplicant/wpa_supplicant.conf', error: No such file or directory
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.

也尝试过sudo nano /etc/NeworkManager/NetworkManger.conf

    [device]
wifi.scan-rand-mac-address=no

尝试过:

  1. sudo服务蓝牙重启
  2. sudo modprobe wl sudo lshw -C 网络
  3. sudo apt install 网络管理器
  4. 克隆https://github.com/mehedihshakeel/BroadcomInstaller2017.git 克隆 https://github.com/prasathlk/BroadcomInstaller2019.gitcd BroadcomInstaller2019/./Broadcom.sh

这里/etc/pm/sleep.d$ ls

10_grub-common  10_unattended-upgrades-hibernate  config

这里echo "options QCA9377 fwlps=N" | sudo tee /etc/modprobe.d/QCA9377.conf

options QCA9377 fwlps=N

这里sudo nano /etc/dhcp/dhclient.conf #timeout 300;

这里dpkg -S $(which NetworkManager)

network-manager: /usr/sbin/NetworkManager

这是我的apt policy network-manager

network-manager:
  Installed: 1.22.10-1ubuntu2.2
  Candidate: 1.22.10-1ubuntu2.2
  Version table:
 *** 1.22.10-1ubuntu2.2 500
        500 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.22.10-1ubuntu1 500
        500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages

以下是我的sudo journalctl -fu NetworkManager

<info>  [1637549618.0666] dhcp6 (wlp2s0): state changed unknown -> bound
<warn>  [1637549996.3364] sup-iface[0x55dc05fec3d0,wlp2s0]: connection disconnected (reason -3)
<info>  [1637549996.4370] manager: rfkill: Wi-Fi now disabled by radio killswitch
<info>  [1637549996.4374] device (wlp2s0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')
<info>  [1637549996.4665] dhcp4 (wlp2s0): canceled DHCP transaction
<info>  [1637549996.4666] dhcp4 (wlp2s0): state changed bound -> done
<info>  [1637549996.4672] dhcp6 (wlp2s0): canceled DHCP transaction
<info>  [1637549996.4672] dhcp6 (wlp2s0): state changed bound -> done
---------------------
<warn>  [1637553729.6989] sup-iface[0x55dc05fec1f0,wlp2s0]: connection disconnected (reason -3)
<info>  [1637553729.6992] device (wlp2s0): supplicant interface state: completed -> disconnected
<info>  [1637553729.6992] device (p2p-dev-wlp2s0): supplicant management interface state: completed -> disconnected
<info>  [1637553729.7093] device (wlp2s0): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
<info>  [1637553729.7305] dhcp4 (wlp2s0): canceled DHCP transaction
<info>  [1637553729.7306] dhcp4 (wlp2s0): state changed bound -> done
<info>  [1637553729.7314] dhcp6 (wlp2s0): canceled DHCP transaction
<info>  [1637553729.7314] dhcp6 (wlp2s0): state changed bound -> done
---------------------
<warn>  [1637553946.7590] sup-iface[0x55dc05fec1f0,wlp2s0]: connection disconnected (reason -4)
<info>  [1637553946.7982] device (wlp2s0): supplicant interface state: completed -> disconnected
<info>  [1637553946.7982] device (p2p-dev-wlp2s0): supplicant management interface state: completed -> disconnected
<info>  [1637553950.8662] device (wlp2s0): supplicant interface state: disconnected -> scanning
<info>  [1637553950.8662] device (p2p-dev-wlp2s0): supplicant management interface state: disconnected -> scanning
<warn>  [1637553962.0505] device (wlp2s0): link timed out.
<info>  [1637553962.0529] device (wlp2s0): state change: activated -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
<warn>  [1637553962.0610] device (wlp2s0): Activation: failed for connection 'WIFINAME'
<info>  [1637553962.0650] device (wlp2s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
<info>  [1637553962.0985] dhcp4 (wlp2s0): canceled DHCP transaction
<info>  [1637553962.0986] dhcp4 (wlp2s0): state changed bound -> done
<info>  [1637553962.1123] manager: NetworkManager state is now CONNECTED_LOCAL
<info>  [1637553980.3890] manager: rfkill: Wi-Fi hardware radio set disabled
<info>  [1637553980.3891] device (wlp2s0): state change: disconnected -> unavailable (reason 'none', sys-iface-state: 'managed')
<info>  [1637553980.3930] audit: op="radio-control" arg="wireless-enabled" pid=1512 uid=1000 result="success"
<info>  [1637553980.3934] device (p2p-dev-wlp2s0): state change: disconnected -> unavailable (reason 'supplicant-failed', sys-iface-state: 'managed')
<info>  [1637553980.3962] manager: rfkill: Wi-Fi now disabled by radio killswitch
<info>  [1637553984.3856] manager: rfkill: Wi-Fi hardware radio set enabled
<info>  [1637553984.6532] audit: op="radio-control" arg="wireless-enabled" pid=1512 uid=1000 result="success"
<info>  [1637553984.6538] manager: rfkill: Wi-Fi now enabled by radio killswitch
<info>  [1637553984.8032] sup-iface[0x55dc05fec100,wlp2s0]: supports 5 scan SSIDs
<info>  [1637553984.8048] device (wlp2s0): supplicant interface state: starting -> ready
<info>  [1637553984.8049] device (p2p-dev-wlp2s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
<info>  [1637553984.8055] device (wlp2s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')

答案1

你找到解决办法了吗?您可以看一下这个线程:https://askubuntu.com/questions/1230140/wifi-keeps-dropping-out-ubuntu-20-04-and-broadcom-wireless-adaptor。如果有帮助请告诉我。

相关内容