Hi all
My long shot is to preserve energy. So I got a shiny new server with low energy consumption. Installed an configured it, so it now provides what we need to get from it to run our family and business. Tuned it to consume as little energy as possible when up. If no one is logged in, my target is to get the server to detect that and put itself into Suspend To Ram (STR) or hibernation (STD), depending on daytime and week day. The idea is to have the server woken up whenever a client is booted or woken up. This part should simply work as I am out ferquently for longer time, even days. But it is exactly here wher it struggles:
I can put the serve to Suspend To Ram (STR) and wake it up by “/usr/bin/wol 00:11:22:33:44:55”. That part works like a charm. The server provides dhcp service among others. It is running OpenSuSE 13.2 with latest updates. So serverside no issue at all, client no problem too, as long as it keeps it’s IP.
Different story, if I put the client to STR, STD or shut it down. When reactivated, network-manager (NM) tries to activate the network but can’t as obviously the server is still in STR state. when I try to send the same “/usr/bin/wol 00:11:22:33:44:55”, I now get
/usr/bin/wol: Kann kein magic packet für »00:11:22:33:44:55« zu 255.255.255.255:40000 senden: Das Netzwerk ist nicht erreichbar
Meaning wol can’t send magic packet as network is unreachable. That does not lack logic, as NM has obviously not gotten an IP as the server is still to be woken up. That’s probably where the cat bites its tail.
So I thought, I manually bring up the network after stopping NM and then issue the wol cmd, thinking I still can do this in a script in /etc/pm/sleepd if it works. I tried:
ifconfig enp0s25 192.168.23.253 up
Hi all
My long shot is to preserve energy. so I got a shiny ne server with low energy consumption. Installed an configured it, so it now provides what we need to get from it to run our family and business. Tuned it to consume as little energy as possible when up. If no one is logged in, my target is to get the server to detect that and put itself into Suspend To Ram (STR) or hibernation (STD), depending on daytime and week day. The idea is to have the server woken up whenever a client is booted or woken up. This part should simply work as I am out ferquently for longer time, even days. But it is exactly here wher it struggles:
I can put the serve to Suspend To Ram (STR) and wake it up by "/usr/bin/wol 00:11:22:33:44:55". That part works like a charm. The server provides dhcp service among others. It is running OpenSuSE 13.2 with latest updates. So serverside no issue at all, client no problem too, as long as it keeps it's IP.
Different story, if I put the client to STR, STD or shut it down. When reactivated, network-manager (NM) tries to activate the network but can't as obviously the server is still in STR state. when I try to send the same "/usr/bin/wol 00:11:22:33:44:55", I now get
/usr/bin/wol: Kann kein magic packet für »00:11:22:33:44:55« zu 255.255.255.255:40000 senden: Das Netzwerk ist nicht erreichbar
Meaning wol can't send magic packet as network is unreachable. That does not lack logic, as NM has obviously not gotten an IP as the server is still to be woken up. That's probably where the cat bites its tail.
So I thought, I manually bring up the network after stopping NM and then issue the wol cmd, thinking I still can do this in a script in /etc/pm/sleepd if it works. I tried:
ifconfig enp0s25 192.168.23.254 up
ifconfig enp0s25
enp0s25 Link encap:Ethernet Hardware Adresse 00:11:22:33:44:55
inet Adresse:192.168.23.254 Bcast:192.168.23.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1164230 errors:0 dropped:2 overruns:0 frame:0
TX packets:1067551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:1089895477 (1039.4 Mb) TX bytes:315845215 (301.2 Mb)
Interrupt:20 Speicher:fc200000-fc220000
ping 192.168.23.109
PING 192.168.23.109 (192.168.23.109) 56(84) bytes of data.
64 bytes from 192.168.23.109: icmp_seq=1 ttl=64 time=0.513 ms
64 bytes from 192.168.23.109: icmp_seq=2 ttl=64 time=0.378 ms
/usr/bin/wol 00:11:22:33:44:55
/usr/bin/wol: Kann kein magic packet für »00:11:22:33:44:55« zu 255.255.255.255:40000 senden: Das Netzwerk ist nicht erreichbar
So despite the fact, that I can ping a machine on the same net, wol can't send the magic packet to the server. Why?
If I cannot solve this, my long target to preserve energy by automagically put the server into STR and wake it up when a Client is booted or woken up is unachievable. I have been googling around for this quite some time. I just can't believe not a sole having a similar idea and hopefully solved this.
I tried also to switch network mangment from NM to wicked, but that is inaccptable as with wcked there is no airplanmode availble.
Can anyone jump in and help please?
Greez
chris