![]() It occurred to me that if there is a web interface, there has to be a WOL executable on the router. Since I use DDWRT, I can go to the web interface and wake a machine (I have OpenVPN tunnels going all over the place, so i can access the web interface internally). Now my machines are sleeping (properly), and they can be woken from a WOL packet. This allows the machine to go to sleep and not wake until it receives a WOL packet. usr/sbin/systemsetup -setwakeonnetworkaccess off >/dev/null Then I added the following to my /opt/local/etc/rc.wakeup (again I could not get my “$home/.wakeup” to work) ![]() usr/sbin/systemsetup -setwakeonnetworkaccess on >/dev/null Then I added the following two lines to my /opt/local/etc/rc.sleep ( I could not get it working in my “$home/.sleep” file) So I installed sleepwatcher via MacPorts. This article describes the problem and a solution – sleepwatcher. I used to put my Mac to sleep every night at 11 pm, but if I enabled “Wake for network access” in the energy saver preference, the machine would wake up every two hours. Sleepwatcher is the most important part of this system. You could install Sleepwatcher via source, but I prefer a Package management system. There are two utilities in MacPorts that are useful for sleeping macs, Sleepwatcher and wakeonlan. I used to use Fink, but I switched, and I don’t remember why. I use DDWRT, so there is one on my home router. Requirements are MacPorts, and a Wake on LAN (WOL) utility. This is longer post describing my whole Wake/Sleep setup. I needed a way to wake the MacPro when she is looking for the videos. When she clicks on the symbolic lynk and the MacPro is sleeping she can’t find the videos she is looking for. The videos are actually on the Mac Pro, but it is transparent to her, when the machine is on. My wife comes home and tries to play videos for my son on the Mac Mini. I put my MacPro to sleep when I leave for work in the morning. I have two macs at home, a MacPro and a MacMini. By jbmurphy on Februin Mac, ShellScript Scenario
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |