问题
我的 wifi 连接大部分时间都正常。有时它会断开连接并nm-applet
弹出一个窗口要求输入 wifi 密码,但密码已经填好,我只需确认密码即可再次连接。
在它断开连接直到我确认凭证期间,我没有互联网连接。
我的发现
我sudo journalctl -u NetworkManager
查看了最近一次断线事件的日志。我不知道问题可能是什么,但最新的警告与问题的时间有些吻合。
日记帐分录
<warn> [1698165031.6878] device (wlp8s0): no secrets: No agents were available for this request.
<info> [1698165031.6879] device (wlp8s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
<info> [1698165031.6883] manager: NetworkManager state is now DISCONNECTED
<info> [1698165032.2078] device (wlp8s0): set-hw-addr: set MAC address to C6:1C:DC:4D:05:1E (scanning)
<warn> [1698165032.7150] device (wlp8s0): Activation: failed for connection '<Network Name>'
<info> [1698165032.7151] device (wlp8s0): supplicant interface state: inactive -> interface_disabled
<info> [1698165032.7151] device (p2p-dev-wlp8s0): supplicant management interface state: inactive -> interface_disabled
<info> [1698165032.7152] device (wlp8s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
<info> [1698165032.7353] device (wlp8s0): supplicant interface state: interface_disabled -> inactive
<info> [1698165032.7353] device (p2p-dev-wlp8s0): supplicant management interface state: interface_disabled -> inactive
它会继续扫描,直到
<info> [1698170938.1459] device (wlp8s0): Activation: starting connection '<Network Name>' (bd5926db-140d-4bf6-82be-f063b3591774)
<info> [1698170938.1460] audit: op="connection-activate" uuid="bd5926db-140d-4bf6-82be-f063b3591774" name="<Network Name>" pid=1237 uid=1000 result="success"
<info> [1698170938.1461] device (wlp8s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
<info> [1698170938.1464] manager: NetworkManager state is now CONNECTING
<info> [1698170938.6359] device (wlp8s0): set-hw-addr: reset MAC address to 50:3E:AA:74:18:C3 (preserve)
<info> [1698170939.1030] device (wlp8s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
<info> [1698170939.1033] device (wlp8s0): Activation: (wifi) access point '<Network Name>' has security, but secrets are required.
<info> [1698170939.1034] device (wlp8s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
<info> [1698170939.1037] device (wlp8s0): supplicant interface state: inactive -> interface_disabled
<info> [1698170939.1038] device (p2p-dev-wlp8s0): supplicant management interface state: inactive -> interface_disabled
<info> [1698170939.1044] device (wlp8s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
<info> [1698170939.1046] device (wlp8s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
<info> [1698170939.1049] device (wlp8s0): Activation: (wifi) connection '<Network Name>' has security, and secrets exist. No new secrets needed.
<info> [1698170939.1050] Config: added 'ssid' value '<Network Name>'
<info> [1698170939.1050] Config: added 'scan_ssid' value '1'
<info> [1698170939.1052] Config: added 'bgscan' value 'simple:30:-65:300'
<info> [1698170939.1053] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
<info> [1698170939.1053] Config: added 'auth_alg' value 'OPEN'
<info> [1698170939.1054] Config: added 'psk' value '<hidden>'
秘密已经存在。无需新的秘密。
那么为什么它会提示我(用户)输入凭证呢?
这两个问题有解决办法吗?(防止完全断开连接/自动重新连接)