You are not logged in.

#1 2019-06-14 20:35:03

Dunked0n
Member
Registered: 2019-05-29
Posts: 34

No WiFi for a few seconds after suspend

Whenever I close the lid to my laptop, I get disconnected from the internet for a few seconds before it reconnects. Which is really annoying, is there some way I can keep this from happening?

Offline

#2 2019-06-14 22:40:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: No WiFi for a few seconds after suspend

To keep what from happening?  Suspending, yes.

If you want to know if you can resume from suspend and instantaneously be connected to a wireless network, no.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-06-14 22:46:37

Dunked0n
Member
Registered: 2019-05-29
Posts: 34

Re: No WiFi for a few seconds after suspend

Yes I know that but its completely turning off the WiFi network and disconnecting from all networks. Which I don't think its supposed to do.

Offline

#4 2019-06-14 22:53:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: No WiFi for a few seconds after suspend

Moving to Newbie Corner.

Offline

#5 2019-06-14 22:57:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: No WiFi for a few seconds after suspend

Dunked0n wrote:

Which I don't think its supposed to do.

Yes, it is.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2019-06-15 08:03:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: No WiFi for a few seconds after suspend

Is your concern a lack of "S0 Low Power Idle" (the stuff where windows still fetches emails while "sleeping" - this requires special HW and idk about the linux support) or an active drop of the lease?

The latter is polite but probably caused by some sleep hooks of your network managing service (NM?) - unfortunately you told us nothing about the actual network setup.
However, while you probably can maintain the lease, the interface still needs to activate after the power-up. Unfortunately you also provided zero logs for us to understand where the gap comes from.

Also notice that
a) The AP/router/switch will have a limited lease time and you get kicked at some point and then will have to re-lease.
b) in this case if you switch location between the sleeps
   1. you're an asshole because you keep a lease you don't use
   2. your NM will unlikely auto-connect to the next best network (at an instant) so you might have to reconnect by hand or wait an even longer time until the NM figures that this AP is gone (if it does so at all)

Offline

#7 2019-06-15 15:52:10

Dunked0n
Member
Registered: 2019-05-29
Posts: 34

Re: No WiFi for a few seconds after suspend

Here is some output from "sudo journalctl -f" when suspending and unsuspending the computer

https://hastebin.com/dawabatago.sql

Offline

#8 2019-06-15 16:11:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: No WiFi for a few seconds after suspend

And what did you read in it?

Offline

#9 2019-06-15 16:17:54

Dunked0n
Member
Registered: 2019-05-29
Posts: 34

Re: No WiFi for a few seconds after suspend

Its saying something about limiting TX power. What does that mean?

Edit: also doing some some research and a "iwconfig" says that it may also be a problem with power managment. I've tried using some of the solutions provided on the wiki and other fourm threads to turn off the power management but to no avail. Any solutions? (The driver im using is "iwlwifi"

Edit2: Just figured out how to turn off power management with "iwconfig wlp3s0 power off". It did not solve the problem though

Last edited by Dunked0n (2019-06-15 16:27:59)

Offline

#10 2019-06-15 16:25:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: No WiFi for a few seconds after suspend

Transmission power, irrelevant. It's "limited" to the maximum value of the (is that really legal at your location?) range.

Edit: read the journal closer. What happens and when?

Last edited by seth (2019-06-15 16:26:04)

Offline

#11 2019-06-15 16:31:53

Dunked0n
Member
Registered: 2019-05-29
Posts: 34

Re: No WiFi for a few seconds after suspend

Upon looking closer, the logs are saying they are activating a "RF kill switch".

15 11:48:25 blackndoob systemd[1]: Started Load/Save RF Kill Switch Status

Is there any way to stop the system from activating it?

Offline

#12 2019-06-15 20:23:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Offline

Board footer

Powered by FluxBB