Well, I was wrong thinking your patch doesn't produce any effect because of initramfs. After rebuilding initrd I noticed that when shutting down the machine results in a reboot within less than one second. I also noticed that the ethtool output now indicates :
py@PC-FIXE2:~$ sudo ethtool eth0
[sudo] password for py:
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0 Transceiver: internal Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: pg
Current message level: 0x00000033 (51)
Link detected: yes
So, since it is supposed to wake up on PHY activity it is not completely a surprise.
I tried to manually set wol to "g" only (ethtool -s eth0 wol g). Invoking ethtool again indicates "Wake-on : g" but when I sut down again the machine, it reboots within the next second after shutdown. I tried to setup a starup script that sets "ethtool -s eth0 wol g" in each runlevel but with the same result.
Well, I was wrong thinking your patch doesn't produce any effect because of initramfs. After rebuilding initrd I noticed that when shutting down the machine results in a reboot within less than one second. I also noticed that the ethtool output now indicates :
py@PC-FIXE2:~$ sudo ethtool eth0
100baseT/ Half 100baseT/Full
1000baseT/ Full
100baseT/ Half 100baseT/Full
1000baseT/ Full
Transceiver: internal
Auto-negotiati on: on
[sudo] password for py:
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Supports Wake-on: pumbg
Wake-on: pg
Current message level: 0x00000033 (51)
Link detected: yes
So, since it is supposed to wake up on PHY activity it is not completely a surprise.
I tried to manually set wol to "g" only (ethtool -s eth0 wol g). Invoking ethtool again indicates "Wake-on : g" but when I sut down again the machine, it reboots within the next second after shutdown. I tried to setup a starup script that sets "ethtool -s eth0 wol g" in each runlevel but with the same result.
In advance, thank you for your help.
PYB