Jump to content
VirusX

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

215 posts in this topic

Recommended Posts

Hi guys, 

 

my Yosemite works fine on my old rig (specs see signature) and sleep works perfect. My problem is that Yosemite wakes up automatically roughly every 2 hours for a minute and then goes back to sleep. It sounds like the PowerNap feature, but I have not activated that (it doesn't show up in Energy Saver preferences anyway).

Here's my log from last night:

8/5/14 2:24:48.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 4:13:43.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 6:02:38.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 6:02:50.445 AM ntpd[212]: ntpd: wake time set +0.141756 s
8/5/14 7:51:33.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 7:51:44.938 AM ntpd[212]: ntpd: wake time set +0.196362 s
8/5/14 9:40:28.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 9:40:39.638 AM ntpd[212]: ntpd: wake time set +0.255238 s
8/5/14 11:29:23.000 AM kernel[0]: Wake reason: RTC (Alarm)
8/5/14 11:29:34.247 AM ntpd[212]: ntpd: wake time set +0.309745 s
8/5/14 11:59:41.000 AM kernel[0]: Wake reason: USB1
8/5/14 11:59:41.000 AM kernel[0]: The USB device WirelessControllerDevice (Port 1 of Hub at 0x3d000000) may have caused a wake by issuing a remote wakeup (2)
8/5/14 11:59:41.000 AM kernel[0]: full wake promotion (reason 1) 338 ms
8/5/14 11:59:41.513 AM WindowServer[170]: CGXDisplayDidWakeNotification [25968432798537]: posting kCGSDisplayDidWake
8/5/14 11:59:48.996 AM discoveryd[49]: Basic DNSResolver UDNSServer:: PowerState is Wakeup
8/5/14 11:59:52.230 AM ntpd[212]: ntpd: wake time set -0.403636 s

The last wake obviously was me waking my computer with my trackpad.

As you can see on the attached screen shot, 'Wake for Ethernet network access' is deactivated and no schedule is set - those settings are not causing the RTC wake up. 

From my google research, those were the common reasons for my problem. I found another article about a similar problem and that guy fixed it with changing some bonjour settings (NoMulticastAdvertisements) but I didn't try that yet because I think the problem is somewhere else.

I am _not_ using any NullCPUPowerManagement.kext. I have only FakeSMC and my network kext in my clover kexts folder.

 

Do you have any clues how I can deactivate those RTC Alarm wakes? Also what is that 'ntpd: wake time set'?

 

Thanks!

-Maxim

 

PS: Sleep works fine in Mavericks without any RTC Alarm wake ups with basically the same clover & system set up.

post-387347-0-76294300-1407234268_thumb.png

Share this post


Link to post
Share on other sites
Advertisement

all sharing is turned off, but thanks for the suggestion.

 

I will install DP5 later, maybe that helps. I'll report back

Share this post


Link to post
Share on other sites

Having the same issue here, but I've already updated to DP5 with no change.  Also did the NoMulticastAdvertisements with no change.  :-(

 

Found a post on the Apple forums the other day from someone with a non-Hack having the same issue.  

Share this post


Link to post
Share on other sites

I think this setting may be controlled by /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

 

I will play with it for a bit to see how it can be disabled.

Share this post


Link to post
Share on other sites

Try forcing a different darkwake(PowerNap) setting to the kernel like this:

 

<key>Boot</key>

<dict>
<key>Arguments</key>
<string>darkwake=10</string>
etc......
 
You can use "darkwake=0" instead to completely disable PowerNap. I use "darkwake=10" because it allows my system to wake hourly to do backups and check emails, updates etc. without waking the screen or the system fans. 
Your SMBIOS also have an influence on how PowerNap behaves.
 
 
Good Hack!

Share this post


Link to post
Share on other sites

I installed DP5 last night but it didn't change anything. Even worse, after waking up at night, the system crashed while going back to sleep so I had to get up and manually turn off the computer to get back to sleep... I know, I could just shut down the computer over night but I'm lazy haha.

 

I attached a screenshot of my /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist down below but as far as I can see, wake on LAN is set to 0 (=off) which is what we want. I don't know what else to change, because the other settings look fine to me as well.

 

I will have to look into the darkwave stages. I difficult to test because when I change a setting I have to put the system to sleep and not touch it for a couple of hours which is nearly impossible when I'm at home and not asleep ;)

But on the first look, the darkwave options could be the solution. If my system woke up without turning the fans back on, I could deal with it.

My SMBIOS is set by clover automatically so far (iMac late 2009) - I guess this is why the power nap option is not available because my computer is 'too old'?

 

Thanks for your help so far!

post-387347-0-68031900-1407413674_thumb.png

Share this post


Link to post
Share on other sites

StephanCA, what do you mean by 'doesn't work for me'? Does you system crash / sleep stops working anymore? Or do you mean you still have the problem?

I haven't gotten around to try the dark wave states yet but I will report back asap

Share this post


Link to post
Share on other sites

I was having the exact same problem.  You could try adding -DisableSleepProxyClient to the program arguments in /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist  

 

You may also have to turn on mdnsresponder.  For some reason it's turned off in yosemite beta. 

 

'sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"

Share this post


Link to post
Share on other sites

thank you for your input mcdougal33. I tried what you suggested but it broke my internet. Well, to be precise: my system log is flooded with DNS errors and nothing loads anymore because of timeout errors. I probably added the -DisableSleepProxyClient at the wrong spot?

This is what my mDNSResponder.plist looked like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.apple.networking.mDNSResponder</string>
    <key>Disabled</key>
    <true/>
	<key>OnDemand</key>
	<false/>
	<key>InitGroups</key>
	<false/>
	<key>UserName</key>
	<string>_mdnsresponder</string>
	<key>GroupName</key>
	<string>_mdnsresponder</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/sbin/mDNSResponder -DisableSleepProxyClient </string>
	</array>
	<key>MachServices</key>
	<dict>
		<key>com.apple.mDNSResponder</key>
		<true/>
               <key>com.apple.mDNSResponder.dnsproxy</key>
               <true/>
	</dict>
	<key>Sockets</key>
	<dict>
		<key>Listeners</key>
		<dict>
			<key>SockFamily</key>
			<string>Unix</string>
			<key>SockPathName</key>
			<string>/var/run/mDNSResponder</string>
			<key>SockPathMode</key>
			<integer>438</integer>
		</dict>
	</dict>
	<key>EnableTransactions</key>
	<true/>
	<key>BeginTransactionAtShutdown</key>
	<true/>
	<key>POSIXSpawnType</key>
	<string>Interactive</string>
</dict>
</plist>

I also added that -DisableSleepProxyClient argument as new string at the program arguments. Same problem. I guess you have to tell me exactly what to do...  :rolleyes:

 

Also, is there a way to find out if that mdnsresponder service launched correctly?

 

Thanks for your help.

 

 

Share this post


Link to post
Share on other sites

thank you for your input mcdougal33. I tried what you suggested but it broke my internet. Well, to be precise: my system log is flooded with DNS errors and nothing loads anymore because of timeout errors. I probably added the -DisableSleepProxyClient at the wrong spot?

This is what my mDNSResponder.plist looked like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.apple.networking.mDNSResponder</string>
    <key>Disabled</key>
    <true/>
	<key>OnDemand</key>
	<false/>
	<key>InitGroups</key>
	<false/>
	<key>UserName</key>
	<string>_mdnsresponder</string>
	<key>GroupName</key>
	<string>_mdnsresponder</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/sbin/mDNSResponder -DisableSleepProxyClient </string>
	</array>
	<key>MachServices</key>
	<dict>
		<key>com.apple.mDNSResponder</key>
		<true/>
               <key>com.apple.mDNSResponder.dnsproxy</key>
               <true/>
	</dict>
	<key>Sockets</key>
	<dict>
		<key>Listeners</key>
		<dict>
			<key>SockFamily</key>
			<string>Unix</string>
			<key>SockPathName</key>
			<string>/var/run/mDNSResponder</string>
			<key>SockPathMode</key>
			<integer>438</integer>
		</dict>
	</dict>
	<key>EnableTransactions</key>
	<true/>
	<key>BeginTransactionAtShutdown</key>
	<true/>
	<key>POSIXSpawnType</key>
	<string>Interactive</string>
</dict>
</plist>
I also added that -DisableSleepProxyClient argument as new string at the program arguments. Same problem. I guess you have to tell me exactly what to do...  :rolleyes:

 

Also, is there a way to find out if that mdnsresponder service launched correctly?

 

Thanks for your help.

 

 

Well it turns out I'm still having the same problem.  Computer wakes every 2 hours.  I ended up having to disable mdnsresponder due to an error I get when waking from sleep; "local host name already in use....".

 

On 10.9 I use darkwake=8 in conjunction with the mdnsresponder plist changes and sleep works perfectly there.  Without the plist changes the computer would wake up every 2 hours to announce itself to the sleep proxy server.

 

Currently on 10.10 I don't use any darkwake kernel parameters but I still have the plist change done.  If I use darkwake=8 on 10.10 the computer will wake up at its first 2 hour wake up and stay awake.

 

Anyway, here is my com.apple.mdnsresponder.plist.  You did put the -DisableSleepProxyClient in the wrong spot.

 

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BeginTransactionAtShutdown</key>
<true/>
<key>Disabled</key>
<true/>
<key>EnableTransactions</key>
<true/>
<key>GroupName</key>
<string>_mdnsresponder</string>
<key>InitGroups</key>
<false/>
<key>Label</key>
<string>com.apple.networking.mDNSResponder</string>
<key>MachServices</key>
<dict>
<key>com.apple.mDNSResponder</key>
<true/>
<key>com.apple.mDNSResponder.dnsproxy</key>
<true/>
</dict>
<key>OnDemand</key>
<false/>
<key>POSIXSpawnType</key>
<string>Interactive</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/mDNSResponder</string>
<string>-DisableSleepProxyClient</string>
</array>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockFamily</key>
<string>Unix</string>
<key>SockPathMode</key>
<integer>438</integer>
<key>SockPathName</key>
<string>/var/run/mDNSResponder</string>
</dict>
</dict>
<key>UserName</key>
<string>_mdnsresponder</string>
</dict>
</plist>

 

Sorry for the bad formatting.  I can't figure out how to keep things indented properly when pasting.

Share this post


Link to post
Share on other sites

RAWR - that forum is so slow and has connection errors and just deleted my nice long answer. So here's the short version:

 

Your suggestion didn't work for me:

8/27/14 2:38:04.000 PM kernel[0]: Wake reason: RTC (Alarm)
8/27/14 4:26:59.000 PM kernel[0]: Wake reason: RTC (Alarm)
8/27/14 4:27:11.698 PM ntpd[213]: wake time set +0.495133 s
8/27/14 4:46:18.000 PM kernel[0]: Wake reason: USB1

- how can I check if mDNSRepsonder service is working? I have started it once with your command but I don't know if I have to do that after every boot?

 

I guess we have to wait for the final Yosemite version and hope for a fix... :/

Share this post


Link to post
Share on other sites

RAWR - that forum is so slow and has connection errors and just deleted my nice long answer. So here's the short version:

 

Your suggestion didn't work for me:

8/27/14 2:38:04.000 PM kernel[0]: Wake reason: RTC (Alarm)
8/27/14 4:26:59.000 PM kernel[0]: Wake reason: RTC (Alarm)
8/27/14 4:27:11.698 PM ntpd[213]: wake time set +0.495133 s
8/27/14 4:46:18.000 PM kernel[0]: Wake reason: USB1

- how can I check if mDNSRepsonder service is working? I have started it once with your command but I don't know if I have to do that after every boot?

 

I guess we have to wait for the final Yosemite version and hope for a fix... :/

Yeah it's not working for me either like I thought it was.  Mine still wakes every 2 hours. I can live with it for now though.  At least it wakes up and then goes back to sleep on its own.

 

You can check and see if mdnsresponder is running by doing a 'ps -ax | grep -i mdns' in terminal (without quotes).  You should see this:

 

 

1444   ??  Ss     0:00.03 /usr/sbin/mDNSResponder -DisableSleepProxyClient

Share this post


Link to post
Share on other sites

One other thing; when you enable mdnsresponder using the launchctl command I posted earlier, you'll need to reboot.  As you've discovered you'll lose internet access.  Once you reboot internet will work again.

Share this post


Link to post
Share on other sites

There is a new kind of mDNS daemon in Yosemite located in /usr/libexec called discoveryd what seems to use UDP sockets and what i think replaces mDNSResponder.

Share this post


Link to post
Share on other sites

 the solution is to disable “Wake on Network Access” in the Energy Saving options  :P 

Not for me it isn't.  I use wake on lan to remotely wake my computer when I am not home.

Share this post


Link to post
Share on other sites

Hi,

 

Can you post the result of pmset -g in terminal.

 

or if you see darkwake 1

set it to 0

sudo pmset -a darkwake 0

 

Fred

Share this post


Link to post
Share on other sites

Hi,

 

Can you post the result of pmset -g in terminal.

 

or if you see darkwake 1

set it to 0

sudo pmset -a darkwake 0

 

Fred

Here is my pmset -g

 

 

AC Power  -1*
Currently in use:
 standby              1
 Sleep On Power Button 1
 womp                 1
 autorestart          0
 hibernatefile        /var/vm/sleepimage
 gpuswitch            2
 networkoversleep     0
 disksleep            0
 sleep                0
 hibernatemode        0
 ttyskeepawake        1
 displaysleep         15
 standbydelay         4200

 

On 10.10 I am not using any darkwake options.  When I have darkwake=8 (or even darkwake=0) set and my computer wakes up at it's first 2 hour interval the computer will stay on and not automatically go back to sleep.  For now I am not touching darkwake.  The main issue for me is why is the computer waking up every 2 hours?  

 

I suppose troubleshooting this is kind of a waste on a beta OS.  I'll just deal with things as is until final release.

Share this post


Link to post
Share on other sites

I have something I'm going to test.  As someone else had already mentioned, discoveryd may be replaced mdnsresponder.  What I did was disabled discoveryd and enabled mdnsresponder (with my -DisableSleepProxyClient modification).  I'm betting that discoveryd is waking the computer up every 2 hours to register with a sleep proxy server.  I am not sure if there is an option for discoveryd to disable that.  Anyway, I won't be able to test if the computer stays a sleep or not until later tonight.

 

Here is what I did:

 

Disable discoveryd:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

Enable mDNSResponder:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

I'll update this post once I test sleep tonight.

 

UPDATE:  Since disabling discoveryd and enabling mdnsresponder with -DisableSleepProxyClient my computer no longer wakes up every 2 hours.  

Share this post


Link to post
Share on other sites

mcdougal33, you did it! Disabling discoveryhd was the thing we missed so far! My computer slept perfectly last night and did not wake up automatically.

 

I'm now wondering if that -DisableSleepProxyClient is necessary? Maybe I'll delete that again and try my luck tonight again...

 

Also BIG THANKS to aphex6b for the hint!

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.

Announcements

  • Similar Content

    • By james2058
      Hello guys!
      I have a Asus Zenbook with the following characteristics:
      Model: ASUS Zenbook UX310UQ
      CPU: Intel Core i7-7500U CPU @ 2.70GHz
      IGPU: Intel HD Graphics 620
      RAM: 8GBx2 => 16GB RAM Bus 2133
      Wifi: Replaced with DW1560.
      Clover: Clover 5120
      OS: 10.15.6
      UEFI/LEGACY: UEFI
      Storage: SSD Crucial 500GB
      Everything works fine!

      I have the WiFi/Bluetooth chipset DW1560 (DCM20702A) and a Logitech K380 Keyboard and magic mouse. My Hackintosh is sleeping fine only problem is that it won't wake from sleep on key presses. I already tested this USB port with a normal keyboard and the result was that it wakes up my Hackintosh on key presses. And in system settings the Bluetooth wake option is enabled, too.
      Has someone an idea where the problem could be or which additional settings I have to verify?
      Thank you all
       
    • By amin321
      hello there, I have finished almost everything in my laptop Dell G3 15 3590 intel core i7 9750h UHD630, and everything is okay right now followed dortania (Open core guide) with all my ssdts patches including the USB port, the strange problem that I am facing which is in sleep awake functioning 
      sometimes it sleeps okay and when I am trying to wake it wakes properly, and sometimes it does not wake from sleep at all and then I have to force shut it down with the power button, and it gives me that Report, I wish anyone can help me please as I almost finished everything about 2 months ago and from then I am trying to figure out what makes that issue, please anybo dy help me 

    • By k.panic
      Hi to all, i've installed High Sierra (with Clover) on:
       
      Asrock H110 BTC+
      Intel G3900 (with FakeCPUID 0x0106E0)
      GeForce 710
       
      but he can't go in sleep. what should i fix? Thanks!
    • By dmpcoke
      Hi,
       
      I followed the OC guide, and installed Catalina 10.15.5 on my PC.
      The installation went very well. Most parts also work well after I login to the desktop except the following
      issue:
      Each time I tried to log back into the desktop from sleep, I would get a black screen very shortly after I entered the desktop.
      And black screen will last from a few seconds to a few minutes, no exact lasting time.
      Keyboards and mouse are still working during black screen, I can see the operations after the monitor works again.
       
      It connects LG monitor via DP port and I tried to modified the dp version between 1.2 and 1.4, got the same issue.
       
      Attached my entire OC folder, I'm so appreciated if someone could help me check it out, or tell me which part I should focus on.
       
      Thanks in advance!
       
      P.S. Here is my PC summary: Dell Optiplex 7060 MFF
       
      CPU Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz; 8th Gen, Coffee Lake GPU Intel(R) UHD Graphics 630 RAM Team Group 32 GB (2 × 16GB), 2400 MHz, DDR4 Chipset
      Intel 300 Series LPC (Q370) – A306 Audio Realtek ALC255/3234 (Codec ID: 0x10EC0255) Ethernet Intel(R) Ethernet Connection I219-LM WiFi/BT M.2 BCM43224 802.11a/b/g/n Storage Samsung SSD 970 EVO 500GB USB Ports Type-C × 1,USB 3.0 × 5 Video Output DP × 2 Monitor LG 4K 3840 x 2160 @ 60 Hz
      BIOS v1.4.2 OC.zip
×