我在使用 NetworkManager 時遇到了以下問題。
突然,我的 WiFi 連線遺失,且 NetworkManager Applet(版本 1.8.22)未選取「啟用 Wi-Fi」選項。我必須手動檢查它,然後再次連接到我的家庭 WiFi 網路。
我已經確定了相關的日誌條目:
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <warn> [1569342045.9154] sup-iface[0x556cb636c130,wlan0]: connection disconnected (reason -3)
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9205] manager: rfkill: Wi-Fi now disabled by radio killswitch
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9206] device (wlan0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9208] dhcp4 (wlan0): canceled DHCP transaction
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9208] dhcp4 (wlan0): state changed bound -> done
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9276] device (wlan0): set-hw-addr: set MAC address to 06:EA:00:C8:ED:A5 (scanning)
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9286] manager: NetworkManager state is now DISCONNECTED
Sep 24 18:20:45 pavel-pc NetworkManager[582]: <info> [1569342045.9369] device (p2p-dev-wlan0): state change: disconnected -> unavailable (reason 'supplicant-failed', sys-iface-state: 'managed')
這似乎不經常發生,但我仍然想知道我是否做錯了什麼。
我認為真正禁用 wifi 的工具是這個 rfkill (我日誌中的第二行),但為什麼呢?
其內容/var/lib/NetworkManager/NetworkManager.state
為:
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
我應該注意什麼才能確保這種情況不會再次發生?
謝謝