← Back to team overview

kernel-packages team mailing list archive

[Bug 771857] [NEW] Realtek 8168B (r8169) interface not working following suspend


You have been subscribed to a public bug:

After suspending and resuming, the network adapter appears to be active
(Link UP) however it is not able to properly communicate data and
appears in network-manager as disconnected due to the inability to
negotiate DHCP successfully.

The workaround, in my case, is to execute this "fixnet" script following
the resume to unload an reload the r8169 module.  In 11.04 the network
manager automatically reconnects at this point.

imac@repo:/usr/local/bin$ cat fixnet

rmmod r8169
modprobe r8169

imac@repo:/usr/local/bin$ lspci -v | grep -i realtek
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)

Here is a typical dmesg, showing the link up after resume (@5958)
followed by my script execution (starting @ 6105).

[ 5956.140651] r8169 0000:0a:00.0: eth0: link down
[ 5958.247724] r8169 0000:0a:00.0: eth0: link up
[ 6105.570173] r8169 0000:0a:00.0: PCI INT A disabled
[ 6105.604106] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 6105.604141] r8169 0000:0a:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 6105.604191] r8169 0000:0a:00.0: setting latency timer to 64
[ 6105.604248] r8169 0000:0a:00.0: irq 45 for MSI/MSI-X
[ 6105.610321] r8169 0000:0a:00.0: eth0: RTL8168c/8111c at 0xffffc90002098000, 00:1e:ec:f2:0f:f3, XID 1c4000c0 IRQ 45
[ 6105.624882] r8169 0000:0a:00.0: eth0: link down
[ 6105.624896] r8169 0000:0a:00.0: eth0: link down
[ 6105.636108] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6108.331777] r8169 0000:0a:00.0: eth0: link up
[ 6108.332388] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6118.770054] eth0: no IPv6 routers present

Upstream we see this here:

This problem also affects Maverick

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-8-generic 2.6.38-8.42
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: fglrx
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
 /dev/snd/controlC0:  imac       2744 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
 Card hw:0 'SB'/'HDA ATI SB at 0xd2400000 irq 16'
   Mixer name	: 'IDT 92HD71B7X'
   Components	: 'HDA:111d76b2,103c30fd,00100302 HDA:11c11040,103c137e,00100200'
   Controls      : 22
   Simple ctrls  : 14
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xd2310000 irq 46'
   Mixer name	: 'ATI R6xx HDMI'
   Components	: 'HDA:1002aa01,00aa0100,00100000'
   Controls      : 4
   Simple ctrls  : 1
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Wed Apr 27 10:16:01 2011
HibernationDevice: RESUME=UUID=5828f841-5250-4229-bfc5-af24c6f41811
MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=52543d1c-6080-4cdf-80e0-30b9af3748f7 ro crashkernel=384M-2G:64M,2G-:128M splash vt.handoff=7
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic  N/A
 linux-firmware                            1.52
SourcePackage: linux
UpgradeStatus: Upgraded to natty on 2011-04-06 (21 days ago)

dmi.bios.date: 08/17/2009
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.49
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 30FD
dmi.board.vendor: Compal
dmi.board.version: 01.99
dmi.chassis.type: 10
dmi.chassis.vendor: Compal
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.49:bd08/17/2009:svnHewlett-Packard:pnHPPaviliondv7NotebookPC:pvr1:rvnCompal:rn30FD:rvr01.99:cvnCompal:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv7 Notebook PC
dmi.product.version: 1
dmi.sys.vendor: Hewlett-Packard

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Fedora)
     Importance: Unknown
         Status: Unknown

** Tags: amd64 apport-bug maverick natty needs-upstream-testing oneiric precise running-unity
Realtek 8168B (r8169) interface not working following suspend
You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.