[Bug 739677] New: Wake-on LAN (WOL) does not work after a halt/shutdown but works after a reboot
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c0 Summary: Wake-on LAN (WOL) does not work after a halt/shutdown but works after a reboot Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: Damien.Allain@legos.obs-mip.fr QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 Wake-on LAN (WOL) does not work after a halt/shutdown but works after a reboot. Reproducible: Always Steps to Reproduce: 1.Check if WOL is enabled on your card sudo /sbin/ethtool eth0 If not, enable it with: sudo /sbin/ethtool -s eth0 wol g Ensure HALT_NETWORK="no" in /etc/sysconfig/shutdown 2.shutdown the computer and fail to power on the machine remotely with wol 3.reboot the computer but force shutdown at the grub promp, and successfully power on the machine remotely with wol No workaround for the moment. I did try something like the workaround for Bug 739674 but it failed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c1 --- Comment #1 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-01-06 15:47:46 UTC --- ERRATUM : Wake-on LAN (WOL) does not work after BOTH halt/shutdown AND reboot since openSUSE 12.1 Steps to Reproduce: 1.(no correction neeeded) 2. - either shutdown the computer - or reboot the computer but force shutdown at the grub promp 3.fail to power on the machine remotely with wol -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c2 --- Comment #2 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-01-19 11:12:33 UTC --- WORKAROUND that is a horrible hack but shows this IS a kernel bug. # The idea is to ensure we halt with grub only, after fully rebooting from a 2.6 kernel. # INSTALL 2.6 KERNEL zypper addrepo http://download.opensuse.org/repositories/Kernel:/openSUSE-11.4/openSUSE_11.... # Select kernel-default if your kernel is NOT kernel-default, so that you do not downgrade your original kernel zypper in kernel-default-2.6.37.6-86.1.x86_64 # REBOOT TO 2.6 WHEN ASKED TO SHUTDOWN # In /etc/init.d/halt, after ``*halt)'', add a line with : if [ `uname -r` \> 2 ];then grubonce 2.6;exec /etc/init.d/reboot;fi # FORCE /etc/init.d/halt FOR SHUTDOWN cd /sbin mkdir old halt="shutdown poweroff halt" mv -v $halt old for f in $halt;do echo exec /etc/init.d/halt>$f;done chmod -c a+rx $halt # AFTER FULLY REBOOTING FROM A 2.6 KERNEL, HALT WITH GRUB # In /etc/X11/xdm/Xsetup, before ``Enable Numlock if set'', add a line with : if [ `uname -r` \< 3 ];then grubonce halt;/etc/init.d/reboot & fi # add relevant grub entry with printf "\n\ntitle halt\n halt\n" >>/boot/grub/menu.lst -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |bpoirier@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c3 --- Comment #3 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-03-20 07:55:52 UTC --- AMENDUM The horrible hack above is likely to badly crash your computer. I just re-installed. Other workarounds : - the bug has been assigned 15hours ago : wait for the solution - use wake on alarm from your BIOS - mess up the planet's climate by leaving your machine on... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c4 Benjamin Poirier <bpoirier@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |Damien.Allain@legos.obs-mip | |.fr --- Comment #4 from Benjamin Poirier <bpoirier@suse.com> 2012-04-05 20:22:48 UTC --- It is some creative workaround you got ;) This is probably a problem specific to your nic (and perhaps motherboard). I've confirmed WoL works on other 12.1 systems. We'll have to try and narrow things down. As a first step, please install the package "supportutils", run `supportconfig -i HCREPORT,NET,BOOT -y` and attach the resulting file to this bug. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c5 --- Comment #5 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-04-06 07:57:36 UTC --- Ok, I can not attach anything on BUGGY zilla.novell.com so I am e-mailing you the file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c6 Damien Allain <Damien.Allain@legos.obs-mip.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|Damien.Allain@legos.obs-mip | |.fr | --- Comment #6 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-04-06 08:00:14 UTC --- Created an attachment (id=485144) --> (http://bugzilla.novell.com/attachment.cgi?id=485144) attachement requested by #c4 # Did : sudo zypper in supportutils sudo /sbin/supportconfig -i HCREPORT,NET,BOOT -y sudo chmod go+r /var/log/nts_pc-allain_120406_0909.tbz # log file attached. md5sum: 576fc996e999ab7a802d746f4740e9fb # Thanks :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c7 Benjamin Poirier <bpoirier@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |Damien.Allain@legos.obs-mip | |.fr --- Comment #7 from Benjamin Poirier <bpoirier@suse.com> 2012-04-15 19:02:22 UTC --- Hello Damien, I've prepared a kernel image to test a potential solution and help diagnose the problem further. It will be available at: http://download.opensuse.org/repositories/home:/benjamin_poirier:/bnc739677/... Note that this is a 2.6.37 kernel. I think there may be two different problems in 11.4 and 12.1 and 2.6.37 seemed easier to tackle first. Please install this kernel in 11.4 or 12.1; add "ignore_loglevel" to its boot parameters in grub's /boot/grub/menu.lst; and reboot to it. The kernel includes three levels of workaround, controlled by the r8169.workaround module parameter: 0: disable all workarounds 1: (default) do not enable receiver at shutdown same effect as e18cd18 r8169: don't enable rx when shutdown. 2: skip the SYSTEM_POWER_OFF branch entirely in rtl_shutdown Please check if you notice any improvement when powering off from this kernel. Note that when you shut down, it is important to do so using the command `poweroff` and not `halt` as the latter causes a crucial part of the r8169 WoL code to be skipped. If you don't notice any improvement, please add "options r8169 workaround=2" to "/etc/modprobe.d/99-local.conf", unload and reload (using modprobe) the r8169 module (or reboot) and try again. Please report the effect of workaround=1 (the default) and workaround=2. The kernel also includes extra debugging output. I'd like to see the last logs right before shutdown in the default workaround=1 case. Since your motherboard does not have a serial port (AFAICS) and netconsole is no use here I've added a 5s delay before shutdown so you can take a picture of your console. To do this, switch to the first virtual terminal with <ctrl-alt-f1>, login as root and issue `poweroff`. The ignore_loglevel kernel parameter is important here. The output should look somewhat like this: Disabling swaps. Detaching loop devices. Detaching DM devices. [ 47.543789] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 47.550478] sd 2:0:0:0: [sda] Stopping disk [ 47.555129] r8169 0000:03:00.0: eth1: get_wol, g [ 47.571235] pcieport 0000:00:1c.3: wake-up capability enabled by ACPI [ 47.577880] r8169 0000:03:00.0: eth1: at shutdown, g 1: 0f 3: 62 5: 02 [ 47.595243] r8169 0000:02:00.0: eth0: get_wol, g [ 47.611547] pcieport 0000:00:1c.2: wake-up capability enabled by ACPI [ 47.618187] r8169 0000:02:00.0: eth0: at shutdown, g 1: 0f 3: 62 5: 02 [ 47.635669] ACPI: Preparing to enter system sleep state S5 [ 47.641884] Disabling non-boot CPUs ... [ 47.647780] bnx2fc: CPU 1 offline: Remove Rx thread [ 47.652704] CPU 1 offline: Remove Rx thread [ 47.656992] Power down. (in 5 secs) [ 52.661021] Power down. (now) [ 52.664214] acpi_power_off called Please also provide the output of `lspci -tv` so we can make sense of the "wake-up capability" messages (if any). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c8 --- Comment #8 from Benjamin Poirier <bpoirier@suse.com> 2012-04-16 20:38:42 UTC --- Following a post from Hayes Wang on netdev this morning I've updated the test kernel with one more potential workaround. If the previous instructions don't bring any success please also try with r8169 workaround=4. Reference: http://thread.gmane.org/gmane.linux.network/225294/focus=227349 The updated rpms will be available in the same OBS project repository once they are done building: http://download.opensuse.org/repositories/home:/benjamin_poirier:/bnc739677/... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c9 Damien Allain <Damien.Allain@legos.obs-mip.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|Damien.Allain@legos.obs-mip | |.fr | --- Comment #9 from Damien Allain <Damien.Allain@legos.obs-mip.fr> 2012-05-18 15:04:48 UTC --- Hello, I noticed WOL can somewhat work on my machine : when power is going off, WOL make the machine reboot instead of shuttung down. A few seconds later, it fails to do anything. I tried all 4 workarounds, but they all seam to fail. The last logs right before shutdown in the default workaround=1 case, replacing the seconds counts with ***, are : [***] md: stopping all md devices. [***] sd 3:0:0:0: [sdc] Synchronizing SCSI cache [***] sd 3:0:0:0: [sdc] Stopping disk [***] sd 2:0:0:0: [sdb] Synchronizing SCSI cache [***] sd 2:0:0:0: [sdb] Stopping disk [***] sd 1:0:0:0: [sda] Synchronizing SCSI cache [***] sd 1:0:0:0: [sda] Stopping disk [***] r8169 0000:06:00.0: PME# enabled [***] pci 0000:00:1c.2: wake-up capability enabled by ACPI [***] r8169 0000:06:00.0: eth1: at shutdown, g 1: 0f 2: 3c 3: 62 5: 02 [***] r8169 0000:07:00.0: PME# enabled [***] pci 0000:00:1c.1: wake-up capability enabled by ACPI [***] r8169 0000:07:00.0: eth1: at shutdown, g 1: 1f 2: 3c 3: 62 5: 02 [***] ehci_hcd 0000:00:1d.7: PCI INT A disabled [***] ehci_hcd 0000:00:1a.7: PCI INT C disabled [***] ACPI: Preparing to enter system sleep state S5 [***] Disabling non-boot CPUs ... [***] SMP alternatives: switching to UP code [***] Power down. (in 5 secs) The output of `sudo /sbin/lspci -tv` is : -[0000:00]-+-00.0 Intel Corporation 5520/5500/X58 I/O Hub to ESI Port +-01.0-[01-03]--+-00.0-[03]-- | \-00.1-[02]-- +-03.0-[04]----00.0 nVidia Corporation G98 [GeForce 8400 GS] +-07.0-[05]-- +-14.0 Intel Corporation 5520/5500/X58 I/O Hub System Management Registers +-14.1 Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers +-14.2 Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers +-14.3 Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers +-1a.0 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4 +-1a.1 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5 +-1a.2 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 +-1a.7 Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2 +-1b.0 Intel Corporation 82801JI (ICH10 Family) HD Audio Controller +-1c.0-[08]-- +-1c.1-[07]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller +-1c.2-[06]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller +-1d.0 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 +-1d.1 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 +-1d.2 Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 +-1d.7 Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 +-1e.0-[09]----04.0 Agere Systems FW322/323 +-1f.0 Intel Corporation 82801JIR (ICH10R) LPC Interface Controller +-1f.2 Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1 +-1f.3 Intel Corporation 82801JI (ICH10 Family) SMBus Controller \-1f.5 Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c10 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #10 from Jeff Mahoney <jeffm@suse.com> 2014-08-08 16:25:41 EDT --- This report is against openSUSE 12.1 which is no longer under maintenance. If you are able to reproduce it with openSUSE 13.1 or openSUSE Factory, please re-open and reset the the "Product" field to the appropriate release. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739677 https://bugzilla.novell.com/show_bug.cgi?id=739677#c Damien Allain <Damien.Allain@legos.obs-mip.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |Kernel AssignedTo|bpoirier@suse.com |kernel-maintainers@forge.pr | |ovo.novell.com Product|openSUSE 12.1 |openSUSE 13.1 Target Milestone|--- |Final -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com