rayap Posted October 3, 2011 Author Share Posted October 3, 2011 I am still getting the occasional short wake due to the RTC Alarm, I assume it is supposed to do this though? A sleeping mac should (dark) wake up every couple of hours by RTC Alarm to refresh it's available services with a sleep proxy. Sleep proxies are available in Airport stuff or even in a mac. Use Bonjour Browser and watch. Link to comment Share on other sites More sharing options...
sbg Posted October 17, 2011 Share Posted October 17, 2011 Has anyone else tried booting with the following kernel parameter: darkwake=0 This looks like it switches off Low Power Wake entirely, i.e. reverting to Snow Leopard's behaviour which doesn't care about "wake reason" and the like. I can now wake my Lion box fully with a Wake-on-Lan app and the front power button (which didn't work before). I just came across this in IOPMrootDomain.cpp in the latest XNU sources. It seems to be working for me so far (along with patched AppleRTC.kext). Running a GA-P55M-UD2 with DSDT from tonymacx86. Any suggestions on how to put this into .Boot.plist?? I tried <key>darkwake</key> <string>0</string> but no success. Anybody? Link to comment Share on other sites More sharing options...
D-an-W Posted October 17, 2011 Share Posted October 17, 2011 <key>Kernel Flags</key> <string>darkwake=0</string> Link to comment Share on other sites More sharing options...
sbg Posted October 18, 2011 Share Posted October 18, 2011 That worked. Thanks Link to comment Share on other sites More sharing options...
ontheslab Posted October 27, 2011 Share Posted October 27, 2011 Just to say thanks for the tip - got my WOL back up and running on 10.7.2! Thanks. Link to comment Share on other sites More sharing options...
rimmi2002 Posted November 14, 2011 Share Posted November 14, 2011 Hi I started using darkwake=0 and started running into trouble. On occasion when waking from sleep...all my usb ports are dead...meaning don't come back even after unplugging and plugging. I have to restart the computer to get USB functionality. To experiment I changed my darkwake from darkwake=0 to darkwake=1. Now things seem to be working better. Can anyone with more knowledge of the darkwake command please tell me what exactly it does and what is the difference between darkwake= 0 vs 1. Thanks. Link to comment Share on other sites More sharing options...
ApexDE Posted November 18, 2011 Share Posted November 18, 2011 I am using the CMOS reset patch from rayap (first post). All was fine until i wanted to use WOL. When WOL is enabled in EnergySaver Preferences i am getting sleep issues. The system won't wake up after sleep. Pushing the Powerbutton results in a cold start and resume-from-disk. It seems Sleep-to-RAM is broken when enabling WOL. Anyone else experiencing this? I assume the problem exists because of the CMOS Reset Patch? Link to comment Share on other sites More sharing options...
rayap Posted November 18, 2011 Author Share Posted November 18, 2011 @ApexDE Using Lnx2Mac's latest driver? Link to comment Share on other sites More sharing options...
ApexDE Posted November 18, 2011 Share Posted November 18, 2011 I am using the AppleRTL8169Ethernet.kext from SL. WOL works with it, but scheduled Wake is messed up, when activated. The Machine doesn't sleep to ram. If WOL is turned off, all is fine. EDIT: i trashed the SnowLeopard AppleRTL8169.kext and installed the lnx2mac 0.9 kext. Sleep to RAM works now, when WOL is activated. I used the AppleRTL kext cause i had major sleep issues with the lnx2mac 0.67 kext in the past. It seems it's the other way around now The only problem now is the known one: If darkewake is = 0 , the Machine will go back to sleep after waking up via WOL cause of "wake reason = ?" I guess i'll have to use darkwake=1. Will the Machine wake up hourly if darkwake=1 is set? The Machine usesd to wake up hourly to update some bonjour service stuff. Link to comment Share on other sites More sharing options...
Noam AA Posted November 18, 2011 Share Posted November 18, 2011 hey, i was able to solve the "wake reason = ?" in a friends PC after realizing that the boot loader that load the lion, wasn't the main boot loader (bios read from another hard-disk, and also the partition wasn't the active one) do you have any other Chameleon other then the Lion one? Link to comment Share on other sites More sharing options...
ApexDE Posted November 18, 2011 Share Posted November 18, 2011 No, i only have one boot loader installed and active. I had to patch and compile it myself to get proper wake-from-disk, this was messed up since Lion. I had a kernel panic with lnx2mac's Realtek Driver after waking up via WOL from my iPhone. Damn, it seems there is no WOL solution for me Is it even possible to have WOL without the frequent auto wake-ups to tell that it's still alive and hosting some services? (the system wakes every 2-4 hours and goes back to sleep after some seconds) I just want WOL, no frequent auto wake-ups. Link to comment Share on other sites More sharing options...
rayap Posted November 19, 2011 Author Share Posted November 19, 2011 @ApexDE You can try this http://hints.macworld.com/comment.php?mode...&cid=124492 Link to comment Share on other sites More sharing options...
ApexDE Posted November 19, 2011 Share Posted November 19, 2011 @ rayap NICE, thanks. I'll try that ASAP. EDIT: That didn't work. The System woke up every two hours anyway. But, shouldn't it look like this? I'll try and report <key>ProgramArguments</key> <array> <string>/usr/sbin/mDNSResponder</string> <string>-launchd</string> <string>-DisableSleepProxyClient</string> </array> Link to comment Share on other sites More sharing options...
ApexDE Posted November 21, 2011 Share Posted November 21, 2011 Above entry works But i get KP sometimes after wake Anyone else experiencing this with lnx2macs driver? Never had this with the AppleRTL8169 Driver before. It seems the KP only happened after WOL. I have disabled WOL for now and will test if the KP happens with "normal" wake too. I'll make a Screenshot if it happens again and will send it to the author. Link to comment Share on other sites More sharing options...
Daniel_wu Posted December 5, 2011 Share Posted December 5, 2011 I use darkwake=1, and when I use share my screen to wake up the system, I get: Wake reason: PEX2 PEX4 PEX5 When I check with IORegistryExplorer, I can only see PEX0, PEX1, PEX3 instead of 2,4,5. My Ethernet card was in PEX0. Sometimes, the system will goes back to sleep again in couple minutes. My ethernet card is Intel CT9301. Don't know how to solve it. Link to comment Share on other sites More sharing options...
Daniel_wu Posted December 23, 2011 Share Posted December 23, 2011 I found the root cause of the problem when wake up by "Share my screen" function. I check the system log, and found that after 4mins , the "please sleep.app" will ask system to sleep. That's why the system back to sleep after couple minutes. Did anyone use "Pleasesleep.app" and have the same problem? Link to comment Share on other sites More sharing options...
Daniel_wu Posted February 2, 2012 Share Posted February 2, 2012 ...... The only problem now is the known one: If darkewake is = 0 , the Machine will go back to sleep after waking up via WOL cause of "wake reason = ?" I guess i'll have to use darkwake=1. Will the Machine wake up hourly if darkwake=1 is set? The Machine usesd to wake up hourly to update some bonjour service stuff. ApexDE: My machine still wake up every 2 hours when I set darkwake=1. Did you use PleaseSleep? I found this program was a little buggy. When I wake up my system via WOD with PleaseSleep enabled, the system will sleep again in 1min. So, I have to disable PleaseSleep right after I wake up the system via WOD. Link to comment Share on other sites More sharing options...
ncmontas Posted April 4, 2012 Share Posted April 4, 2012 posting this one here, i am having problem on waking from sleep, all is well from sleep and my hack wake, but my network seems to be dead. Network established connection from my router, but there is no internet connectivity. Hope someone can provide some thoughts ASUS p5kpl am E8500 4G GTS450 AppleRTL8169Ethernet.kext loaded Link to comment Share on other sites More sharing options...
Frank Nitty Posted November 24, 2012 Share Posted November 24, 2012 Hi I started using darkwake=0 and started running into trouble. On occasion when waking from sleep...all my usb ports are dead...meaning don't come back even after unplugging and plugging. I have to restart the computer to get USB functionality. To experiment I changed my darkwake from darkwake=0 to darkwake=1. Now things seem to be working better. Can anyone with more knowledge of the darkwake command please tell me what exactly it does and what is the difference between darkwake= 0 vs 1. Thanks. I'm in the same boat as you. I tried using "11","10","0", and "no" with no avail. I was only successful waking from auto-sleep with darkwake=1. Link to comment Share on other sites More sharing options...
Recommended Posts