tseug Posted November 2, 2014 Share Posted November 2, 2014 (edited) This looks like a good idea. The only thing I would try differently is to use launchctl stop and start instead of load and unload. EDIT: It now works. I changed the configuration in the original post to reflect this. To check that it is working: pmset -g log | grep DarkWake Edited November 3, 2014 by tseug Link to comment Share on other sites More sharing options...
kjp4756 Posted November 3, 2014 Share Posted November 3, 2014 EDIT: It now works. I changed the configuration in the original post to reflect this. To check that it is working: pmset -g log | grep DarkWake That's exactly the way I set up sleepwatcher too. Works for me as well. Link to comment Share on other sites More sharing options...
Markus23 Posted November 3, 2014 Share Posted November 3, 2014 EDIT: It now works. I changed the configuration in the original post to reflect this. Are you really sure that "-s /etc/rc.wakeup" and "-w /etc/rc.sleep" should be right ? -s is for sleep command , therefore it should be rc.sleep ? Maybe you must alter your original post , again ;-) ? Regards, Markus Link to comment Share on other sites More sharing options...
D-an-W Posted November 4, 2014 Share Posted November 4, 2014 @tseug, great idea, I used to use SleepWatcher with an older Bluetooth dongle to allow sleep. These are the commands I had... -s /Library/SleepWatcher/rc.Sleep -w /Library/SleepWatcher/rc.WakeUp Link to comment Share on other sites More sharing options...
tseug Posted November 4, 2014 Share Posted November 4, 2014 Are you really sure that "-s /etc/rc.wakeup" and "-w /etc/rc.sleep" should be right ? -s is for sleep command , therefore it should be rc.sleep ? Maybe you must alter your original post , again ;-) ? Regards, Markus You're absolutely right. Yet another edit. Thanks By the way, wake on LAN does not need to be disabled for this configuration to work. Link to comment Share on other sites More sharing options...
noreason4 Posted November 4, 2014 Share Posted November 4, 2014 So, which is the best way to go? Reinstall mDNSResponder or installing Sleepwatcher? 1 Link to comment Share on other sites More sharing options...
ADHDMedia Posted November 4, 2014 Share Posted November 4, 2014 I'd like to know as well. My sleep is functioning properly right now… should I mess with it? Link to comment Share on other sites More sharing options...
kjp4756 Posted November 4, 2014 Share Posted November 4, 2014 Go with the sleepwatcher method. There has to be a reason mdnsresponder was replaced with discoveryd. Right now discoveryd and mdnsresponder appear to do the same thing; maybe one that that will change? Link to comment Share on other sites More sharing options...
noreason4 Posted November 4, 2014 Share Posted November 4, 2014 Sounds reasonable... Any chance you may provide a reverse manual to reverse the changes made with mdnsresponder and a guide to install sleep watcher properly? Would really appreciate this Link to comment Share on other sites More sharing options...
D-an-W Posted November 4, 2014 Share Posted November 4, 2014 Other than checking the log for wake events is there a way to check discoveryd was disabled and re-enabled? Link to comment Share on other sites More sharing options...
tseug Posted November 4, 2014 Share Posted November 4, 2014 Other than checking the log for wake events is there a way to check discoveryd was disabled and re-enabled? Well, you obviously can't check if discoveryd is unloaded during sleep directly, but you can check that it is loaded (the sudo is very important here so make sure to remember it): sudo launchctl list | grep com.apple.networking.discoveryd This should return something. Otherwise discoveryd is not loaded. Another thing you can try before adding /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist is to check and see if your rc scripts work. I.e /usr/local/sbin/sleepwatcher -V -s /etc/rc.sleep in a terminal and then try to sleep or /usr/local/sbin/sleepwatcher -V -s /etc/rc.sleep -w /etc/rc.wakeup and then try to sleep In both these cases the terminal window will not report anything until you actually wake up from sleep again, and you have to initiate sleep manually (or wait until automatic sleep). Enter CTRL+C to stop SleepWatcher after testing. Refer to the SleepWatcher documentation for more details. 1 Link to comment Share on other sites More sharing options...
wolfie81 Posted November 5, 2014 Share Posted November 5, 2014 Can anyone pretty this up for basic users? Im a bit overwhelmed with how to install this with the scripts. I currently have a working system with the 'old' method' and a bit scared to bugger things up. Link to comment Share on other sites More sharing options...
noreason4 Posted November 5, 2014 Share Posted November 5, 2014 +1 I am running the old method on 2 macs as well. Don't want to mess around without a manual Thanks! Link to comment Share on other sites More sharing options...
kjp4756 Posted November 7, 2014 Share Posted November 7, 2014 I just switched back to msdnsresponder. The sleepwatcher method sometimes works and sometimes doesn't. For 2 mornings in a row my computer has been turned on instead of sleeping. The first night it did work as it should. Link to comment Share on other sites More sharing options...
noreason4 Posted November 17, 2014 Share Posted November 17, 2014 So, anyone brave enough to try 10.10.1 and see if the mDNSResponder mod still works? Will i have to go through the steps mentioned in the instruction above again or will those files presumably stay the way they are right now? Link to comment Share on other sites More sharing options...
CoBrA2168 Posted November 17, 2014 Share Posted November 17, 2014 Or, I wonder if 10.10.1 fixed the sleep RTC alarm issues all together... Link to comment Share on other sites More sharing options...
noreason4 Posted November 17, 2014 Share Posted November 17, 2014 Actually the method above is not just fixing the sleep issue.. It also disables the RTC Alarm Clock for when you have "Wake on Lan" enabled. This is superb as from now on all macs can sleep until someone sends a magic packet to wake them up. Hopefully someone capable will write an instruction on how to disable the RTC Alarm Clock even if 10.10.1 fixes the sleep issue. I gave up on the Wake on Lan Function since the release of Snow Leopard (which introduced this damn RTC Alarm/Bonjour Sleep Proxy {censored}). Having found this method a couple of weeks ago filled me with pure joy as it once again made my setup from a few years ago working flawlessly. I don't want do miss the luxury of sleeping macs while having wake on lan enabled.. Link to comment Share on other sites More sharing options...
noreason4 Posted November 19, 2014 Share Posted November 19, 2014 Anyone here who tried to install 10.10.1? Link to comment Share on other sites More sharing options...
kjp4756 Posted November 19, 2014 Share Posted November 19, 2014 Anyone here who tried to install 10.10.1? I installed 10.10.1 last night. I'm using mdnsresponder instead of discoveryd and things still work fine. I doubt anything has changed with discoveryd Link to comment Share on other sites More sharing options...
noreason4 Posted November 19, 2014 Share Posted November 19, 2014 Cool, were you using the instructions above after 10.10.1 or were those files edited prior to the update? Were you using the Combo Updater or the usual SoftwareUpdate? Link to comment Share on other sites More sharing options...
kjp4756 Posted November 19, 2014 Share Posted November 19, 2014 I had mdnsresponder working and discoveryd disabled before I installed 10.10.1. I used software update. Link to comment Share on other sites More sharing options...
p.H Posted November 20, 2014 Share Posted November 20, 2014 I had mdnsresponder working and discoveryd disabled before I installed 10.10.1. I used software update. same here. Still sound sleep. Link to comment Share on other sites More sharing options...
Lend27 Posted November 20, 2014 Share Posted November 20, 2014 My laptop was waking up every two hours like everyone else's here so I used the mdnsresponder files and launch daemons that I downloaded from this thread (post 33), unloaded and then reloaded the mdnsresponder and discoveryd files and it worked well. I got my internet back on and no longer have the laptop waking up on its own. Thanks mcdougal33. However, I was unable to upgrade to Yosemite so I downloaded the full 5 GB installer and installed the final version of 10.10 and, with a few quirks in the installation process, it installed correctly. But I had no internet. I couldn't remember where the mdnsresponder files go (usr/sbin) and I couldn't remember the terminal commands for unloading and reloading the mdnsresponder and discoveryd files. (Fortunately, I had done it fairly recently so I could use my up arrow in terminal to find them and rerun them.) But it occurred to me that there should be instructions with the files to explain how to install them so that someone who needs that information and finds that they can't access the internet can get it. I took the liberty to put one together and add it to the mdnsresponder files that mcdougal33 uploaded in post 33 of this thread. mDNSResponder with Instructions.zip EDIT - The instructions have been modified to conform to the comments regarding the original instructions below. Is this fix safe to use on a hackintosh running Yosemite? I have the sleep/reboot problem. Is this a fix for that? Just being cautious....don't want to mess anything up since the comp is running fine except for the sleep/reboot issue. Thanks Len Link to comment Share on other sites More sharing options...
p.H Posted November 20, 2014 Share Posted November 20, 2014 Is this fix safe to use on a hackintosh running Yosemite? I have the sleep/reboot problem. Is this a fix for that? Just being cautious....don't want to mess anything up since the comp is running fine except for the sleep/reboot issue. Thanks Len If your hack would wake itself up every two hours, this is the right cure for that problem. Link to comment Share on other sites More sharing options...
Lend27 Posted November 21, 2014 Share Posted November 21, 2014 If your hack would wake itself up every two hours, this is the right cure for that problem. How do I copy the helper files to usr/sbin? Sorry.....new to this but can follow directions Thanks! Len Link to comment Share on other sites More sharing options...
Recommended Posts