我的 Wifi 轉接器每 5-10 分鐘就會斷開一次連線。我讀到這對某些用戶來說是一個常見問題,特別是如果您的卡是英特爾的。
有關我的機器的一些資訊:
$ lspci|grep Network
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 79)
$ uname -a
Linux rocket 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
紀錄
dmesg
這是斷開連接之前的輸出:
[ 1042.712511] wlp2s0: deauthenticating from 8c:0c:90:08:dd:4c by local choice (Reason: 3=DEAUTH_LEAVING)
這是使用以下命令重新啟動適配器後的輸出sudo service network-manager restart
:
[ 2192.019982] iwlwifi 0000:02:00.0 wlp2s0: disabling HT/VHT due to WEP/TKIP use
[ 2192.020067] wlp2s0: associate with 8c:0c:90:08:dd:4c (try 1/3)
[ 2192.031051] wlp2s0: RX AssocResp from 8c:0c:90:08:dd:4c (capab=0x411 status=0 aid=2)
[ 2192.031802] wlp2s0: associated
[ 2192.082048] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 8c:0c:90:08:dd:4c
嘗試過的解決方案
許多用戶建議/etc/modprobe.d/iwlwifi.conf
透過新增以下行來編輯以停用電源管理:
options iwlwifi 11n_disable=1 power_save=0 power_level=5 bt_coex_active=0` at the end of
其他的建議刪除該模組acer_wmi
:
sudo modprobe -r acer_wmi
其他的 建議定義REGDOMAIN
變數/etc/default/crda
:
sudo iw reg set US
sudo sed -i 's/^REG.*=$/&US/' /etc/default/crda
也可能是由於有兩個實例的wpa_supplicant
:
systemctl list-units
如果是這樣,您可以刪除其中一個:
systemctl disable NetworkManager-wait-online.service
systemctl disable net-auto-wired.service
systemctl disable net-auto-wireless.service
最後,我嘗試使用 Ubuntu 19.04 從 USB 啟動,但問題仍然存在,日誌訊息與上面相同。
無論如何,我已經嘗試過這些方法,但它們沒有解決問題,wifi適配器隨機斷開連接,總是在日誌中顯示此訊息:
[ 1042.712511] wlp2s0: deauthenticating from 8c:0c:90:08:dd:4c by local choice (Reason: 3=DEAUTH_LEAVING)