Arch-Linux

Arch Linux NetworkManager wifi 隨機掉線

  • March 29, 2022

概述

我有一個 Arch Linux/Windows 10 雙啟動桌面,我已經使用了幾年,幾乎沒有問題。就在昨天,我讓我的 WiFi 連接工作了 5 到 30 秒,然後退出只是為了重新連接。然後,我在“我嘗試過的事情”部分完成了整個過程,但我現在在這裡仍然一無所獲。唯一要注意的另一件事是,當用於 pacman 更新之類的東西時,WiFi 似乎會立即下降。

我將不勝感激,我願意根據需要上傳任何額外的文件,但是我嘗試附加任何我認為可能需要的文件和日誌,但我的 journalctl 日誌除外,因為它們很長,我不確定如何編輯它們以在網際網路上發布,以便任何方向都將不勝感激。

我嘗試過的事情

我開始做一些事情,比如檢查多個網路管理器是否正在執行,發現我已經dhcpcd執行了,即使NetworkManager不使用它,所以我禁用了它。然後我登錄到路由器,看到 ipv6 已“斷開連接”,所以我嘗試通過核心參數禁用 ipv6。在路由器頁面中,我還嘗試分配一個靜態 ip,以防問題出在 dhcp 分配上,但因為這並沒有做任何事情,所以我取消了它。然後我嘗試啟動到 Windows 並禁用快速啟動,因為有人說它有助於解決另一個論壇文章上的類似問題。然後我嘗試啟動 Arch 安裝程序,它沒有相同的連接問題。最近,我嘗試使用systemd-networkd它來檢查它是否是一個NetworkManager問題並且問題仍然存在。

補充材料

iwconfig輸出:

wlp3s0    IEEE 802.11  ESSID:"118527-2.4G"
         Mode:Managed  Frequency:2.462 GHz  Access Point: 84:D3:43:04:97:D1
         Bit Rate=144.4 Mb/s   Tx-Power=20 dBm
         Retry short limit:7   RTS thr:off   Fragment thr:off
         Power Management:off
         Link Quality=59/70  Signal level=-51 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:11   Missed beacon:0

sudo systemctl list-units --type service --no-pager -l輸出:

 UNIT                                                                                      LOAD   ACTIVE SUB     DESCRIPTION
 dbus.service                                                                              loaded active running D-Bus System Message Bus
 getty@tty1.service                                                                        loaded active running Getty on tty1
 kmod-static-nodes.service                                                                 loaded active exited  Create List of Static Device Nodes
 lvm2-monitor.service                                                                      loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
 NetworkManager.service                                                                    loaded active running Network Manager
 polkit.service                                                                            loaded active running Authorization Manager
 rtkit-daemon.service                                                                      loaded active running RealtimeKit Scheduling Policy Service
 systemd-binfmt.service                                                                    loaded active exited  Set Up Additional Binary Formats
 systemd-fsck@dev-disk-by\x2duuid-BB3A\x2d636F.service                                     loaded active exited  File System Check on /dev/disk/by-uuid/BB3A-636F
 systemd-fsck@dev-disk-by\x2duuid-f51233b1\x2d0c82\x2d4271\x2dbd8f\x2d46f85c54f510.service loaded active exited  File System Check on /dev/disk/by-uuid/f51233b1-0c82-4271-bd8f-46f85c54f510
 systemd-journal-flush.service                                                             loaded active exited  Flush Journal to Persistent Storage
 systemd-journald.service                                                                  loaded active running Journal Service
 systemd-logind.service                                                                    loaded active running User Login Management
 systemd-modules-load.service                                                              loaded active exited  Load Kernel Modules
 systemd-random-seed.service                                                               loaded active exited  Load/Save Random Seed
 systemd-remount-fs.service                                                                loaded active exited  Remount Root and Kernel File Systems
 systemd-sysctl.service                                                                    loaded active exited  Apply Kernel Variables
 systemd-tmpfiles-setup-dev.service                                                        loaded active exited  Create Static Device Nodes in /dev
 systemd-tmpfiles-setup.service                                                            loaded active exited  Create Volatile Files and Directories
 systemd-udev-trigger.service                                                              loaded active exited  Coldplug All udev Devices
 systemd-udevd.service                                                                     loaded active running Rule-based Manager for Device Events and Files
 systemd-update-utmp.service                                                               loaded active exited  Record System Boot/Shutdown in UTMP
 systemd-user-sessions.service                                                             loaded active exited  Permit User Sessions
 transmission.service                                                                      loaded active running Transmission BitTorrent Daemon
 udisks2.service                                                                           loaded active running Disk Manager
 user-runtime-dir@1000.service                                                             loaded active exited  User Runtime Directory /run/user/1000
 user@1000.service                                                                         loaded active running User Manager for UID 1000
 wpa_supplicant.service                                                                    loaded active running WPA supplicant

inxi輸出:

System:
 Host: kali Kernel: 5.16.16-arch1-1 arch: x86_64 bits: 64 Desktop: i3
   v: 4.20.1 Distro: Arch Linux
Network:
 Device-1: Qualcomm Atheros AR93xx Wireless Network Adapter driver: ath9k
 Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
   driver: r8169

uname -sr您還可以發布或更好的輸出嗎inxi -NS

您的問題可能與fix info leak with DMA_FROM_DEVICE集成在核心 5.16.15 和 5.16.16 以及 5.15.29 中的最新版本有關。您可以在此處跟踪錯誤

我目前的解決方法是使用引入該問題的核心版本之前的核心版本。我在用著5.16.14-arch1-1

引用自:https://unix.stackexchange.com/questions/696458