Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software] Cannot connect to wifi after sleep

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
andy55
Posts: 84
Joined: 2012-08-20 12:59

[Software] Cannot connect to wifi after sleep

#1 Post by andy55 »

Hello,

my debian (testing) cannot connect back to WiFi after waking up from a sleep state (i.e. when I leave it for a while) and I get the following logs:

Code: Select all

Dec 28 20:23:31 laptop NetworkManager[936]: <info>  [1672259011.8148] device (wlp2s0): Activation: starting connection 'VM876549' (ccec0c9f-ef8e-4779-b92c-0a360a8a0f54)
Dec 28 20:23:31 laptop NetworkManager[936]: <info>  [1672259011.8152] audit: op="connection-activate" uuid="ccec0c9f-ef8e-4779-b92c-0a360a8a0f54" name="VM876549" pid=1830 uid=1000 result="success"
Dec 28 20:23:31 laptop NetworkManager[936]: <info>  [1672259011.8155] device (wlp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 28 20:23:31 laptop NetworkManager[936]: <info>  [1672259011.8167] manager: NetworkManager state is now CONNECTING
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3550] device (wlp2s0): set-hw-addr: reset MAC address to 44:1C:A8:E3:1A:81 (preserve)
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3605] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3615] device (wlp2s0): Activation: (wifi) access point 'VM876549' has security, but secrets are required.
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3616] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3633] device (wlp2s0): supplicant interface state: inactive -> disconnected
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3634] device (p2p-dev-wlp2s0): supplicant management interface state: inactive -> disconnected
Dec 28 20:23:32 laptop NetworkManager[936]: <warn>  [1672259012.3636] device (wlp2s0): no secrets: No agents were available for this request.
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3637] device (wlp2s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3649] manager: NetworkManager state is now DISCONNECTED
Dec 28 20:23:32 laptop NetworkManager[936]: <warn>  [1672259012.3656] device (wlp2s0): Activation: failed for connection 'VM876549'
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.3663] device (wlp2s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.9037] device (wlp2s0): set-hw-addr: set MAC address to D6:B6:E3:F4:1A:0D (scanning)
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.9075] device (wlp2s0): supplicant interface state: disconnected -> inactive
Dec 28 20:23:32 laptop NetworkManager[936]: <info>  [1672259012.9075] device (p2p-dev-wlp2s0): supplicant management interface state: disconnected -> inactive

I have to reboot the laptop to be able to connect to wifi again.

Can anyone suggest any solution ?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: [Software] Cannot connect to wifi after sleep

#2 Post by FreewheelinFrank »

no secrets: No agents were available for this request
Means nothing was available to supply the required password.

Does this apply?
When using Gnome Keyring to encrypt passwords, several interfaces to NetworkManager (at least nmcli and nm-connection-editor) will only have access to the passwords if nm-applet is running (as apparently it is the entity communicating with the keyring, through libsecret). This can be surprising when trying to use NetworkManager outside of Gnome (e.g. in Sway, or without a graphical user interface), see https://bbs.archlinux.org/viewtopic.php?id=246698 for more details.
https://wiki.archlinux.org/title/Talk:N ... be_running

andy55
Posts: 84
Joined: 2012-08-20 12:59

Re: [Software] Cannot connect to wifi after sleep

#3 Post by andy55 »

I don't really understand this - when I boot my laptop it connects to wifi without any issue. Why it has any issues after waking up from a sleep state ?

I use NetworkManager with KDE and it used to work.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: [Software] Cannot connect to wifi after sleep

#4 Post by FreewheelinFrank »

These things tend to happen in Testing.

Either KDE Wallet is not available to supply the password, or the bit of Network Manager that needs to be awake is not.

There have been issues with KDE Wallet before on the forum. Try a search for that. I will have a look too later on. (On mobile device at the moment.)

Edit: See this thread.

viewtopic.php?p=734033&hilit=KDE+Wallet#p734033

andy55
Posts: 84
Joined: 2012-08-20 12:59

Re: [Software] Cannot connect to wifi after sleep

#5 Post by andy55 »

To clarify: does KDE Wallet stores wifi passwords - is this how it work ?

Post Reply