medin
July 29, 2023, 10:51am
1
On Wayland, after each login I see that wifi password dialog. The problem is that the password is already saved by the system because in the network applet if I attempt to reconnect to my home wifi it doesn’t trigger any password popup.
Operating System: Manjaro Linux
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.7-1-MANJARO (64-bit)
Graphics Platform: Wayland
1 Like
Is the password stored in KWallet?
medin
July 29, 2023, 2:03pm
3
Yes, it’s already stored. If I cancel that popup then click on network applet and select connect, it connects to my wifi without demanding any password.
Hmm, then it sounds like it could be a race condition between KWalletManager and plasma-nm. If you have KWallet set to auto-unlock, perhaps it’s happening too late and plasma-nm is loading before that’s happened yet.
Are you not using the systemd boot integration? What does cat ~/.config/startkderc
say?
medin
July 29, 2023, 3:23pm
5
I don’t have that file, this is a laptop running the same Manjaro installation for more than 3 years, I think I should reinstall it again
If you don’t have that file, it means that the systemd boot integration is on (unless Manjaro globally disables it by default).
And you do have auto-unlock set up properly such that you don’t get prompted for a password to unlock your KWallet, right?
medin
July 29, 2023, 4:10pm
7
It opens without needing to type any password, I will try to delete all saved passwords and modify router password and reboot to test it again.
medin
July 29, 2023, 6:07pm
8
The same problem is still persistent even after removing all saved passwords and changing router access point password.
What I noticied in journald log is that the connection to the saved network fails early.
Date
Unit
Message
7/29/23 5:36 PM
NetworkManager
[1690648609.7300] policy: auto-activating connection ‘Mohamed’ (f36443f9-ac01-44b6-a757-8287fb603bb4)
7/29/23 5:36 PM
NetworkManager
[1690648609.7311] device (wlp7s0): Activation: starting connection ‘Mohamed’ (f36443f9-ac01-44b6-a757-8287fb603bb4)
7/29/23 5:36 PM
NetworkManager
[1690648609.7314] device (wlp7s0): state change: disconnected → prepare (reason ‘none’, sys-iface-state: ‘managed’)
7/29/23 5:36 PM
systemd-logind
New session 2 of user mohamed.
7/29/23 5:36 PM
NetworkManager
[1690648609.7371] manager: NetworkManager state is now CONNECTING
7/29/23 5:36 PM
systemd
Finished User Runtime Directory /run/user/1005.
7/29/23 5:36 PM
NetworkManager
[1690648609.7742] device (wlp7s0): set-hw-addr: reset MAC address to C4:17:FE:08:E8:67 (preserve)
7/29/23 5:36 PM
NetworkManager
[1690648609.7980] device (wlp7s0): state change: prepare → config (reason ‘none’, sys-iface-state: ‘managed’)
7/29/23 5:36 PM
NetworkManager
[1690648609.7989] device (wlp7s0): Activation: (wifi) access point ‘Mohamed’ has security, but secrets are required.
7/29/23 5:36 PM
NetworkManager
[1690648609.7991] device (wlp7s0): state change: config → need-auth (reason ‘none’, sys-iface-state: ‘managed’)
7/29/23 5:36 PM
systemd
Starting User Manager for UID 1005…
7/29/23 5:36 PM
NetworkManager
[1690648609.8075] device (wlp7s0): supplicant interface state: disconnected → interface_disabled
7/29/23 5:36 PM
NetworkManager
[1690648609.8078] device (p2p-dev-wlp7s0): supplicant management interface state: disconnected → interface_disabled
7/29/23 5:36 PM
NetworkManager
[1690648609.8082] device (wlp7s0): no secrets: No agents were available for this request.
7/29/23 5:36 PM
NetworkManager
[1690648609.8085] device (wlp7s0): state change: need-auth → failed (reason ‘no-secrets’, sys-iface-state: ‘managed’)
7/29/23 5:36 PM
NetworkManager
[1690648609.8105] manager: NetworkManager state is now DISCONNECTED
7/29/23 5:36 PM
NetworkManager
[1690648609.8121] device (wlp7s0): Activation: failed for connection ‘Mohamed’
7/29/23 5:36 PM
NetworkManager
[1690648609.8135] device (wlp7s0): state change: failed → disconnected (reason ‘none’, sys-iface-state: ‘managed’)
I searched for any log about kwallet being accessed, the only messages are
Date
Unit
Message
7/29/23 5:36 PM
sddm-helper
pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
7/29/23 5:36 PM
sddm-helper
pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
7/29/23 5:36 PM
sddm-helper
pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
7/29/23 5:36 PM
sddm-helper
pam_kwallet5: final socket path: /run/user/1005/kwallet5.socket
7/29/23 5:37 PM
systemd
Started Unlock kwallet from pam credentials.
The unlocking of KWallet seems to appear after NetworkManager failed to connect to network.
This seems to support my theory that there’s a race condition between KWallet unlocking and plasma-nm trying to connect.