You are not logged in.

#1 2011-05-12 07:45:47

DarkAn9el
Member
Registered: 2011-05-12
Posts: 1

eth0 cold plug = ok but eth0 hotplug = no carrier

Hello,

I have a Lenovo ThinkPad Edge 13, i3 380UM.
I have netcfg installed, but I only use it for wifi with wifi-select

in my rc.conf I have:
eth0="dhcp"
INTERFACES=(eth0)
DAEMONS=( @microcode @syslog-ng @network @crond @dbus @slim @alsa @laptop-mode )

When I boot with plugged cable in eth0, the wired network work without any problem.

But, if I boot, THEN plug a cable, restarting /etc/rc.d/network fails, dhcpcd give a "no carrier" error, and manual addressing with route / ifconfig doesn't help either.

Please any idea?

I saw http://ubuntuforums.org/archive/index.php/t-741147.html but in my case, I have alway separate interface for wired (eth0) en wifi (wlan0)

Offline

#2 2011-09-19 14:16:52

cuh7b5
Member
Registered: 2011-09-19
Posts: 3

Re: eth0 cold plug = ok but eth0 hotplug = no carrier

Hello, I had similar problem on a Thinkpad Edge 11 and installing a newer ethernet driver solved it for me.

If lspci -v says that you have RTL8111/8168B Ethernet Controller then try to install the r8168 AUR package.

Some more info:
http://kissmyarch.blogspot.com/2011/09/ … r8169.html


Thinkpad Edge 11

Offline

#3 2011-09-23 16:56:27

laloch
Member
Registered: 2010-02-04
Posts: 178

Re: eth0 cold plug = ok but eth0 hotplug = no carrier

Hello, this may be caused by PCI power management.
What is the output of

ip link show eth0

If the line contains "NO-CARRIER" even though there's a cable connected to your eth0 port, it is possible that the device was auto-suspended and the media sense feature doesn't work. To solve this, first you need to find your ethernet controllers PCI address by

lspci

in my case the output looks like this:

...
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
...

So the address is 00:19.0.
Now let's check the PM status of the device by issuing

cat "/sys/bus/pci/devices/0000:00:19.0/power/control"

substituting 00:19.0 with the address obtained from lspci.
If the output reads "auto", you can try to bring the device out of suspend by

echo on > "/sys/bus/pci/devices/0000:00:19.0/power/control"

Don't forget to substitute the address again.

Offline

#4 2011-12-08 17:09:10

hankwang
Member
Registered: 2011-12-08
Posts: 1

Re: eth0 cold plug = ok but eth0 hotplug = no carrier

laloch wrote:

echo on > "/sys/bus/pci/devices/0000:00:XX.0/power/control"

I just created an account to say thank you! It solved the problem for me (even though I use a different Linux distribution...)
Now I will figure out how to call this script upon wake-from-suspend.

Offline

#5 2013-03-24 04:29:31

yiuin
Member
Registered: 2010-02-02
Posts: 15

Re: eth0 cold plug = ok but eth0 hotplug = no carrier

Hmm laptop-mode thing? Thanks for the tip, I've had this problem for a while.

Offline

#6 2013-03-24 04:39:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: eth0 cold plug = ok but eth0 hotplug = no carrier

When you post to a thread this old with no useful comments to add, this is called a necrobump, and it is frowned upon.

Offline

#7 2013-03-24 04:56:23

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,086
Website

Re: eth0 cold plug = ok but eth0 hotplug = no carrier


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB