# Linux Pidgin very slow to restore connection after wake from sleep

**URL:** https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161
**Category:** Support
**Created:** [June 6, 2024, 3:03pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161 "2024-06-06T15:03:51Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![smogr](https://discourse.imfreedom.org/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@smogr](https://discourse.imfreedom.org/u/smogr)
#### Post date: [June 6, 2024, 3:03pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/1 "2024-06-06T15:03:51Z")

</div>

In Windows, the contact list instantaneously goes into disconnected/reconnect mode, after wake from sleep, and soon it reconnects.  
In Linux, it stays “connected” for a long while, misleading the user into believing that the connection is live. Then it goes into disconnected/reconnect mode and after a while it reconnects.  
Is this by design, and if it is, could you change the Linux behavior to be the same as Windows? If not by design, then what should we do to make Linux Pidgin work the same as Windows?

---

<div class="post-metadata">

### Author: ![grim](https://discourse.imfreedom.org/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)
#### Post date: [June 6, 2024, 8:42pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/2 "2024-06-06T20:42:48Z")

</div>

This is supposed to tied into network manager and using that to determine network connectivity. Do you know if you have network manager installed and/or what version it is?

I’m not sure if we have a fallback if network manager isn’t installed, so that might be the issue here.

---

<div class="post-metadata">

### Author: ![smogr](https://discourse.imfreedom.org/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@smogr](https://discourse.imfreedom.org/u/smogr)
#### Post date: [June 7, 2024, 8:17pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/3 "2024-06-07T20:17:35Z")

</div>

Network Manager is not present. BIOS device names are enabled in the kernel. IP address is static.

---

<div class="post-metadata">

### Author: ![grim](https://discourse.imfreedom.org/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)
#### Post date: [June 8, 2024, 10:54pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/4 "2024-06-08T22:54:37Z")

</div>

Okay, if there’s no network manager it’s most likely going to be falling back to tcp timeouts which are very long.

---

<div class="post-metadata">

### Author: ![smogr](https://discourse.imfreedom.org/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@smogr](https://discourse.imfreedom.org/u/smogr)
#### Post date: [June 10, 2024, 12:18am UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/5 "2024-06-10T00:18:02Z")

</div>

Great to know! How do we fix that?

---

<div class="post-metadata">

### Author: ![grim](https://discourse.imfreedom.org/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)
#### Post date: [June 10, 2024, 9:24pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/6 "2024-06-10T21:24:38Z")

</div>

Well that’s what the network manager integration is supposed to do.

---

<div class="post-metadata">

### Author: ![smogr](https://discourse.imfreedom.org/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@smogr](https://discourse.imfreedom.org/u/smogr)
#### Post date: [July 27, 2024, 7:48pm UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/7 "2024-07-27T19:48:23Z")

</div>

> [@smogr](#):
>
> Network Manager is not present.

Can something be done with the slow reconnect in cases when/where there is no network manager? Such as, detect wakeup event and try to reconnect sooner than in 1-2 min?

> [@grim](#):
>
> that’s what the network manager integration is supposed to do.

---

<div class="post-metadata">

### Author: ![grim](https://discourse.imfreedom.org/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)
#### Post date: [July 28, 2024, 4:17am UTC](https://discourse.imfreedom.org/t/linux-pidgin-very-slow-to-restore-connection-after-wake-from-sleep/161/8 "2024-07-28T04:17:54Z")

</div>

Yep that’s the scenario. Pidgin 2 is in maintenance mode as we focus on Pidgin 3. If someone wants to implement another mechanism I’d be open to accepting a patch, but we don’t have the resources to do it.
