Hello everybody,
I have a problem with the WOL settings of my interface. Beside the method of waking up the server by a magic packet, I want the server to resume from suspend mode when the SMB/CIFS-share
is triggered from another client (for example Windows 10) (should be a unicast message).
Currently I'm at the position, that this is working when I manually suspend the server via shell with "pm-suspend".
But when the server turns into suspend mode by the Autoshutdown-Plugin, I'm not able to resume from the suspend mode by triggering from client share access.
Then I only can wake up the server with a magic packet (for example send via Fritzbox).
What I have done so far:
1.) Edit /etc/network/interface
# The loopback network interface
auto lo
iface lo inet loopback
# eno1 network interface
auto eno1
allow-hotplug eno1
iface eno1 inet static
address 192.168.83.1
gateway 192.168.83.99
netmask 255.255.255.0
dns-nameservers 8.8.8.8
dns-search worldgate.local
post-down ethtool -s $IFACE wol ug
post-up ethtool -s $IFACE wol ug
iface eno1 inet6 manual
pre-down ip -6 addr flush dev $IFACE
# Include additional interface stanzas.
source interfaces.d
Alles anzeigen
Here you can see that I added/change to post-down/post-up with wol mode ug.
2.) Added shutdown-Script: /usr/lib/pm-utils/sleep.d/70wol
I'm not quite sure if both or only one of them leads the way to wake up the server after the "pm-suspend" command manually entered in the shell and triggered by Windows Client to wake uo, but it works.
3.) Here is the /etc/autoshutdown.conf
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
ENABLE="true"
CYCLES=2
SLEEP=30
RANGE="-"
SHUTDOWNCOMMAND="systemctl suspend"
CHECKCLOCKACTIVE="false"
UPHOURS="6..20"
NSOCKETNUMBERS="21,80,139,3689,6991,9091,49152"
ULDLCHECK="true"
ULDLRATE=50
LOADAVERAGECHECK="false"
LOADAVERAGE=40
HDDIOCHECK="false"
HDDIO_RATE=401
CHECK_SAMBA="false"
CHECK_CLI="false"
SYSLOG="true"
VERBOSE="false"
FAKE="false"
Alles anzeigen
Nothing yery special- Only checking some ports and ULDL-Rate.
What I found out so far:
After manually suspended the server and woke it up again, "ethtool eno1" shows me the info I suspect
Settings for eno1:
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: ug
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Alles anzeigen
But after I wake up the server with magic packet after suspended by Autoshutdown-Plugin, the "ethtool eno1" shows me that only wol mode "g" is set?!?
So the it seems, that OMV, the Autoshutdown-Plugin and/or Debian "overwrites" my settings in /etc/network/interface and/or /usr/lib/pm-utils/sleep.d/70wol.
Is it possible? Does someone has a clue for me which shutdown-/suspend-script could be responsible for this?
Thanks in advance
Greetings
Michael