Thank you very much for answering to my report. Please excuse my late answer. I did't had much time to test.
> It works on my own system with one of these chips, but only from > soft-off (S5) and not suspend-to-disk (S4). Which are you testing? > > Does this work in Linux 3.2 from testing/unstable or squeeze-backports? I tried suspend-to-ram and suspend-to-disk and never tried from "shutdown". The included 8169 driver from kernel 2.6.32 and from 3.2bpo does not wake up from both suspend-modes. In very rare cases (only one time with 2.6.32) it worked from suspend-to-ram. But since then even repeating to send the magic packet 20 times does not help. I tried the r8168 driver with kernel 2.6.32 and 3.2bpo and wake on lan works perfect from both suspend-modes. In very rare cases the system does not wake up correctly from suspend-to-ram and hangs. Then it looks like the system is off (led is off). When i press the button i hear the fans starting and then going off. The led is blinking like in suspend-to-ram mode. Pressing the button again the fans start again, but the screen stays black and the system hangs completly. > Also, there are many variants of the chip and this might be a relevant > detail. Can you provide the initial kernel log messages from the r8169 > driver (try running 'grep r8169 /var/log/dmesg')? This is a log from kernel 2.6.32 (woken up by button): Apr 19 20:17:02 andreas2 kernel: [ 0.756319] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded Apr 19 20:17:02 andreas2 kernel: [ 0.756390] r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 Apr 19 20:17:02 andreas2 kernel: [ 0.756459] r8169 0000:04:00.0: setting latency timer to 64 Apr 19 20:17:02 andreas2 kernel: [ 0.756555] r8169 0000:04:00.0: irq 28 for MSI/MSI-X Apr 19 20:17:02 andreas2 kernel: [ 0.757408] r8169 0000:04:00.0: eth0: RTL8168b/8111b at 0xffffc90000662000, 00:08:54:6d:5a:77, XID 18000000 IRQ 28 Apr 19 20:17:02 andreas2 kernel: [ 112.463057] r8169 0000:04:00.0: eth0: link down Apr 19 20:17:02 andreas2 kernel: [ 112.463073] r8169 0000:04:00.0: eth0: link down Apr 19 20:17:02 andreas2 kernel: [ 114.024234] r8169 0000:04:00.0: eth0: link up Apr 22 17:30:16 andreas2 kernel: [ 5383.189109] r8169 0000:04:00.0: eth0: link down Apr 22 17:30:16 andreas2 kernel: [ 5383.189121] r8169 0000:04:00.0: eth0: link down Apr 22 17:30:18 andreas2 kernel: [ 5384.781997] r8169 0000:04:00.0: eth0: link up Apr 23 17:34:13 andreas2 kernel: [55187.548694] r8169 0000:04:00.0: PME# enabled Apr 23 17:34:13 andreas2 kernel: [55187.870550] r8169 0000:04:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10b) Apr 23 17:34:13 andreas2 kernel: [55187.870571] r8169 0000:04:00.0: restoring config space at offset 0x6 (was 0x4, writing 0xd0300004) Apr 23 17:34:13 andreas2 kernel: [55187.870580] r8169 0000:04:00.0: restoring config space at offset 0x4 (was 0x1, writing 0x5001) Apr 23 17:34:13 andreas2 kernel: [55187.870587] r8169 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x20) Apr 23 17:34:13 andreas2 kernel: [55187.870595] r8169 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100547) Apr 23 17:34:13 andreas2 kernel: [55187.944106] r8169 0000:04:00.0: PME# disabled Apr 23 17:34:13 andreas2 kernel: [55193.744409] r8169 0000:04:00.0: eth0: link down Apr 23 17:34:13 andreas2 kernel: [55193.744422] r8169 0000:04:00.0: eth0: link down Apr 23 17:34:15 andreas2 kernel: [55195.337224] r8169 0000:04:00.0: eth0: link up This is log from kernel 3.2bpo (woken up by button): May 9 19:12:05 andreas2 kernel: [ 1.006535] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded May 9 19:12:05 andreas2 kernel: [ 1.006572] r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 May 9 19:12:05 andreas2 kernel: [ 1.006614] r8169 0000:04:00.0: setting latency timer to 64 May 9 19:12:05 andreas2 kernel: [ 1.006703] r8169 0000:04:00.0: irq 44 for MSI/MSI-X May 9 19:12:05 andreas2 kernel: [ 1.007379] r8169 0000:04:00.0: eth0: RTL8168b/8111b at 0xffffc9000066c000, 00:08:54:6d:5a:77, XID 18000000 IRQ 44 May 9 19:12:05 andreas2 kernel: [ 1.007384] r8169 0000:04:00.0: eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko] May 9 19:12:05 andreas2 kernel: [ 46.096271] r8169 0000:04:00.0: eth0: link down May 9 19:12:05 andreas2 kernel: [ 46.096301] r8169 0000:04:00.0: eth0: link down May 9 19:12:05 andreas2 kernel: [ 47.689509] r8169 0000:04:00.0: eth0: link up May 9 19:49:17 andreas2 kernel: [ 0.967675] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded May 9 19:49:17 andreas2 kernel: [ 0.967709] r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 May 9 19:49:17 andreas2 kernel: [ 0.967749] r8169 0000:04:00.0: setting latency timer to 64 May 9 19:49:17 andreas2 kernel: [ 0.967837] r8169 0000:04:00.0: irq 44 for MSI/MSI-X May 9 19:49:17 andreas2 kernel: [ 1.028195] r8169 0000:04:00.0: eth0: RTL8168b/8111b at 0xffffc90000642000, 00:08:54:6d:5a:77, XID 18000000 IRQ 44 May 9 19:49:17 andreas2 kernel: [ 1.028202] r8169 0000:04:00.0: eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko] May 9 19:49:17 andreas2 kernel: [ 43.590152] r8169 0000:04:00.0: eth0: link down May 9 19:49:17 andreas2 kernel: [ 45.163203] r8169 0000:04:00.0: eth0: link up May 9 20:07:19 andreas2 kernel: [ 0.945261] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded May 9 20:07:19 andreas2 kernel: [ 0.945295] r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 May 9 20:07:19 andreas2 kernel: [ 0.945337] r8169 0000:04:00.0: setting latency timer to 64 May 9 20:07:19 andreas2 kernel: [ 0.945424] r8169 0000:04:00.0: irq 44 for MSI/MSI-X May 9 20:07:19 andreas2 kernel: [ 0.946093] r8169 0000:04:00.0: eth0: RTL8168b/8111b at 0xffffc90000640000, 00:08:54:6d:5a:77, XID 18000000 IRQ 44 May 9 20:07:19 andreas2 kernel: [ 0.946099] r8169 0000:04:00.0: eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko] May 9 20:07:19 andreas2 kernel: [ 43.809253] r8169 0000:04:00.0: eth0: link down May 9 20:07:19 andreas2 kernel: [ 45.455721] r8169 0000:04:00.0: eth0: link up May 9 20:13:27 andreas2 kernel: [ 123.008323] r8169 0000:04:00.0: PME# enabled May 9 20:13:27 andreas2 kernel: [ 123.162674] r8169 0000:04:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10b) May 9 20:13:27 andreas2 kernel: [ 123.162695] r8169 0000:04:00.0: restoring config space at offset 0x6 (was 0x4, writing 0xd0300004) May 9 20:13:27 andreas2 kernel: [ 123.162704] r8169 0000:04:00.0: restoring config space at offset 0x4 (was 0x1, writing 0x5001) May 9 20:13:27 andreas2 kernel: [ 123.162711] r8169 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x8) May 9 20:13:27 andreas2 kernel: [ 123.162720] r8169 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100547) May 9 20:13:27 andreas2 kernel: [ 123.163701] r8169 0000:04:00.0: PME# disabled May 9 20:13:27 andreas2 kernel: [ 127.908481] r8169 0000:04:00.0: eth0: link down May 9 20:13:27 andreas2 kernel: [ 127.908492] r8169 0000:04:00.0: eth0: link down May 9 20:13:29 andreas2 kernel: [ 129.553837] r8169 0000:04:00.0: eth0: link up Maybe you are interested in the log of the r8168 driver too: May 11 20:32:00 andreas2 kernel: [ 0.184485] pci 0000:04:00.0: [10ec:8168] type 0 class 0x000200 May 11 20:32:00 andreas2 kernel: [ 0.218168] pci_bus 0000:0a: resource 5 [mem 0x00000000-0xfffffffff] May 11 20:32:00 andreas2 kernel: [ 4.212679] r8168 Gigabit Ethernet driver 8.029.00-NAPI loaded May 11 20:32:00 andreas2 kernel: [ 4.212720] r8168 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 May 11 20:32:00 andreas2 kernel: [ 4.212751] r8168 0000:04:00.0: setting latency timer to 64 May 11 20:32:00 andreas2 kernel: [ 4.212842] r8168 0000:04:00.0: irq 45 for MSI/MSI-X May 11 20:32:00 andreas2 kernel: [ 4.213734] eth%d: RTL8168B/8111B at 0xffffc90000658000, 00:08:54:6d:5a:77, IRQ 45 May 11 20:32:00 andreas2 kernel: [ 4.236132] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625. May 11 20:32:00 andreas2 kernel: [ 4.236138] eth1: Identified chip type is 'RTL8168B/8111B'. May 11 20:32:00 andreas2 kernel: [ 4.236142] r8168 Copyright (C) 2012 Realtek NIC software team <nic...@realtek.com> May 11 20:32:00 andreas2 kernel: [ 39.452374] r8168: eth0: link down May 11 20:32:00 andreas2 kernel: [ 41.024888] r8168: eth0: link up May 11 20:32:00 andreas2 kernel: [ 41.452028] r8168: eth0: link up May 12 09:20:29 andreas2 kernel: [ 4739.546523] r8168 0000:04:00.0: restoring config space at offset 0x1 (was 0x100147, writing 0x100547) May 12 09:20:31 andreas2 kernel: [ 4743.890785] r8168: eth0: link down May 12 09:20:32 andreas2 kernel: [ 4744.888036] r8168: eth0: link down May 12 09:20:32 andreas2 kernel: [ 4745.515461] r8168: eth0: link up May 12 09:20:33 andreas2 kernel: [ 4745.888032] r8168: eth0: link up May 12 11:13:25 andreas2 kernel: [ 0.184486] pci 0000:04:00.0: [10ec:8168] type 0 class 0x000200 May 12 11:13:25 andreas2 kernel: [ 4.193573] r8168 Gigabit Ethernet driver 8.029.00-NAPI loaded May 12 11:13:25 andreas2 kernel: [ 4.193621] r8168 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 May 12 11:13:25 andreas2 kernel: [ 4.193653] r8168 0000:04:00.0: setting latency timer to 64 May 12 11:13:25 andreas2 kernel: [ 4.193746] r8168 0000:04:00.0: irq 45 for MSI/MSI-X May 12 11:13:25 andreas2 kernel: [ 4.194641] eth%d: RTL8168B/8111B at 0xffffc90000658000, 00:08:54:6d:5a:77, IRQ 45 May 12 11:13:25 andreas2 kernel: [ 4.217116] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625. May 12 11:13:25 andreas2 kernel: [ 4.217122] eth0: Identified chip type is 'RTL8168B/8111B'. May 12 11:13:25 andreas2 kernel: [ 4.217126] r8168 Copyright (C) 2012 Realtek NIC software team <nic...@realtek.com> May 12 11:13:25 andreas2 kernel: [ 149.695561] r8168: eth0: link down May 12 11:13:27 andreas2 kernel: [ 151.692029] r8168: eth0: link up May 12 13:16:59 andreas2 kernel: [ 658.666465] r8168 0000:04:00.0: restoring config space at offset 0x1 (was 0x100147, writing 0x100547) May 12 13:17:02 andreas2 kernel: [ 662.658543] r8168: eth0: link down May 12 13:17:03 andreas2 kernel: [ 663.656025] r8168: eth0: link down May 12 13:17:03 andreas2 kernel: [ 664.293573] r8168: eth0: link up May 12 13:17:04 andreas2 kernel: [ 664.656021] r8168: eth0: link up Regards, Andreas