Jump to content
VirusX

Wake reason: RTC (Alarm) - how to deactivate?

215 posts in this topic

Recommended Posts

You should search this forum about that problem... And maybe post in the according subforum since this is not directly related to the problem discussed here...

I think that could be related to any usb devices/hubs you have connected?

Also, put your hardware specs in your config please so that we can help you better. Good luck

Good point, I updated I signature with my specs. Ya I apologize for the miscategorized post. Originally this was the wake reason I had a few weeks ago where it would go to sleep and wake every few hours, but it seems something has changed now to where it doesnt sleep at all. it sleeps and then wakes up right away. I will try to find a thread for the current I'm facing. Thanks for the help :)

 

Update: I'm pretty sure the Corsair Link usb cord from my liquid cooler is causing the XHC issue where it wont sleep. I will unplug that when i get home and then try to sleep. Then i will try the solution provided for the waking up every 2 hours due to RTC alarm. Then i need to fix my issue of having no sound after wake from sleep as well, which I'm looking at other forums to figure out. Hopefully after ALL that I can have a normal sleeping hackintosh. Wish me luck! :)

Share this post


Link to post
Share on other sites
Advertisement

Good point, I updated I signature with my specs. Ya I apologize for the miscategorized post. Originally this was the wake reason I had a few weeks ago where it would go to sleep and wake every few hours, but it seems something has changed now to where it doesnt sleep at all. it sleeps and then wakes up right away. I will try to find a thread for the current I'm facing. Thanks for the help :)

 

Update: I'm pretty sure the Corsair Link usb cord from my liquid cooler is causing the XHC issue where it wont sleep. I will unplug that when i get home and then try to sleep. Then i will try the solution provided for the waking up every 2 hours due to RTC alarm. Then i need to fix my issue of having no sound after wake from sleep as well, which I'm looking at other forums to figure out. Hopefully after ALL that I can have a normal sleeping hackintosh. Wish me luck! :)

off topic. But a note to the problem of sound loss after sleep issue - google codeccommander

Share this post


Link to post
Share on other sites

off topic. But a note to the problem of sound loss after sleep issue - google codeccommander

I actually found a thread that mentioned just to install Realtek Audio drivers using [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] 6.1.0 and then rebooting and it worked perfectly! So now I have the no sleep issue solved and the no audio after wake issue solved. I'm going to put the computer to sleep tonight while I'm in bed and then I'll see if the RTC alarm goes off and wakes it up again every 2 hours like it used to a few weeks ago. If it does then I'll do the fix suggested in this thread. Can't wait to have a fully functioning sleeping Hackintosh :)

Share this post


Link to post
Share on other sites

Ok, so i slept the computer last night and it went to sleep just fine. Afew hours later I did hear it turn on and then turn off again as expected with the RTC alarm issue. But when I woke up later I noticed that the computer was on. So I hit a key on the keyboard I noticed that it logged my account off, instead of normally how it would just be on the lockscreen. So I had to log in again and have my desktop load up, as if the computer had turned off at some point. I also checked the wake reason in terminal and it doesnt show any record of the sleep/wake in there at all. Only showed one from two days ago. Very strange. Any ideas?

Share this post


Link to post
Share on other sites

this issue is fixed in yosemite 10.10.2 :)

This RTC wake problem every two hour is fixed in 10.10.2? Finally! 

Share this post


Link to post
Share on other sites

This RTC wake problem every two hour is fixed in 10.10.2? Finally! 

That is bittersweet. I'm happy to hear its fixed, but I cant update since I use a GTX 980 graphics card and need the custom nvidia graphics drivers, which aren't compatible with 10.10.2 yet :/

 

Update: Nvm, they updated the nvidia graphics too! Perfect sleep, here I come!

Edited by akhalil

Share this post


Link to post
Share on other sites

this issue is fixed in yosemite 10.10.2 :)

is it? I haven't installed 10.10.2 yet... so should I unload the mDNSresponder first and activate discoveryd first before I update? Or just install the update over our fix and unload mDNSresponder?

 

edit: I just did exactly that: Unload the mDNSresponder first and load discoveryd first before I updated to 10.10.2. Installation went fine, no DNS errors after restart. Now I will have to check the sleep tonight :)

 

edit: slept fine tonight. awesome! But I didn't have internet after I woke my computer up this morning. Had to unplug and plug my ethernet cable again. I don't know yet if it is related to discoveryd or my router though. I'll check in the next few days..

Share this post


Link to post
Share on other sites

this issue is fixed in yosemite 10.10.2 :)

I can confirm myself, that sleep works perfectly in 10.10.2!!! Put it to sleep, it never woke up. I have finally achieved my perfect sleeping hackintosh. :) Thanks for your help everybody!

Share this post


Link to post
Share on other sites

I can also confirm sleep is working properly. No more every two hour wake!  I just got to my system, woke it up, check for wake on console, nothing since last night when I put the system to sleep until this moment.

post-564408-0-38929400-1422555455_thumb.png

Share this post


Link to post
Share on other sites

I cannot confirm this new behavior. Both my hack and my iMac still wake up due to the RTC Alarm. Strangely, my hack didn't do so last night, but resumed doing it today, whereas my iMac has continuously been doing it over the course of last night. So looks like discoveryd is still not working flawlessly.

Share this post


Link to post
Share on other sites

I cannot confirm this new behavior. Both my hack and my iMac still wake up due to the RTC Alarm. Strangely, my hack didn't do so last night, but resumed doing it today, whereas my iMac has continuously been doing it over the course of last night. So looks like discoveryd is still not working flawlessly.

 

did you remove dnsresponder patch like VirusX did? 

Share this post


Link to post
Share on other sites

I did not remove any patch, but I also hadn't tinkered with discoveryd before yet. I meant to, because all the other problems that discoveryd has (constant host name changing, spamming the log, etc) were annoying me. When I found this thread, I was happy to see that I can eliminate this stupid constant waking with it, too. However, when 10.10.2 came out, I thought I may wait another day and see if it fixed it, since I assumed Apple would try to patch at least some of discoveryd's bugs. 

 

Alas, it didn't help here. I have now used the sleep watcher method on my hack and it seems to work fine. I will monitor it on my iMac a little more. Here's what it did last night (pmset log):

2015-01-30 00:56:56 +0100 DarkWake            	DarkWake [CDN] due to RTC/Maintenance: Using AC                            	45 secs   
2015-01-30 02:45:46 +0100 DarkWake            	DarkWake [CDN] due to RTC/Maintenance: Using AC                            	45 secs   
2015-01-30 04:34:36 +0100 DarkWake            	DarkWake [CDN] due to RTC/Maintenance: Using AC                            	46 secs   
2015-01-30 06:23:27 +0100 DarkWake            	DarkWake [CDN] due to RTC/Maintenance: Using AC                            	45 secs   
2015-01-30 08:12:27 +0100 DarkWake            	DarkWake [CDN] due to RTC/Maintenance: Using AC                            	45 secs   

Share this post


Link to post
Share on other sites

So, the 2-hourly wake seems to be fixed since 10.10.2
Can anyone test if Wake-on-Lan is still possible?

I need Wake-On-Lan but don't want that 2 hourly wake. If it doesn't work i need to stay at Mavericks.

How is the behaviour when "wake for administrative Network access" is activated? We have the 2 hourly wake back again?

Share this post


Link to post
Share on other sites

So, the 2-hourly wake seems to be fixed since 10.10.2

Can anyone test if Wake-on-Lan is still possible?

 

I need Wake-On-Lan but don't want that 2 hourly wake. If it doesn't work i need to stay at Mavericks.

How is the behaviour when "wake for administrative Network access" is activated? We have the 2 hourly wake back again?

Yesterday I enabled "wake for ethernet network access" and my computer slept all night without waking up every 2 hours.  I'm using discoveryd on 10.10.2

Share this post


Link to post
Share on other sites

I used the instruction by mnfesq. But since Yosemite 10.10.2 has been released I'd like to revert to previous settings. What commands should I run in Terminal?

 

Update. I deleted mDNSResponder and mDNSResponderHelper in usr/sbin, then I ran sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist in Terminal and rebooted. That's all. Everything works fine, Internet sharing via Wi-Fi enabled and iMac didn't wake up this night!

Share this post


Link to post
Share on other sites
18/02/15 00:11:15,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 00:11:33,000 kernel[0]: ARPT: 35239.811737: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 02:00:20,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 02:00:38,000 kernel[0]: ARPT: 35305.826871: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 03:49:25,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 03:49:43,000 kernel[0]: ARPT: 35371.866373: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 03:50:31,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 05:38:48,000 kernel[0]: ARPT: 35437.948544: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 07:27:35,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 07:27:53,000 kernel[0]: ARPT: 35503.983683: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 09:16:40,000 kernel[0]: Wake reason: RTC (Alarm)
18/02/15 09:16:58,000 kernel[0]: ARPT: 35569.967962: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
18/02/15 09:16:59,074 ntpd[240]: wake time set +0.137092 s
18/02/15 10:25:10,000 kernel[0]: Wake reason: USB0
18/02/15 10:25:10,000 kernel[0]: The USB device BCM20702A0 (Port 1 of Hub at 0x1d000000) may have caused a wake by issuing a remote wakeup (2)
18/02/15 10:25:17,000 kernel[0]: full wake promotion (reason 1) 7950 ms

well, shiiit.... my computer woke up all the time last night.

Things I have changed recently: put in a new wifi/bluetooth card and activated 'wake for network access' in energy saver settings. Have to find out what the culprit is. I turned off wake for network access already and will report back in a few days since my wifi/bluetooth card does not work as I want yet..

 

 

edit: arstechnica suggests to use 'our' workaround to solve DNS problems with discoveryd by reactivating mDNSresponder ;) 

Share this post


Link to post
Share on other sites

The instructions link is no longer active...

 

I'm trying to piece the fix together like a puzzle but I can't seem to make clear sense of the step by step process.

 

 Can someone help me out here?

 

Thanks in advance

Share this post


Link to post
Share on other sites

So, what about 10.10.3? Does our work around still work here? Anyone brave enough to try it out? I would but if it fails i would be totally unable to help myself ^^

Share this post


Link to post
Share on other sites

@McPants: I attached the mDNSResponder files with the Instructions again.

 

@noreason4: I'm on 10.10.3. Sleep works for me with discoveryd (not using our trick with mDNSResponder) but I had to turn off "wake for network access" to get it to work properly. Since I don't need that I'm fine with my current solution :)

mDNSResponder with Instructions.zip

Share this post


Link to post
Share on other sites

Hey Virus! Thanks for the reply.. didn't even notice that you are from germany until recently ;) I actually do rely on that "wake for network access" option as i have 2 minis in 2 different cities that are standing near my beds. I don't want them to wake up every 2 hours but would love to still be able to wake them up remotely ;) I installed 10.10.3 shortly after the release and the mdnsresponder-fix seems to be working well on both of my machines :)

Share this post


Link to post
Share on other sites

@McPants: I attached the mDNSResponder files with the Instructions again.

 

@noreason4: I'm on 10.10.3. Sleep works for me with discoveryd (not using our trick with mDNSResponder) but I had to turn off "wake for network access" to get it to work properly. Since I don't need that I'm fine with my current solution :)

Do you mean that with 10.10.3 you no longer need to bother with Discoveryd waking up system every 2 hours? If so, it's so sad that mine still does.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By vin047
      I have a Kingston HyperX Predator PCIE-SSD (model: SHPM2280P2H) matched with an X58 motherboard (legacy bios). The card has a Marvell 88SS9293 controller with an Option ROM which allows it to be detected on my motherboard as a bootable drive - listed as "IDE: Kingston SHPM". As my BIOS is non-UEFI, I assume the Option ROM presents it in IDE mode instead of AHCI.
       
      I use Clover legacy with BiosBlockIO to get around this, and it works well - Clover detects my drive and allows me to install macOS onto it and use it as a boot drive. macOS detects the drive correctly as a SATA AHCI drive. I guess Clover correctly detects (configures?) the Option ROM into AHCI mode and presents it as such to macOS - getting full speed read Read/Write performance. All is well.
       
      Except waking from sleep. When waking from sleep, depending on clover config options + dsdt, I either get an immediate reboot or hang on black screen that requires hard reset. I eventually realised that nothing after entering sleep mode is recorded in the logs, its completely empty until next boot up. This makes me think that on resume from sleep, macOS isn't seeing the drive anymore (hence can't even write to logs). My assumption here is that the Option ROM is presenting/configuring the card in IDE mode, which is not what macOS is expecting.
       
      This post describes the problem: 
       
      and also has a solution: in dsdt, simply write the correct values to 0x40, 0x41, 0x42 (which must be the BAR0 register?) to configure Option ROM to use AHCI mode. But I have no idea what address BAR0 is on the Marvell 88SS9293 - there appears to be no documentation whatsoever on this controller available online!
       
      I managed to dump the ROM using Linux sysfs, but don't have the skills to disassemble/decipher the binary to find the correct addresses. Anyone with such experience able to help?? I've attached the ROM dump and lspci output.
       
      Thanks in advance!
      rom.bin
      lspci_output.txt
    • By vin047
      Hi, have an old Asrock X58 Deluxe motherboard with an i7-920 Nehalem CPU (yes old board ) + AMD RX460 . As per the title, i've managed to get Mojave installed and running with Speed Step working too!
       
      Final issue i'm having is with sleep - it sleeps fine and even responds to keyboard/mouse event, but instead of waking up to the desktop it restarts and loads from BIOS boot screen. When finally booted into macos, it restores as if restored from unexpected shutdown (though no error is shown).
       
      I've tried for days to get it working, sometimes depending on clover config changes, I can get it to wake up without reboot, but it just remains at a black screen and is unresponsive. 
       
      I have no custom DSDT, i've tried writing one but don't know really know what i'm looking for? Currently relying on clover patches. I've uploaded my original DSDT (dumped from Clover, F4 option) + current config. Anyone have any ideas?
      dsdt original.zip
      config.plist.zip
    • By yehia2amer
      Problem:
      When I Attempt to wake my Machine from sleep, the screen stays black, although the computer is obviously awake !
      This Machine has a 1300W Power Supply So Sleep is Very Useful.
       
      I Tried:
      1) FIX_WAK and FixShutdown as per Clover Wiki.
      2) Although I am using "SAPPHIRE Radeon PULSE RX 580 8GB GDDR5", which Should be completely Supported by Mojave, I Also changed the Part Number to "113-4E353BU-O4E" as per this Guide: http://www.xlr8yourmac.com/archives/feb18/RadeonRX-580_MacPro.html. The GPU is working GREAT without even Clover Inject
      3) Tried to Run this command: disablehibernate.command.zip
      4) Tried darkwake=0 to 10
      5) Disabled wake on USB & Wake on LAN (BIOS)
       
      Logs:
      sudo pmset -g
      System-wide power settings: Currently in use: hibernatemode 0 disksleep 10 womp 0 networkoversleep 0 sleep 0 Sleep On Power Button 1 ttyskeepawake 1 hibernatefile /var/vm/sleepimage autorestart 0 gpuswitch 2 displaysleep 10 pmset -g assertions
      2019-02-19 18:51:04 +0200 Assertion status system-wide: BackgroundTask 1 ApplePushServiceTask 0 UserIsActive 1 PreventUserIdleDisplaySleep 0 PreventSystemSleep 0 ExternalMedia 1 PreventUserIdleSystemSleep 0 NetworkClientActive 0 Listed by owning process: pid 56(powerd): [0x0000001700088000] 00:13:44 ExternalMedia named: "com.apple.powermanagement.externalmediamounted" pid 100(hidd): [0x00000025000980a7] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968578.17" Timeout will fire in 600 secs Action=TimeoutActionRelease pid 200(mds_stores): [0x0000034e000b8279] 00:00:00 BackgroundTask named: "com.apple.metadata.mds_stores.power" Kernel Assertions: 0x4=USB id=502 level=255 0x4=USB mod=1/1/70, 2:00 AM description=com.apple.usb.externaldevice.1d130000 owner=USB Keyboard id=503 level=255 0x4=USB mod=1/1/70, 2:00 AM description=com.apple.usb.externaldevice.1d120000 owner=Lenovo Optical Mouse Idle sleep preventers: IODisplayWrangler  
      Specs:
      CPU: 2x Xeon E5-2680 v2 2.8GHz Ten Core Processors
      RAM: 128 GB 1333 MHz DDR3 ECC Memory
      GPU: SAPPHIRE Radeon PULSE RX 580 8GB GDDR5
      Chipset: Intel C602
      Audio: Realtek ALC3220 (ALC280) High Definition Audio
      SAS Drive Controllers (RAID): LSI 2308 SATA/SAS 6Gb/s controller with host based RAID 0, 1, 10 (4  
      Network Controller 1: Intel 82579 Gigabit Ethernet controller with Remote Wake UP, PXE and Jumbo frames support
      Network Controller 2: Intel Ethernet Controller I210 
      NEC USB3.0 xHCI Controller: Renesas Electronics uPD720201 & uPD720202
       
      for more info:
       
      Any Help will be appreciated, Thanks !
       
      Send me Yehias-Mac-Pro.zip
    • By manmo71
      I am a novice in the field of Hackintosh, and this is my first post here.
       
      I have managed to setup and install my hackintosh and it is perfectly working other than this one issue.
      I am unable to figure the exact cause of this issue. My Hackintosh is unable to go into sleep mode after the set time. This is what happens (see the attached video file).
       
       

      mojavesleep.mp4  
      You can see that the screen turns off, then I see the power on the graphics card and fans turn off.
      Immediately it comes back ON and the screen TURN's ON.
       
      I have followed various threads in several forums trying various options suggested for sleep related issue, but have been un-successful.
      If anyone is able to guide me through in resolving this issue, I would appreciate that.
       
      I am unsure what files need to be attached for you people to help me, feel free to ask and I shall upload the necessary files.
×