You are not logged in.

#26 2018-02-24 12:24:28

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 170

Re: [SOLVED] No network connection after suspend

I'm having the exactly the same issue. So if I understand correctly, the easiest thing to do now is to reload the r8169 module after resume and wait for fixed version of NM?

What I'm doing now is that after a resume from suspend, I'll just switch on to wifi, which is not much of a hinder on a home network. It's still slightly annoying though.

Offline

#27 2018-02-24 20:24:30

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

JonnyRobbie wrote:

So if I understand correctly, the easiest thing to do now is to reload the r8169 module after resume and wait for fixed version of NM?

Yes, that's exactly what i did, but i found another solution for the moment. I downgraded NM from 1.10.5dev+3+g5159c34ea-1 to 1.10.3dev+38+g78ef57197-1, which i still have in package cache and added NM to IgnorePkg in pacman.conf. So seth seems to be correct blaming NM for the problem

Offline

#28 2018-02-25 16:26:59

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

I'm going to leave it as unresolved until it is fixed without anything special needed to be added by us.

I'm fairly convinced that networkmanager is the problem, but I removed what Seth proposed and downgraded networkmanager to the same version you have lula and it still losing connection after suspend.
@lula, is that the only package you downgraded and your system connects after suspend?

[cavsfan@Le-Beast ~]$ pacman -Qi networkmanager
Name            : networkmanager
Version         : 1.10.3dev+38+g78ef57197-1
Description     : Network connection manager and user applications
Architecture    : x86_64
URL             : https://wiki.gnome.org/Projects/NetworkManager
Licenses        : GPL2  LGPL2.1
Groups          : gnome
Provides        : None
Depends On      : libnm-glib  iproute2  polkit  wpa_supplicant  libsoup  libmm-glib  libnewt  libndp  libteam  curl  bluez-libs
Optional Deps   : dnsmasq: connection sharing
                  bluez: Bluetooth support
                  openresolv: resolvconf support [installed]
                  ppp: dialup connection support
                  dhclient: External DHCP client [installed]
                  modemmanager: cellular network support
Required By     : network-manager-applet  networkmanager-dispatcher-ntpd
Optional For    : firefox  libproxy  private-internet-access-vpn
Conflicts With  : None
Replaces        : None
Installed Size  : 11.65 MiB
Packager        : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date      : Thu 11 Jan 2018 03:34:25 PM EST
Install Date    : Sat 24 Feb 2018 06:42:00 PM EST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

Offline

#29 2018-02-25 16:49:42

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

yes, i've just looked it up it's only

[2018-02-24 01:00] [ALPM] downgraded networkmanager (1.10.5dev+3+g5159c34ea-1 -> 1.10.3dev+38+g78ef57197-1)

Last edited by lula (2018-02-25 16:51:39)

Offline

#30 2018-02-25 19:57:13

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

lula wrote:

yes, i've just looked it up it's only

[2018-02-24 01:00] [ALPM] downgraded networkmanager (1.10.5dev+3+g5159c34ea-1 -> 1.10.3dev+38+g78ef57197-1)

Exactly:

[2018-02-24 18:42] downgraded networkmanager (1.10.5dev+3+g5159c34ea-1 -> 1.10.3dev+38+g78ef57197-1)

I am still having the exact same problem.

You are saying that is the fix for you?

Offline

#31 2018-02-26 00:11:21

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

I'm not convinced that NM is to blame. I had the previous version that lula is using and it still did the same thing.

[2018-02-25 16:22] downgraded networkmanager (1.10.3dev+38+g78ef57197-1 -> 1.10.2-1)

So, today I went to the prior version and it still did the same thing.
It is a fact that if you kill NM prior to going to suspend that you do not lose internet but, it must be something related to NM that is doing it.

Or am I missing something?

Offline

#32 2018-02-26 00:21:37

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

I just killed NM and put it in suspend. Woke it up and no internet but, after starting it from terminal, internet came back.
In terminal I got this error over and over:

[cavsfan@Le-Beast ~]$ sudo /usr/bin/NetworkManager --no-daemon 
[sudo] password for cavsfan: 

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

(NetworkManager:18790): libnm-CRITICAL **: ((libnm-core/nm-setting-vpn.c:193)): assertion '<dropped>' failed

...

But, as long as I leave that terminal open the internet stays active.

Offline

#33 2018-02-26 08:40:04

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

Online

#34 2018-02-26 17:46:13

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Cavsfan wrote:

I am still having the exact same problem.

You are saying that is the fix for you?

No, i just thought it's the fix, but today i get the same behaviour as with NM 1.10.5dev+3+g5159c34ea-1, so back to the modprobe-fix

Offline

#35 2018-02-26 21:08:30

Glaeqen
Member
Registered: 2016-08-10
Posts: 26

Re: [SOLVED] No network connection after suspend

Can confirm exact same issue on two PCs. Device in nmcli is referred to as 'unavailable' after waking up from suspend.

Offline

#36 2018-02-26 22:06:29

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Just some new findings: I disabled NM and tried with netctl, it's even worse, no suspend involved at all. I can start a wired connection which works as expected, stop it and start it again w/o success. Even reloding the r8169 module doesn't bring back a working connection, only thing i found to get it back is to reboot. The only difference i see between NM and netctl is that netctl takes the interface down, NM keeps it up.

Last edited by lula (2018-02-26 22:09:43)

Offline

#37 2018-02-26 22:08:26

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

Re: [SOLVED] No network connection after suspend

To be sure: you also stopped NM or rebooted? (Multiple services would start a race on the device)

Online

#38 2018-02-26 22:10:14

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Both, stopped NM disabled it and rebooted

Offline

#39 2018-02-26 23:05:22

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Offline

#40 2018-02-26 23:17:38

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

Re: [SOLVED] No network connection after suspend

The errors you posted could be caused by a bug in the internal dhcp client of NM (oc. this predates lula's last comments)

Since NM seems off the hook and you said the LTS kernel was also affected: was linux-firmware updated in the critical time (January 22th)?
Basically MOVE away the latest version of every file in /usr/lib/firmware/rtl_nic/ (ie. the -2 or -3 ones)
Since this could completely break your network, do NOT DELETE those files but just move them out of the path and reboot.

Online

#41 2018-02-27 00:22:47

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Are you sure about this? I think the problem (for me) exists at least for about two or three weeks, pacman.log shows (just the last three lines)

[2017-12-07 20:50] [ALPM] upgraded linux-firmware (20171009.bf04291-1 -> 20171123.90436ce-1)
[2017-12-09 21:32] [ALPM] upgraded linux-firmware (20171123.90436ce-1 -> 20171206.fdee922-1)
[2018-01-22 23:36] [ALPM] upgraded linux-firmware (20171206.fdee922-1 -> 20180119.2a713be-1)

and a listing of /usr/lib/firmware/rtl_nic/ just shows

[root@lifebook:~]# ls -l /usr/lib/firmware/rtl_nic/*-[123]*
-rw-r--r-- 1 root root 2076 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8105e-1.fw
-rw-r--r-- 1 root root 1856 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8106e-1.fw
-rw-r--r-- 1 root root  832 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8106e-2.fw
-rw-r--r-- 1 root root  992 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8107e-1.fw
-rw-r--r-- 1 root root  976 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8107e-2.fw
-rw-r--r-- 1 root root 1492 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168d-1.fw
-rw-r--r-- 1 root root 1324 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168d-2.fw
-rw-r--r-- 1 root root 5500 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168e-1.fw
-rw-r--r-- 1 root root 3920 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168e-2.fw
-rw-r--r-- 1 root root 3872 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168e-3.fw
-rw-r--r-- 1 root root 3424 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168f-1.fw
-rw-r--r-- 1 root root 1232 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168f-2.fw
-rw-r--r-- 1 root root 4304 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168g-1.fw
-rw-r--r-- 1 root root 4896 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168g-2.fw
-rw-r--r-- 1 root root  832 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168g-3.fw
-rw-r--r-- 1 root root  992 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168h-1.fw
-rw-r--r-- 1 root root  976 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8168h-2.fw
-rw-r--r-- 1 root root 1824 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8402-1.fw
-rw-r--r-- 1 root root 2112 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8411-1.fw
-rw-r--r-- 1 root root 1040 19. Jan 13:44 /usr/lib/firmware/rtl_nic/rtl8411-2.fw

I've just tried to set up up the interface manually w/o any management software it just works once, but after taking down the interface not even the reload of the module can get it back to connect, so i agree with you, we're not talking about NM, netctl or any other network management software

Offline

#42 2018-02-27 07:33:59

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

Re: [SOLVED] No network connection after suspend

Well, the timeframe would fit. If you worry about the timestamps: the package is in the repos since 18-1-22, but the files are actually from 18-1-19 (and the repo version actually reflects this).

Online

#43 2018-02-27 20:58:40

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

seth wrote:

/usr/lib/systemd/system-sleep/fix_internet.sh

#!/bin/sh
case $1/$2 in
	pre/*)
	;;
	post/*)
	 modprobe -r r8169
         modprobe r8169
	;;
esac

I let networkmanager update and put this fix back in. It immediately connects after a suspend.

Surely there are more than just us that are having this problem.

Last edited by Cavsfan (2018-02-28 23:50:33)

Offline

#44 2018-03-01 23:44:54

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

I thought perhaps the new kernel 4.15.6-1-ARCH would've solved this problem but, it did not.

Offline

#45 2018-03-02 11:21:45

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Just a quick update, tried seth's suggestion moving the [23].fw firmware files out of the way, and after a reboot dmesg gives

[    4.055866] r8169 0000:03:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
[    4.055869] r8169 0000:03:00.0 eth0: unable to load firmware patch rtl_nic/rtl8168h-2.fw (-2)

The ethernet connection can be established without the rtl8168h-2.fw file and after a first suspend, the connection was ok w/o reloading the module. I forgot my battery, so this test was with ac adapter plugged in all the time, will try it on battery when i'm back at home, looks very promising to me...

Offline

#46 2018-03-03 00:17:32

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

The test at home, only with battery plugged in worked the same way, so i will leave the rtl8168h-2.fw file out of /usr/lib/firmware/rtl_nic/ for the moment, thanks seth for pointing in the right direction

Offline

#47 2018-03-03 08:23:50

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

Online

#48 2018-03-03 17:30:00

lula
Member
Registered: 2009-07-16
Posts: 71

Re: [SOLVED] No network connection after suspend

Looks like i was too fast, today closed my laptop's lid and system was suspended for about one and a half hour, network was unavailable and i had to reload the module again, so back to the start...

Offline

#49 2018-03-04 23:13:15

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: [SOLVED] No network connection after suspend

That bug mentions wireless but, I doubt if that matters.

Ironically I was in Ubuntu's developmental version 18.04 LTS yesterday, suspended it for an hour or so. Came back and had this exact same problem.

The exact same thing fixed it too. The only coincidence that I know of is the 4.15 kernel.

Offline

#50 2018-03-06 02:31:54

lopsided98
Member
Registered: 2016-07-23
Posts: 5

Re: [SOLVED] No network connection after suspend

I'm running into the same issue on a Dell Inspiron 15 i7559, with this ethernet controller:
Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)

I noticed this in the dmesg. The same error appears in the dmesg of the person who reported the issue in the kernel bugzilla.

------------[ cut here ]------------
NETDEV WATCHDOG: enp4s0 (r8169): transmit queue 0 timed out
WARNING: CPU: 4 PID: 0 at net/sched/sch_generic.c:323 dev_watchdog+0x21a/0x220
Modules linked in: r8169 fuse cmac rfcomm nvidia(PO) ipmi_devintf ipmi_msghandler bnep btusb btrtl btbcm btintel uvcvideo bluetooth videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core >
 intel_rapl_perf pcspkr rtsx_pci_ms i2c_i801 soundcore memstick mii drm i2c_hid int3403_thermal battery evdev dell_rbtn intel_gtt ac pinctrl_sunrisepoint rtc_cmos idma64 int3400_thermal pinctrl_int>
 glue_helper xhci_hcd cryptd libata rtsx_pci usbcore scsi_mod usb_common i8042 serio [last unloaded: r8169]
CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O     4.15.6-1-ARCH #1
Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.1.8 04/17/2016
RIP: 0010:dev_watchdog+0x21a/0x220
RSP: 0018:ffff969c41d03e70 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000103
RDX: 0000000000000103 RSI: 00000000000000f6 RDI: 00000000ffffffff
RBP: ffff969c1bd3645c R08: 0000000000000001 R09: 000000000000045a
R10: ffff969c41d03f20 R11: 0000000000000000 R12: ffff969c1bd36478
R13: ffff969c1bd36000 R14: 0000000000000001 R15: ffff969c181b2e80
FS:  0000000000000000(0000) GS:ffff969c41d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000255c7dc16000 CR3: 00000001fb00a006 CR4: 00000000003606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 ? dev_graft_qdisc+0x70/0x70
 call_timer_fn+0x2b/0x150
 ? dev_graft_qdisc+0x70/0x70
 expire_timers+0x98/0x110
 run_timer_softirq+0xcc/0x170
 ? sched_clock+0x5/0x10
 ? tick_sched_timer+0x38/0x80
 ? sched_clock+0x5/0x10
 ? sched_clock_cpu+0xe/0xd0
 __do_softirq+0xe9/0x316
 ? sched_clock+0x5/0x10
 irq_exit+0xd3/0xf0
 smp_apic_timer_interrupt+0x73/0x150
 apic_timer_interrupt+0x87/0x90
 </IRQ>
RIP: 0010:cpuidle_enter_state+0xb5/0x300
RSP: 0018:ffffb61081963ea0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11
RAX: ffff969c41d00000 RBX: 000000297a5d9419 RCX: 000000000000001f
RDX: 000000297a5d9419 RSI: ffffffff9ce47fd0 RDI: ffffffff9ce4821d
RBP: ffff969c41d2a900 R08: 0000003aba3ac9f0 R09: 0000000000003c43
R10: ffffb61081963e78 R11: 000000000000ec8a R12: 0000000000000008
R13: ffffffff9d0ace18 R14: 0000000000000000 R15: 0000002978a693de
 do_idle+0x18e/0x1e0
 cpu_startup_entry+0x6f/0x80
 start_secondary+0x1a5/0x200
 secondary_startup_64+0xa5/0xb0
Code: 00 49 63 4c 24 e8 eb 8c 4c 89 ef c6 05 f6 c4 af 00 01 e8 5a 53 fd ff 89 d9 48 89 c2 4c 89 ee 48 c7 c7 78 49 eb 9c e8 d6 b5 a7 ff <0f> 0b eb be 66 90 0f 1f 44 00 00 48 c7 47 08 00 00 00 00 48 >
---[ end trace 458a54199869acb1 ]---

Offline

Board footer

Powered by FluxBB