Suspend/Resume: Wifi takes longer to reconnect if suspending "properly"
I use suspend and resume (s2idle) on my laptop a lot, so getting up and running again quickly is a priority for me. I'm using NetworkManager (for the logs I used the latest version from Git) and there are different behaviours depending on how I trigger the suspend command.
If I just put "mem" in /sys/power/state
, NetworkManager is reconnecting extremely fast. It takes around 3 seconds to be able to ping again which is about the time it takes for me to open the lid of my laptop and typing my password. Logfile
If, however, I use the proper route to suspend, i.e. using systemctl suspend
, NetworkManager takes at the very least twice that time to regain a connection. I see NetworkManager taking down the old connection properly, then rescanning, then reconnecting (if I read the logs correctly :). Logfile
I wonder if there is any way to speed up that process. Is there any way to just assume conditions haven't changed (i.e. I haven't moved my computer to another location) and therefore reuse the old connection?