You are not logged in.

#1 2012-04-03 15:58:07

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

[SOLVED] Losing network connection after suspend

Lately I'm having this peculiar problem.  When resuming after suspend (specifically, pm-suspend), I have no network connection.  I first noticed this on March 31st.  The only thing that changed was that I upgraded these packages:

openssl-1.0.1-2-x86_64.pkg.tar.xz
xf86-video-ati-6.14.4-2-x86_64.pkg.tar.xz
lib32-libdrm-2.4.33-1-x86_64.pkg.tar.xz
libnotify-0.7.5-1-x86_64.pkg.tar.xz
xz-5.0.3-2-x86_64.pkg.tar.xz
vim-taglist-45-5-any.pkg.tar.xz

But I'm pretty sure I would have suspended and resumed successfully at least once after that upgrade.

Can anyone suggest what I should look at to try to diagnose this?

Thanks

Last edited by ibrunton (2012-04-06 11:26:03)

Offline

#2 2012-04-03 21:09:55

Dieter
Member
From: Germany
Registered: 2005-10-13
Posts: 120

Re: [SOLVED] Losing network connection after suspend

I'm encountering the same problem for some days now. Unfortenately I can't remember the exact date and the packages I updated before that happens. I _don't_ have installed the following packages from your list, so I assume they are ok: xf86-video-ati, vim-taglist.

So I looked at the packages updated within the last week. Potential candidates for me are, but I'm not an expert:
linux-3.2.13-1-i686.pkg.tar.xz
initscripts-2012.03.2-1-any.pkg.tar.xz
coreutils-8.16-2-i686.pkg.tar.xz
libnotify-0.7.5-1-i686.pkg.tar.xz

Offline

#3 2012-04-04 01:55:18

edmccard
Member
Registered: 2012-04-03
Posts: 5

Re: [SOLVED] Losing network connection after suspend

For a few days, I think since the upgrade to kernel 3.2.13, I lose my (wired) network connection on pm-suspend, and I have to do /etc/rc.d/network start after resume. I never used to have to do that.

What's the best way to work around this?

Offline

#4 2012-04-04 02:07:13

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] Losing network connection after suspend

For example:

#!/bin/sh
case $1 in
	hibernate|suspend)
		rc.d stop network
		;;
	thaw|resume)
		rc.d start network
		;;
	*) exit $NA
		;;
esac

Name it eg. 51-network, make executable and put to /etc/pm/sleep.d.

(Not a solution, but a workaround.)

Last edited by bohoomil (2012-04-04 02:26:00)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-04-04 02:28:10

ErichZ
Member
Registered: 2012-04-04
Posts: 2

Re: [SOLVED] Losing network connection after suspend

Also having this problem. First noticed on April 1st. Only package upgrades I have in common with both of you is libnotify. From its description I don't understand how it could cause this problem..on the other hand I don't know a lot about network stuff.

Anyway, it might be worth ait for one of you to try reverting. I cannot because I delete packages from my cache greater than 6 months old, as the previous version apparently was....guess I should move that back to a year, eh?

Offline

#6 2012-04-04 02:55:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,115

Re: [SOLVED] Losing network connection after suspend

Two questions for you three.

1.  How do you manage your networks?  Network? Wicd? NetworkManager?

2.  Are we talking wired or wireless?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

#7 2012-04-04 02:56:12

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,320

Re: [SOLVED] Losing network connection after suspend

ErichZ wrote:

I cannot because I delete packages from my cache greater than 6 months old, as the previous version apparently was....guess I should move that back to a year, eh?

Or you could just download the old version from ARM

Offline

#8 2012-04-04 02:58:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,115

Re: [SOLVED] Losing network connection after suspend

Merged Threads


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

#9 2012-04-04 03:49:28

ErichZ
Member
Registered: 2012-04-04
Posts: 2

Re: [SOLVED] Losing network connection after suspend

ewaller: Wired, I use network.

Skuntrader: Good to know. Thanks much.

btw, reverting libnotify did not do anything.

Offline

#10 2012-04-04 07:52:49

RaumZeit
Member
Registered: 2012-04-04
Posts: 6

Re: [SOLVED] Losing network connection after suspend

Same problem here.
Everything went fine until 2 days ago. Wake up from suspend results in no network connection.
I have wired connection using dhcp specified in /etc/rc.conf

Offline

#11 2012-04-04 10:19:45

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Losing network connection after suspend

I also have a wired connection with dhcp in /etc/rc.conf.  I tried reverting libnotify, but it didn't help.

Offline

#12 2012-04-04 10:32:51

ploub
Member
Registered: 2007-05-16
Posts: 128

Re: [SOLVED] Losing network connection after suspend

ibrunton wrote:

I also have a wired connection with dhcp in /etc/rc.conf.  I tried reverting libnotify, but it didn't help.

Me too. Rather than restart the network

peter ~ $  sudo dhcpcd eth0
dhcpcd[19422]: version 5.5.5 starting
dhcpcd[19422]: eth0: sending IPv6 Router Solicitation
dhcpcd[19422]: eth0: rebinding lease of 192.168.1.10
dhcpcd[19422]: eth0: acknowledged 192.168.1.10 from 192.168.1.1
dhcpcd[19422]: eth0: checking for 192.168.1.10
dhcpcd[19422]: eth0: sending IPv6 Router Solicitation
dhcpcd[19422]: eth0: leased 192.168.1.10 for 86400 seconds
dhcpcd[19422]: forked to background, child pid 19586

gets it running again so it looks like it could be a dhcpcd problem. Don't know when it started happening -  but my cache says

peter ~ $  cat /var/log/pacman.log | grep 'upgraded dhcpcd'
[2012-02-13 20:28] upgraded dhcpcd (5.2.12-4 -> 5.5.4-1)
[2012-03-29 21:16] upgraded dhcpcd (5.5.4-1 -> 5.5.5-1)

Offline

#13 2012-04-04 12:00:15

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Losing network connection after suspend

It appears I upgraded dhcpcd on 2012-03-30 to 5.5.5-1.

Offline

#14 2012-04-04 12:24:15

ploub
Member
Registered: 2007-05-16
Posts: 128

Re: [SOLVED] Losing network connection after suspend

Downgrading dhcpcd to 5.5.4-1 didn't fix it... sad

Offline

#15 2012-04-04 13:08:30

ploub
Member
Registered: 2007-05-16
Posts: 128

Re: [SOLVED] Losing network connection after suspend

I'm an idiot smile... I forgot to restart dhcpcd
Downgrading to 5.5.4-1 fixed the error.
FS#29275 opened

Offline

#16 2012-04-04 19:13:45

edmccard
Member
Registered: 2012-04-03
Posts: 5

Re: [SOLVED] Losing network connection after suspend

Downgrading dhcpcd also fixed it for me. Thanks!

Offline

#17 2012-04-04 22:59:16

irock
Member
From: Sweden
Registered: 2008-10-14
Posts: 12

Re: [SOLVED] Losing network connection after suspend

Same issue here. Looks like dhcpcd crashes during or after running /usr/lib/dhcpcd/dhcpcd-run-hooks on resume from suspend. I'll try downgrading until this is fixed.

$ uname -s -v -r -m
Linux 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64
$ pacman -Qi dhcpcd
Name           : dhcpcd
Version        : 5.5.5-1
URL            : http://roy.marples.name/dhcpcd/
Licenses       : BSD
Groups         : base
Provides       : None
Depends On     : glibc  sh
Optional Deps  : None
Required By    : networkmanager
Conflicts With : None
Replaces       : None
Installed Size : 256.00 KiB
Packager       : Ronald van Haren <ronald@archlinux.org>
Architecture   : x86_64
Build Date     : Fri Mar 23 17:25:47 2012
Install Date   : Thu Mar 29 23:36:13 2012
Install Reason : Explicitly installed
Install Script : No
Description    : RFC2131 compliant DHCP client daemon
# dhcpcd -d -B eth0
dhcpcd[1865]: version 5.5.5 starting
dhcpcd[1865]: eth0: using hwaddr bc:ae:c5:75:36:8e
dhcpcd[1865]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[1865]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[1865]: eth0: sending IPv6 Router Solicitation
dhcpcd[1865]: eth0: reading lease `/var/lib/dhcpcd/dhcpcd-eth0.lease'
dhcpcd[1865]: eth0: rebinding lease of 192.168.1.100
dhcpcd[1865]: eth0: sending REQUEST (xid 0x36169f23), next in 3.93 seconds
dhcpcd[1865]: eth0: acknowledged 192.168.1.100 from 192.168.1.1
dhcpcd[1865]: eth0: checking for 192.168.1.100
dhcpcd[1865]: eth0: sending ARP probe (1 of 3), next in 2.00 seconds                                                                   
dhcpcd[1865]: eth0: sending ARP probe (2 of 3), next in 1.81 seconds                                                                   
dhcpcd[1865]: eth0: sending IPv6 Router Solicitation                                                                                   
dhcpcd[1865]: eth0: sending ARP probe (3 of 3), next in 2.00 seconds                                                                   
dhcpcd[1865]: eth0: leased 192.168.1.100 for 3600 seconds                                                                              
dhcpcd[1865]: eth0: adding IP address 192.168.1.100/24                                                                                 
dhcpcd[1865]: eth0: adding route to 192.168.1.0/24                                                                                     
dhcpcd[1865]: eth0: adding default route via 192.168.1.1                                                                               
dhcpcd[1865]: eth0: writing lease `/var/lib/dhcpcd/dhcpcd-eth0.lease'                                                                  
dhcpcd[1865]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND                                                         
dhcpcd[1865]: eth0: sending ARP announce (1 of 2), next in 2.00 seconds                                                                
dhcpcd[1865]: eth0: sending IPv6 Router Solicitation                                                                                   
dhcpcd[1865]: eth0: sending ARP announce (2 of 2)                                                                                      
dhcpcd[1865]: eth0: sending IPv6 Router Solicitation                                                                                   
dhcpcd[1865]: eth0: no IPv6 Routers available                                                                                          
dhcpcd[1865]: eth0: carrier lost                                                                                                       
dhcpcd[1865]: eth0: deleting default route via 192.168.1.1                                                                             
dhcpcd[1865]: eth0: deleting route to 192.168.1.0/24                                                                                   
dhcpcd[1865]: eth0: deleting IP address 192.168.1.100/24                                                                               
dhcpcd[1865]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason NOCARRIER                                                     
dhcpcd[1865]: eth0: carrier acquired                                                                                                   
dhcpcd[1865]: eth0: using hwaddr bc:ae:c5:75:36:8e                                                                                     
dhcpcd[1865]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER                                                       
*** glibc detected *** dhcpcd: double free or corruption (fasttop): 0x0000000000ac2860 ***                                             
======= Backtrace: =========                                                                                                           
/lib/libc.so.6(+0x78a56)[0x7f9b6a794a56]                                                                                               
dhcpcd[0x40cdd0]                                                                                                                       
dhcpcd[0x40e597]                                                                                                                       
dhcpcd[0x4093f0]                                                                                                                       
dhcpcd[0x411ba7]                                                                                                                       
dhcpcd[0x411563]                                                                                                                       
dhcpcd[0x40768f]                                                                                                                       
dhcpcd[0x40aa6b]                                                                                                                       
dhcpcd[0x4028a8]                                                                                                                       
/lib/libc.so.6(__libc_start_main+0xf5)[0x7f9b6a73d455]                                                                                 
dhcpcd[0x402d1d]                                                                                                                       
======= Memory map: ========
00400000-00419000 r-xp 00000000 fe:02 4590719                            /sbin/dhcpcd
00619000-0061a000 r--p 00019000 fe:02 4590719                            /sbin/dhcpcd
0061a000-0061b000 rw-p 0001a000 fe:02 4590719                            /sbin/dhcpcd
0061b000-0061c000 rw-p 00000000 00:00 0 
00ac1000-00ae3000 rw-p 00000000 00:00 0                                  [heap]
7f9b6a2eb000-7f9b6a300000 r-xp 00000000 fe:02 1063993                    /usr/lib/libgcc_s.so.1
7f9b6a300000-7f9b6a4ff000 ---p 00015000 fe:02 1063993                    /usr/lib/libgcc_s.so.1
7f9b6a4ff000-7f9b6a500000 rw-p 00014000 fe:02 1063993                    /usr/lib/libgcc_s.so.1
7f9b6a500000-7f9b6a517000 r-xp 00000000 fe:02 3014810                    /lib/libpthread-2.15.so
7f9b6a517000-7f9b6a716000 ---p 00017000 fe:02 3014810                    /lib/libpthread-2.15.so
7f9b6a716000-7f9b6a717000 r--p 00016000 fe:02 3014810                    /lib/libpthread-2.15.so
7f9b6a717000-7f9b6a718000 rw-p 00017000 fe:02 3014810                    /lib/libpthread-2.15.so
7f9b6a718000-7f9b6a71c000 rw-p 00000000 00:00 0 
7f9b6a71c000-7f9b6a8b3000 r-xp 00000000 fe:02 3018245                    /lib/libc-2.15.so
7f9b6a8b3000-7f9b6aab3000 ---p 00197000 fe:02 3018245                    /lib/libc-2.15.so
7f9b6aab3000-7f9b6aab7000 r--p 00197000 fe:02 3018245                    /lib/libc-2.15.so
7f9b6aab7000-7f9b6aab9000 rw-p 0019b000 fe:02 3018245                    /lib/libc-2.15.so
7f9b6aab9000-7f9b6aabd000 rw-p 00000000 00:00 0 
7f9b6aabd000-7f9b6aac4000 r-xp 00000000 fe:02 3014856                    /lib/librt-2.15.so
7f9b6aac4000-7f9b6acc3000 ---p 00007000 fe:02 3014856                    /lib/librt-2.15.so
7f9b6acc3000-7f9b6acc4000 r--p 00006000 fe:02 3014856                    /lib/librt-2.15.so
7f9b6acc4000-7f9b6acc5000 rw-p 00007000 fe:02 3014856                    /lib/librt-2.15.so
7f9b6acc5000-7f9b6ace6000 r-xp 00000000 fe:02 3018769                    /lib/ld-2.15.so
7f9b6aea5000-7f9b6aea9000 rw-p 00000000 00:00 0 
7f9b6aee4000-7f9b6aee6000 rw-p 00000000 00:00 0 
7f9b6aee6000-7f9b6aee7000 r--p 00021000 fe:02 3018769                    /lib/ld-2.15.so
7f9b6aee7000-7f9b6aee8000 rw-p 00022000 fe:02 3018769                    /lib/ld-2.15.so
7f9b6aee8000-7f9b6aee9000 rw-p 00000000 00:00 0 
7ffff8b93000-7ffff8bb4000 rw-p 00000000 00:00 0                          [stack]
7ffff8bc9000-7ffff8bca000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Offline

#18 2012-04-04 23:03:47

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Losing network connection after suspend

How to I stop/restart dhcpcd after downgrading? Just kill the process and run dhcpcd in a terminal?

Edit: Never mind, figured it out.

rc.d stop network

and vice versa.

Last edited by ibrunton (2012-04-04 23:35:33)

Offline

#19 2012-04-05 12:40:07

ploub
Member
Registered: 2007-05-16
Posts: 128

Re: [SOLVED] Losing network connection after suspend

Upgrading dhcpcd to 5.5.6 fixes the issue for me.

@ibrunton - if it works for you, pls mark thread solved.

Offline

Board footer

Powered by FluxBB