You are not logged in.

#1 2014-02-20 18:21:38

shadeless
Member
Registered: 2013-05-26
Posts: 83

ethernet interface disappears after waking up from sleep

Hi guys,
I've been trying to debug a networking problem without any luck and I think it's about time I ask the forum for help.

My ethernet interface no longer works after I wake up my computer from sleep. I have no idea why.

Before sleep:

# ls /sys/class/net
lo  wlp2s0  enp3s0f2

After waking up from sleep,

ls /sys/class/net
lo  wlp2s0

Here are the list of services I have running.

UNIT                                     LOAD   ACTIVE SUB     DESCRIPTION
dbus.service                             loaded active running D-Bus System Message Bus
dhcpcd@enp3s0f2.service                  loaded failed failed  dhcpcd on enp3s0f2
getty@tty1.service                       loaded active running Getty on tty1
ifplugd@enp3s0f2.service                 loaded active running Daemon which acts upon network cable inse
kmod-static-nodes.service                loaded active exited  Create list of required static device nod
netctl@wlp2s0...fieNet\x2dSecure.service loaded active exited  Networking for netctl profile wlp2s0-Wolf
polkit.service                           loaded active running Authorization Manager
systemd-backlight@acpi_video0.service    loaded active exited  Load/Save Screen Backlight Brightness of 
systemd-fsck@...\x2d38bc68d942fc.service loaded active exited  File System Check on /dev/disk/by-uuid/1c
systemd-journald.service                 loaded active running Journal Service
systemd-logind.service                   loaded active running Login Service
systemd-random-seed.service              loaded active exited  Load/Save Random Seed
systemd-remount-fs.service               loaded active exited  Remount Root and Kernel File Systems
systemd-sysctl.service                   loaded active exited  Apply Kernel Variables
systemd-tmpfiles-setup-dev.service       loaded active exited  Create static device nodes in /dev
systemd-tmpfiles-setup.service           loaded active exited  Recreate Volatile Files and Directories
systemd-udev-trigger.service             loaded active exited  udev Coldplug all Devices
systemd-udevd.service                    loaded active running udev Kernel Device Manager
systemd-update-utmp.service              loaded active exited  Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service            loaded active exited  Permit User Sessions
systemd-vconsole-setup.service           loaded active exited  Setup Virtual Console
upower.service                           loaded active running Daemon for power management
user@1000.service                        loaded active running User Manager for 1000

Furthermore, plugging in the ethernet cord after the computer has started doesn't connect to the internet, even when I have the ifplugd service running. I am forced to run:

sudo ip link set enp3s0f2 up
sudo dhcpcd enp3s0f2

However, I can't run these commands after the laptop wakes up from sleep since it no longer sees the ethernet interface.

I am thoroughly confused. Please help me.

Offline

#2 2014-02-20 22:21:06

teckk
Member
Registered: 2013-02-21
Posts: 525

Re: ethernet interface disappears after waking up from sleep

What network manager are you using? netctl?

netctl start mynetwork
netctl stop mynetwork

Look at

netctl list

and

man netctl

As to why the interface is dropping out after sleep, which one, wired, wireless, both?
I don't know what you have wrong, if you give more info someone may be able to point you in the right direction.

Offline

#3 2014-02-20 23:24:12

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: ethernet interface disappears after waking up from sleep

This regression was introduced with 3.12 and is fixed in 3.14-rc3. See https://lkml.org/lkml/2014/2/7/809 for a workaround and https://git.kernel.org/linus/7282059489 … 6b233a8399 voor a kernel patch. (or disable CONFIG_HOTPLUG_PCI_ACPI if you do not use it).

Oh, while I am typing this, the patch has been queued for 3.12 and 3.13, it should land in 3.12.13 and 3.13.5.

Last edited by Lekensteyn (2014-02-20 23:51:55)

Offline

#4 2014-02-21 23:20:22

shadeless
Member
Registered: 2013-05-26
Posts: 83

Re: ethernet interface disappears after waking up from sleep

I think I use netctl, but I just have the dhcpcd run at boot.

Thank you for the information Lekensteyn. I guess that's the unfortunate aspect of using a bleeding edge Linux distribution. I'll sit tight and wait for the patch to arrive.

Offline

#5 2014-02-23 23:44:30

shadeless
Member
Registered: 2013-05-26
Posts: 83

Re: ethernet interface disappears after waking up from sleep

It seems to be fixed after the kernel update. On an related note, I've switched from using dhcpcd to netctl. I've enabled netctl to automatically connect to the network using:

# systemctl enable netctl-auto@interface.service 
# systemctl enable netctl-ifplugd@interface.service  

So when I check for the status of the ethernet profile, I get told that's it's inactive.

#netctl status ethernet-dhcp 
netctl@ethernet\x2ddhcp.service - Networking for netctl profile ethernet-dhcp
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)

But I turned off the wireless, so I must be connected to the ethernet, So how do I know which profile I'm connected to?

Offline

#6 2014-03-11 02:24:02

egroeg
Member
Registered: 2011-02-23
Posts: 40

Re: ethernet interface disappears after waking up from sleep

Lekensteyn wrote:

This regression was introduced with 3.12 and is fixed in 3.14-rc3. See https://lkml.org/lkml/2014/2/7/809 for a workaround and https://git.kernel.org/linus/7282059489 … 6b233a8399 voor a kernel patch. (or disable CONFIG_HOTPLUG_PCI_ACPI if you do not use it).

Oh, while I am typing this, the patch has been queued for 3.12 and 3.13, it should land in 3.12.13 and 3.13.5.


Thank you for this.  I've been struggling to find a workaround.  Will try.

Last edited by egroeg (2014-03-11 23:41:23)

Offline

Board footer

Powered by FluxBB