You are not logged in.

#1 2018-04-16 14:15:38

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Keep Wi-Fi Connected while Sleeping

Since I leave my computer plugged in while sleeping, I was wondering if there is a way to force the Wi-Fi connection to stay connected to allow a faster wake-up process?  Right now, I have to wait about 10 seconds for Wi-Fi to connect again when waking the computer.  It works well, but I was hoping to keep the connection active so I can just start typing immediately after waking the computer.  I've seen lots of discussion about making sure to turn Wi-Fi off to save battery life, but I'd like to do the opposite.  Is this possible?

Offline

#2 2018-04-16 17:24:54

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Keep Wi-Fi Connected while Sleeping

echo s2idle >/sys/power/mem_sleep
echo mem >/sys/power/state

Offline

#3 2018-04-16 17:48:04

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: Keep Wi-Fi Connected while Sleeping

What do these commands do?

Offline

#4 2018-04-16 19:31:42

seth
Member
Registered: 2012-09-03
Posts: 49,961

Online

#5 2018-04-16 22:05:41

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: Keep Wi-Fi Connected while Sleeping

Thanks, I'm still trying to understand that information.  Even after trying these commands, my Wi-Fi is still disconnecting during suspend.

Offline

#6 2018-04-17 06:37:17

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: Keep Wi-Fi Connected while Sleeping

What happened after issuing the second command?

Online

#7 2018-04-19 21:56:49

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: Keep Wi-Fi Connected while Sleeping

My computer suspended.  Nothing was changed in the state file on my machine.  A normal suspend still causes Wi-Fi to drop.

Offline

#8 2018-04-20 05:31:08

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: Keep Wi-Fi Connected while Sleeping

What do you mean by "normal suspend"?
S3 ("normal sleep") or S4 ("normal hinbernate") will not keep the network up (wifi or not).

/sys/power/state is no regular file, it will always "contain" the possible states and when you write one into it, the system will enter that state.

Online

Board footer

Powered by FluxBB