Bug#830230: systemd disable wake-on-lan

Norbert Schulz n.schulz at rotorwerk.de
Thu Jul 14 14:04:33 BST 2016


Michael Biebl schrieb:
> Control: tags -1 + moreinfo
> 
> What's the output of
> ethtool <your_interface> if you boot with systemd? What if you boot with
> sysvinit.
> 
output of ethtool eth0 with systemd
Settings for eth0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: on (auto)
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000007 (7)
			       drv probe link
	Link detected: yes

output of ethtool eth0 with sysvinit
Settings for eth0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: off (auto)
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000007 (7)
			       drv probe link
	Link detected: yes



The difference between them is the MDI-X: value, with systemd it is 'on' and
with sysvinit it is 'off'.

> Could you create a script /lib/systemd/system-shutdown/ethtool containing:
> 
> #!/bin/sh
> ethtool <your_interface>
> 
> Mark it as executable and the run systemctl halt
> 
> What's the output of the script?
> 
There is no output of the script. No messages will be written to /var/log/syslog
or /var/log/messages


> Do you use systemd-networkd?
No, not that I know of.



regards
Norbert Schulz




More information about the Pkg-systemd-maintainers mailing list