我尝试过的方法

我尝试过的方法

最近我遇到了一个错误,我的 WiFi 断开了,我只能重启电脑才能找到网络。我只运行 Lubuntu,几个月的使用都没有出现这个问题。我还没有机会测试有线连接是否存在同样的问题。

我发现解决这个问题的唯一临时方法是重启电脑,但即便如此,电脑也只有 75% 左右的时间可以重新工作。WiFi 工作时,通常会持续 0-15 分钟左右,然后断开连接。我注意到,当我打开电脑但不打开 Chrome/Firefox 时,它往往会持续更长时间才会崩溃。

当我断开连接时,我会在任务栏上收到类似这样的通知。 10/23/21 10:59 AM - NetworkManager(nm-tray): Connection Lost

我只能将问题追溯到我的网络控制器无人认领我的电脑无法识别我的无线设备,phy0。但显然事情没这么简单。

sudo lshw -C network在对比rfkill listWiFi 断开连接前后时可以看到这一点。

sudo lshw -C network撞车前

*-network                 
   description: Wireless interface
   product: Wireless 8265 / 8275
   vendor: Intel Corporation
   physical id: 0
   bus info: pci@0000:3f:00.0
   logical name: wlp63s0
   version: 78
   serial: ac:ed:5c:d9:2a:06
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
   configuration: broadcast=yes driver=iwlwifi driverversion=5.11.0-38-generic firmware=36.77d01142.0 8265-36.ucode ip=10.10.79.178 latency=0 link=yes multicast=yes wireless=IEEE 802.11
   resources: irq:135 memory:8a200000-8a201fff

sudo lshw -C network碰撞后

*-network UNCLAIMED       
   description: Network controller
   product: Wireless 8265 / 8275
   vendor: Intel Corporation
   physical id: 0
   bus info: pci@0000:3f:00.0
   version: 78
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress cap_list
   configuration: latency=0
   resources: memory:8a200000-8a201fff

rfkill list撞车前

0: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: ideapad_bluetooth: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
3: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

rfkill list碰撞后

0: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: ideapad_bluetooth: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

我尝试过的方法

我尝试过太多随机解决方案,但以下是一些我可以自信描述的最近的解决方案:

  1. 重新安装了 Lubuntu 21.10 的新副本。在对系统进行任何更改之前,问题仍然存在。

  2. 重新安装了 Lubuntu 20.04.3 LTS 的新副本。在对系统进行任何更改之前,问题仍然存在。

  3. 禁用 wifi 电源管理这里。我没有注意到任何改进,所以我撤销了这个更改。

  4. sudo modprobe -r iwlwifi移除并重新插入 wifi 模块sudo modprobe iwlwifi

  5. 停止/禁用/启动/启用NetworkManager.servicenetwork-manager.service


sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service
sudo systemctl start NetworkManager.service
sudo systemctl enable NetworkManager.service

sudo systemctl stop network-manager.service
sudo systemctl disable network-manager.service
sudo systemctl start network-manager.service
sudo systemctl enable network-manager.service

如果这是一个驱动程序问题,可以通过卸载/安装不同的驱动程序来解决,我担心我会破坏某些东西,根本无法连接。事实上,我甚至可以连接几分钟,这让我充满希望。

一些额外的、希望相关的信息

lspci -k

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        Subsystem: Lenovo Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
        Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
        Subsystem: Lenovo HD Graphics 620                                                                                                                                                    
        Kernel driver in use: i915                                                                                                                                                           
        Kernel modules: i915                                                                                                                                                                 
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/                                                                                                                     E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)                                                                                                                                 
        Subsystem: Lenovo Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Proces                                                                                                                     sor Thermal Subsystem                                                                                                                                                                        
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
        Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
        Subsystem: Lenovo Sunrise Point-LP Thermal subsystem
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
        Subsystem: Lenovo Sunrise Point-LP Serial IO I2C Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
        Subsystem: Lenovo Sunrise Point-LP Serial IO I2C Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 (rev 21)
        Subsystem: Lenovo Sunrise Point-LP Serial IO I2C Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
        Subsystem: Lenovo Sunrise Point-LP CSME HECI
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
        Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1)
        Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
        Kernel driver in use: pcieport
00:1e.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO UART Controller #0 (rev 21)
        Subsystem: Lenovo Sunrise Point-LP Serial IO UART Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
        Subsystem: Lenovo Sunrise Point LPC Controller/eSPI Controller
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
        Subsystem: Lenovo Sunrise Point-LP PMC
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
        Subsystem: Lenovo Sunrise Point-LP HD Audio
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
        Subsystem: Lenovo Sunrise Point-LP SMBus
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
3f:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
        Subsystem: Intel Corporation Dual Band Wireless-AC 8265
        Kernel modules: iwlwifi
40:00.0 Non-Volatile memory controller: Intel Corporation SSD 600P Series (rev 03)
        Subsystem: Intel Corporation SSD 600P Series
        Kernel driver in use: nvme
        Kernel modules: nvme

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

uname -sr

Linux 5.11.0-38-generic

非常感谢您的帮助/见解。我会尽力响应并提供任何所需信息等。

请求的命令输出

inxi -n撞车前

Network:   Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi 
           IF: wlp63s0 state: up mac: ac:ed:5c:d9:2a:06 

inxi -n碰撞后

Network:   Device-1: Intel Wireless 8265 / 8275 driver: N/A

sudo dmesg | grep iwl撞车前

[    5.140125] iwlwifi 0000:3f:00.0: Found debug destination: EXTERNAL_DRAM
[    5.140130] iwlwifi 0000:3f:00.0: Found debug configuration: 0
[    5.140744] iwlwifi 0000:3f:00.0: loaded firmware version 36.77d01142.0 8265-36.ucode op_mode iwlmvm
[    5.184742] iwlwifi 0000:3f:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[    5.193588] iwlwifi 0000:3f:00.0: Applying debug destination EXTERNAL_DRAM
[    5.194155] iwlwifi 0000:3f:00.0: Allocated 0x00400000 bytes for firmware monitor.
[    5.250297] iwlwifi 0000:3f:00.0: base HW address: ac:ed:5c:d9:2a:06
[    5.325343] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    5.340260] iwlwifi 0000:3f:00.0 wlp63s0: renamed from wlan0
[    5.861219] iwlwifi 0000:3f:00.0: Applying debug destination EXTERNAL_DRAM
[    5.994119] iwlwifi 0000:3f:00.0: Applying debug destination EXTERNAL_DRAM
[    6.061098] iwlwifi 0000:3f:00.0: FW already configured (0) - re-configuring

sudo dmesg | grep iwl碰撞后

[    6.141845] iwlwifi 0000:3f:00.0: FW already configured (0) - re-configuring
[  162.126250] iwlwifi 0000:3f:00.0: Error sending STATISTICS_CMD: time out after 2000ms.
[  162.126266] iwlwifi 0000:3f:00.0: Current CMD queue read_ptr 1 write_ptr 2
[  162.143880] WARNING: CPU: 2 PID: 549 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2013 iwl_trans_pcie_grab_nic_access+0x1ab/0x1e0 [iwlwifi]
[  162.143896] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match snd_soc_acpi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core snd_hwdep soundwire_bus snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq nls_iso8859_1 mei_hdcp iwlmvm mac80211 libarc4 intel_rapl_msr iwlwifi snd_seq_device snd_timer input_leds uvcvideo x86_pkg_temp_thermal hid_sensor_als intel_powerclamp videobuf2_vmalloc videobuf2_memops coretemp hid_sensor_accel_3d hid_sensor_trigger videobuf2_v4l2 rapl industrialio_triggered_buffer kfifo_buf intel_cstate snd wmi_bmof serio_raw videobuf2_common intel_wmi_thunderbolt hid_sensor_iio_common efi_pstore btusb btrtl cfg80211 industrialio btbcm
[  162.143987] RIP: 0010:iwl_trans_pcie_grab_nic_access+0x1ab/0x1e0 [iwlwifi]
[  162.144014]  iwl_write_prph_delay+0x41/0xb0 [iwlwifi]
[  162.144023]  iwl_force_nmi+0x59/0x60 [iwlwifi]
[  162.144030]  iwl_trans_pcie_sync_nmi+0x1f8/0x270 [iwlwifi]
[  162.144040]  iwl_pcie_send_hcmd_sync+0x2f0/0x390 [iwlwifi]
[  162.144051]  iwl_trans_pcie_send_hcmd+0x34/0xf0 [iwlwifi]
[  162.144060]  iwl_trans_send_cmd+0x55/0xc0 [iwlwifi]
[  162.144071]  iwl_mvm_send_cmd+0x1f/0x40 [iwlmvm]
[  162.144081]  iwl_mvm_request_statistics+0x72/0xd0 [iwlmvm]
[  162.144090]  iwl_mvm_mac_sta_statistics+0x17d/0x3c0 [iwlmvm]

[  162.144277] iwlwifi 0000:3f:00.0: iwlwifi transaction failed, dumping registers

[  162.162022] WARNING: CPU: 2 PID: 549 at drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:1342 iwl_mvm_dump_lmac_error_log+0x4f7/0x550 [iwlmvm]
[  162.162118] RIP: 0010:iwl_mvm_dump_lmac_error_log+0x4f7/0x550 [iwlmvm]
[  162.162142]  iwl_mvm_dump_nic_error_log+0x28/0x130 [iwlmvm]
[  162.162150]  iwl_mvm_nic_error+0x35/0x40 [iwlmvm]
[  162.162158]  iwl_trans_pcie_sync_nmi+0xbf/0x270 [iwlwifi]
[  162.162170]  iwl_pcie_send_hcmd_sync+0x2f0/0x390 [iwlwifi]
[  162.162182]  iwl_trans_pcie_send_hcmd+0x34/0xf0 [iwlwifi]
[  162.162191]  iwl_trans_send_cmd+0x55/0xc0 [iwlwifi]
[  162.162201]  iwl_mvm_send_cmd+0x1f/0x40 [iwlmvm]
[  162.162209]  iwl_mvm_request_statistics+0x72/0xd0 [iwlmvm]
[  162.162217]  iwl_mvm_mac_sta_statistics+0x17d/0x3c0 [iwlmvm]

[  162.162394] iwlwifi 0000:3f:00.0: HW error, resetting before reading
[  162.220661] iwlwifi 0000:3f:00.0: Collecting data: trigger 2 fired.
[  164.833034] iwlwifi 0000:3f:00.0: Applying debug destination EXTERNAL_DRAM
[  164.937153] iwlwifi 0000:3f:00.0: Could not load the [0] uCode section
[  164.937159] iwlwifi 0000:3f:00.0: Failed to start INIT ucode: -5
[  164.937161] iwlwifi 0000:3f:00.0: Failed to run INIT ucode: -5
[  164.937163] iwlwifi 0000:3f:00.0: Failed to start RT ucode: -5
[  164.937174] iwlwifi 0000:3f:00.0: Collecting data: trigger 16 fired.

[  164.971939] WARNING: CPU: 2 PID: 39 at drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:1342 iwl_mvm_dump_lmac_error_log+0x4f7/0x550 [iwlmvm]
[  164.972072] RIP: 0010:iwl_mvm_dump_lmac_error_log+0x4f7/0x550 [iwlmvm]
[  164.972099]  iwl_mvm_dump_nic_error_log+0x28/0x130 [iwlmvm]
[  164.972108]  iwl_mvm_nic_error+0x35/0x40 [iwlmvm]
[  164.972116]  iwl_trans_pcie_sync_nmi+0xbf/0x270 [iwlwifi]
[  164.972128]  ? iwl_fw_dbg_collect_desc+0xde/0x190 [iwlwifi]
[  164.972140]  iwl_fw_dbg_error_collect+0x59/0xc0 [iwlwifi]
[  164.972151]  iwl_mvm_up+0xf0/0xca0 [iwlmvm]
[  164.972185]  __iwl_mvm_mac_start+0x2b/0x180 [iwlmvm]
[  164.972193]  iwl_mvm_mac_start+0x2a/0x40 [iwlmvm]

[  165.030282] iwlwifi 0000:3f:00.0: Firmware error during reconfiguration - reprobe!

[  167.142128] iwlwifi 0000:3f:00.0: enabling device (0000 -> 0002)
[  167.142251] iwlwifi 0000:3f:00.0: HW_REV=0xFFFFFFFF, PCI issues?
[  167.142318] iwlwifi: probe of 0000:3f:00.0 failed with error -5

sudo journalctl -b 0 -u NetworkManager碰撞后

Oct 24 14:24:39 sanguine NetworkManager[542]: <info>  [1635099879.8878] ifupdown: management mode: unmanaged
Oct 24 14:24:39 sanguine NetworkManager[542]: <warn>  [1635099879.8880] ifupdown: interfaces file /etc/network/interfaces doesn't exist

Oct 24 14:24:39 sanguine NetworkManager[542]: <info>  [1635099879.8920] device (wlp63s0): driver supports Access Point (AP) mode
Oct 24 14:24:39 sanguine NetworkManager[542]: <info>  [1635099879.8927] manager: (wlp63s0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/2)
Oct 24 14:24:39 sanguine NetworkManager[542]: <info>  [1635099879.8964] device (wlp63s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Oct 24 14:24:40 sanguine NetworkManager[542]: <warn>  [1635099880.1283] Error: failed to open /run/network/ifstate

Oct 24 14:24:40 sanguine NetworkManager[542]: <info>  [1635099880.2347] Wi-Fi P2P device controlled by interface wlp63s0 created
Oct 24 14:24:40 sanguine NetworkManager[542]: <info>  [1635099880.2353] manager: (p2p-dev-wlp63s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/3)
Oct 24 14:24:40 sanguine NetworkManager[542]: <info>  [1635099880.2362] device (p2p-dev-wlp63s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Oct 24 14:24:40 sanguine NetworkManager[542]: <info>  [1635099880.2381] device (p2p-dev-wlp63s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Oct 24 14:24:40 sanguine NetworkManager[542]: <info>  [1635099880.2389] device (wlp63s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Oct 24 14:24:40 sanguine NetworkManager[542]: <warn>  [1635099880.2437] sup-iface: failed to cancel p2p connect: P2P cancel failed
Oct 24 14:24:43 sanguine NetworkManager[542]: <info>  [1635099883.6603] policy: auto-activating connection 'Bard-secure' (836a0586-f3f8-4fea-8951-9373634d6567)
Oct 24 14:24:43 sanguine NetworkManager[542]: <info>  [1635099883.6608] device (wlp63s0): Activation: starting connection 'Bard-secure' (836a0586-f3f8-4fea-8951-9373634d6567)
Oct 24 14:24:43 sanguine NetworkManager[542]: <info>  [1635099883.6610] device (wlp63s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')

Oct 24 14:36:14 sanguine NetworkManager[542]: <warn>  [1635100574.8515] sup-iface[0x55611c431120,wlp63s0]: connection disconnected (reason -3)
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.8534] device (wlp63s0): state change: activated -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.8851] dhcp4 (wlp63s0): canceled DHCP transaction
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.8852] dhcp4 (wlp63s0): state changed bound -> done
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.8948] manager: NetworkManager state is now DISCONNECTED
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.9042] device (p2p-dev-wlp63s0): state change: disconnected -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Oct 24 14:36:14 sanguine NetworkManager[542]: <info>  [1635100574.9068] radio killswitch /sys/devices/pci0000:00/0000:00:1c.5/0000:3f:00.0/ieee80211/phy0/rfkill3 disappeared
Oct 24 14:36:14 sanguine NetworkManager[542]: <warn>  [1635100574.9071] dns-sd-resolved[4cf74bac7d90a488]: send-updates failed to update systemd-resolved: GDBus.Error:org.freedesktop.resolve1.NoSuchLink: Link 2 not known

答案1

作为 Ubuntu Linux 的新手,我按照各种聪明人重置 Wifi 驱动程序代码/命令的解决方案解决了我在 Ubuntu 20.04 上随机掉线的 Wifi 问题。但是,我还发现这是 Wifi 适配器卡连接的硬件问题,就像 @sanguine 遇到的一样。在 Windows 10 中,Wifi 掉线不是我所知道的问题。在将操作系统更改为 Ubuntu 时,问题表现为随机但有规律的发生,尤其是在 2021 年 1 月 11 日之前的几天。根据 @chili555 的建议,我按照 HP Envy 笔记本电脑的说明操作,移除并重新插入 Wifi 适配器卡,然后重新启动 Ubuntu。您可以看到,现在在 11 月 4 日,我已经 72 小时没有重新启动来恢复 Wifi 了。因此请注意,当一个相对快速的硬件操作可能会解决问题时,可能需要花费大量时间通过软件解决方案进行跟踪。现在,我将在每次睡眠/挂起事件后屏住呼吸,看看它从这里开始如何发展。在此过程中,我对 Ubuntu 的功能有了更多的了解,因此感谢所有贡献软件解决方案的人。

|david@david-HP-ENVY|-Notebook:~$| last | grep reboot|
|:----|:-----------:|:--------------:|:---------------:|------:|
|reboot system boot:|5.11.0-38-generi|Mon Nov  1 12:48|still running| 
|reboot system boot|5.11.0-38-generi| Sun Oct 31 22:13 |- 23:48  (01:34)|
|reboot system boot|5.11.0-38-generi|Sun Oct 31 16:03| - 22:13  (06:09)|
|reboot system boot|5.11.0-38-generi|Sat Oct 30 20:40| - 16:03  (20:22)|
|reboot system boot|5.11.0-38-generi|Fri Oct 29 20:43| - 20:40  (23:56)|
|reboot system boot|5.11.0-38-generi|Thu Oct 28 22:28| - 20:42  (22:14)|
david@david-HP-ENVY-Notebook:~$

在上述情况之后,我确实遇到了一次 Wifi 掉线的情况,但这可能是由于我的双启动系统 Windows 10 自动进行了意外的 Win 10 更新,然后 grub 在 Win 10 更新重启时启动到 Ubuntu - 我相信系统处于两者之间导致了暂时的不稳定。

然而,这促使我再次查看 Wifi 掉线问题,我还找到了一个关于如何禁用 Wifi 适配器上的省电功能的链接。看来省电功能可能会在从睡眠/挂起重启时引起冲突。我使用了@Jeremy31 提供的这个说明在链接上在睡眠/挂起期间禁用省电 - 它将 (3) 启用更改为 (2) 禁用

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

反向执行上述(2)和(3)指令即可重新启用省电模式。

自从做了上述更改后,我就再也没有遇到过 WIFI 随机掉线的情况。希望这种情况能一直持续下去!

答案2

我在配备 Intel Wifi 6 的新联想电脑上也遇到了 wifi 断线的情况。我尝试将 Ubuntu 20.04 升级到 21.04,然后升级到 21.10,还尝试更改 wifi.powersave = 2 配置,但均未成功。看来电源管理是问题所在,因为将“设置-电源-电源模式”更改为“性能”已解决问题,至少对我来说是这样

相关内容