[SOLVED] Resuming from sleep - Wifi disconnect/reconnect.

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
nyddwrtuser330
DD-WRT User


Joined: 05 Mar 2018
Posts: 217

PostPosted: Mon May 16, 2022 13:06    Post subject: [SOLVED] Resuming from sleep - Wifi disconnect/reconnect. Reply with quote
When myn MAC wakes from sleep, it seems to immediatly connect to the ac wireless, a few secxonds later it drops the connection, reconnects , requests new ip from dhcp, and is good to go till next sleep cycle.

Any ideas whats causing this, or is it some bonehead MAC thing?
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Mon May 16, 2022 13:15    Post subject: Reply with quote
Probably nothing, only the macbook pro needs to reconnect as it did not notice the disconnect during sleep.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Mon May 16, 2022 13:40    Post subject: Reply with quote
Sleep cycles no matter the machine, has always had issues, because the state is saved to RAM and restoring the state is not always good for all components, due to in my experience after such resume takes place the various components try to sync to a state that was saved that doesn't agree with the actual state on resume, Ive seen video issues on resume and all sorts of other quirks, peripherals not working and random other bits, no matter brand.

It would seem that you sleep the machine when radio is connected, but during sleep, it actually disconnects, then you wake it up, resumes the state assuming its connected and realizes oh shit, I'm not connected anymore obviously, then it either does what you experience, or resumes into a non working state or some gremlin induced state.

All and all, not surprising, and tbh I dont recommend sleep states for anything, you are gaining except perhaps a few seconds over a cold boot, but power consuming on sleep is still higher than powered off, and unless your machine is really slow from cold boot, you are literally swapping higher energy bills for the difference of time from cold boot.

Static IP leases that dont expire will actually not help matters anyway, since the issue is not with DHCP server or lease expiry time. The DHCP knows is the client isn't connected anymore as far as its concerned, and then they butt heads when clients tries to pull a fast one and DHCP server wins.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)


Last edited by the-joker on Mon May 16, 2022 17:02; edited 1 time in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Mon May 16, 2022 15:13    Post subject: Re: Anyone with a macbook pro seeing this Reply with quote
nyddwrtuser330 wrote:
When myn MAC wakes from sleep, it seems to immediatly connect to the ac wireless, a few secxonds later it drops the connection, reconnects , requests new ip from dhcp, and is good to go till next sleep cycle.

Any ideas whats causing this, or is it some bonehead MAC thing?

IP address obtained from any DHCP server including DD-WRT has a lease time. Maybe the IP lease expired when your Mac woke up, so it obtained the IP again (renewal)? Usually, the Mac will get the same IP again, based on the MAC address of the network interface.

I think the default lease time is 3600 seconds?


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Mon May 16, 2022 15:53    Post subject: Reply with quote
I really wish people understood the basics. In short, this is normal behavior (on pretty much every OS).
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Mon May 16, 2022 16:57    Post subject: Reply with quote
Ive taken the liberty to edit the threads title to something more descriptive rather than vague, and also to mark it solved.

On the topic of the issue, enough has been said, its unrelated to lease expiry and to be expected.

Count yourself lucky, this is the only thing that happens and move on.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
nyddwrtuser330
DD-WRT User


Joined: 05 Mar 2018
Posts: 217

PostPosted: Mon May 16, 2022 18:44    Post subject: Reply with quote
The reason i asked, was the unit is connected and passing traffic correctly for a few seconds PRIOR to the reset. Only the MAC does this. And it only begun on 5-13 build

That being said, you can close this, i upgraded to the 5-16 build and the bhaviour seems to have stopped.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Tue May 17, 2022 13:27    Post subject: Reply with quote
Nothing changed DHCP wise between those builds in DD-WRT. Any updates Papple side?

You will notice generally inconsistent waking from sleep and when the sync is complete between the saved sleep state and the actual state after its fully resumed.

Currently dnsqmasq is a test build in DD-WRT this means no guarantees it will behave the same always DD-WRT side.

That said, keep an eye on it just for the sake of seeing how it behaves in the long term. Nothing to worry about though if it repeats, let the server and client butt heads all they like.

Good luck and adieu.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum