You are not logged in.

#1 2011-03-05 19:26:33

Segura
Member
Registered: 2011-03-05
Posts: 12

Networkmanager and eth0

Hi all!

I'm using networkmanager on a laptop. When I start the laptop it's connected to internet using wlan0, even if I have the ethernet plugged in. If I disable wlan0, and then unplug and plug ethernet again, nothing happen. It's not hardware or router problem (It works fine in other OS and pc's).

Anyone could help me?

That's my /etc/rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="ca_ES.UTF8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Madrid"
KEYMAP="es"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(acpi-cpufreq cpufreq_ondemand fuse)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
#wlan0="dhcp"
INTERFACES=(!eth0 !wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(@syslog-ng dbus !network !smbnetfs @networkmanager @gdm @bluetooth @alsa  @cpufreq @laptop-mode @cups)

The /etc/hosts:

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost Arch

# End of file

I found this lines on daemon.log, I don't know if It's related..

Mar  5 17:57:33 localhost NetworkManager[1962]: <info> Networking is enabled by state file
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): carrier is OFF
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 2)
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): now managed
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): device state change: 1 -> 2 (reason 2)
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): bringing up device.
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): preparing device.
Mar  5 17:57:33 localhost NetworkManager[1962]: <info> (eth0): deactivating device (reason: 2).

PD: Sry for my english.

Offline

#2 2011-03-05 22:23:17

Segura
Member
Registered: 2011-03-05
Posts: 12

Re: Networkmanager and eth0

I have installed Wicd and still don't work. I have a daemon or module missing? Help please, there is my lspci -k:

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: agpgart-intel
    Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
    Subsystem: Toshiba America Info Systems Device 0007
    Kernel driver in use: i915
    Kernel modules: i915
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
00:19.0 Ethernet controller: Intel Corporation 82577LC Gigabit Network Connection (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: e1000e
    Kernel modules: e1000e
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: HDA Intel
    Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
    Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
    Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 06)
    Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel modules: iTCO_wdt
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: ahci
    Kernel modules: ahci
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: intel ips
    Kernel modules: intel_ips
01:00.0 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller (rev 01)
    Subsystem: Toshiba America Info Systems Device 0001
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci-pci
02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
    Subsystem: Askey Computer Corp. Device 7175
    Kernel driver in use: brcm80211
    Kernel modules: brcm80211
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
    Subsystem: Intel Corporation Device 8086
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
    Subsystem: Intel Corporation Device 8086
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
    Subsystem: Intel Corporation Device 8086
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
    Subsystem: Intel Corporation Device 8086
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
    Subsystem: Intel Corporation Device 8086
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
    Subsystem: Intel Corporation Device 8086

Last edited by Segura (2011-03-05 22:26:14)

Offline

#3 2011-03-05 22:48:45

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: Networkmanager and eth0

What DE/wm are you using? Gnome? Do a search on the wiki for networkmanager. There is an article dedicated to it. You probably should remove the @ from syslog-ng and networkmanager too I believe.

Offline

#4 2011-03-06 00:06:38

Segura
Member
Registered: 2011-03-05
Posts: 12

Re: Networkmanager and eth0

I'm using gnome. I finally fixed the problem. The laptop-mode was the problem. If I do !laptop-mode the eth0 interface works perfect and my wifi works even better, I get more.

Anyway, thx.

PD: syslog-ng better without the @?

Offline

#5 2011-04-13 04:59:07

ntony
Member
Registered: 2010-11-17
Posts: 32

Re: Networkmanager and eth0

I have the same problem. Disabling laptop-mode daemon works. But is there any other solution instead of giving up laptop-mode-tools?

Offline

#6 2011-04-13 05:26:29

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Networkmanager and eth0

Did you check your settings in "/etc/laptop-mode/conf.d/ethernet.conf"?

# In practise, most of the times a user is on battery, she is using the wireless device
# Under such cases, you might want to disable your ethernet device completely, when
# on battery.
# If that is the case, set below setting to 1
DISABLE_ETHERNET_ON_BATTERY=0

If it is set to "1" it will automatically disable ethernet whenever you are on battery.


I laugh, yet the joke is on me

Offline

#7 2011-04-13 10:32:36

ntony
Member
Registered: 2010-11-17
Posts: 32

Re: Networkmanager and eth0

the sad clown wrote:

Did you check your settings in "/etc/laptop-mode/conf.d/ethernet.conf"?

# In practise, most of the times a user is on battery, she is using the wireless device
# Under such cases, you might want to disable your ethernet device completely, when
# on battery.
# If that is the case, set below setting to 1
DISABLE_ETHERNET_ON_BATTERY=0

If it is set to "1" it will automatically disable ethernet whenever you are on battery.

DISABLE_ETHERNET_ON_BATTERY is set to 0 on my profile.

I can provide more information.

Trial 1
I boot it up without eth0 plugged. When eth0 is plugged after startup, it connects eth0 JUST ONCE.

Trial 2
I bootup with wlan0 available and eth0 is plugged. It connects both. I unplug eth0. It does not connect eth0 again.

Trial 3
I disable laptop-mode daemon and reboot with both NIC availble. Everything works fine. It connects eth0 on every plug.

Seems like unplug eth event would cause something by laptop-mode-tools.

Last edited by ntony (2011-04-13 10:32:59)

Offline

#8 2011-04-14 00:25:53

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Networkmanager and eth0

Instead of just turning off laptop mode tools, try disabling the line in laptop-mode.conf that autoloads the modules.  This allows you to retain harddrive and cpu power saving measures and if it restores functionality then you know it was one of the modules and you can narrow down the offending module by selectively activating them.


I laugh, yet the joke is on me

Offline

#9 2011-04-14 04:24:02

ntony
Member
Registered: 2010-11-17
Posts: 32

Re: Networkmanager and eth0

the sad clown wrote:

Instead of just turning off laptop mode tools, try disabling the line in laptop-mode.conf that autoloads the modules.  This allows you to retain harddrive and cpu power saving measures and if it restores functionality then you know it was one of the modules and you can narrow down the offending module by selectively activating them.

Thanks for the hint! After some trial & error, I discovered that runtime-pm is the devil. I don't even know much about what this module does.

Offline

#10 2011-04-14 04:46:14

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Networkmanager and eth0

I don't really know either, but here is an article about it:
https://lwn.net/Articles/347573/

Also, perhaps you could try switching it back on, but with the debug setting on also so you can see why it is causing you problems.


I laugh, yet the joke is on me

Offline

#11 2011-04-14 06:09:54

ntony
Member
Registered: 2010-11-17
Posts: 32

Re: Networkmanager and eth0

the sad clown wrote:

I don't really know either, but here is an article about it:
https://lwn.net/Articles/347573/

Also, perhaps you could try switching it back on, but with the debug setting on also so you can see why it is causing you problems.

I've turned debug on and nothing about eth0 is logged to syslog.log nor everything.log. But I found bug report which is firing this problem and has the same conclusion about it's runtime-pm problem.

https://bugs.archlinux.org/task/22957


I'm using Lenovo Thinkpad Edge 14 with 2.6.38-ARCH

Last edited by ntony (2011-04-14 06:10:25)

Offline

#12 2011-04-17 01:45:32

ntony
Member
Registered: 2010-11-17
Posts: 32

Re: Networkmanager and eth0

How can I file this bug to Arch Linux kernel development team?

Offline

Board footer

Powered by FluxBB