Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!




Waking up a Mac wit...
 
Share:
Notifications
Clear all

Waking up a Mac with Wake On LAN

Page 2 / 2

(@meestor_x)
New Member
Joined: 1 year ago
Posts: 4
 

Thank you for your replies.

Womp is enabled

Sending the magic packet to the IP does not even "dark wake" the MBP. (I cannot ping it)

Energy settings show "Wake for Wi-Fi network access" which leads me to believe that my Ethernet dongle does not support WOL, even though the manufacturer assured me that it does. I have tried several different ones and none of them so far have shown the text "Wake for network access" instead.

I've been working on this for weeks with no success at all. No issue whatsoever waking up any Windows machines. Very frustrating!


ReplyQuote
(@ventus)
New Member
Joined: 1 year ago
Posts: 1
 
Posted by: @hans

However, I cannot ping the Ethernet IP address.

I may be wrong but it seems pretty normal because when the Mac is asleep the USB ports are not powered anymore.


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2187
Topic starter  
Posted by: @meestor_x

I've been working on this for weeks with no success at all. No issue whatsoever waking up any Windows machines. Very frustrating!

I agree, I've been tinkering with this in the past as well, to find pretty much no answer.
Granted, using WOL to wake up a laptop may seem uncommon, but hey, it should work.

However, I'd love to find a solution for this ...

Posted by: @ventus

USB ports are not powered anymore

I suspect this is indeed the issue, which may make some kind of sense for a laptop.
Strange enough though, my Mac Pro (I know, not a laptop) USB would power down during sleep, but since 11.2.1 it no longer powers down USB ports (my RGB keyboard stays on).

Posted by: @meestor_x

Sending the magic packet to the IP does not even "dark wake" the MBP. (I cannot ping it)

When I try to do this with just Ethernet, it fails on my MBP as well.
Do you see the same when doing WOL/Ping to the WiFi connection?

What model/year do you have?
Mine is a 2016 15" MacBook Pro.
I read somewhere that only as of a certain generation, WiFi modules can receive WOL..

Not sure if it affects anything, but do you have Powernap enabled?


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2187
Topic starter  

I seem to like a good challenge haha ... so I did some more searching and tests.

The following info I found, which may work for you, but did not make a difference for me;

  • If FileVault is enabled:
    - Reboot your mac with: "sudo fdesetup authrestart" (skips initial authentication for FileVault)
    or
    - Disable FileVault
  • Disable Screensaver password;
    System Preferences -> Security & Privacy -> General
    uncheck "Require password [x minutes] after sleep or screen saver begins".

I wouldn't be too thrilled to do either, and when I tested this, it simply didn't make a different.

I additionally wrote a small program that gets alerted by macOS when the Mac comes out of sleep.
This doesn't work either as it will not get "the message" from macOS until the screen is on again.

Posted by: @meestor_x

Sending the magic packet to the IP does not even "dark wake" the MBP. (I cannot ping it)

Forgot to ask: are you sending the magic packet and the ping to the WiFi IP address or the Ethernet IP address?
I'm pretty sure we can forget about the USB dongle to work.

Wifi however stays connected (on my 2016 MBP) even when the MBP sleeps.
Ethernet totally disappears (as expected as USB is powered down).

 


ReplyQuote
(@meestor_x)
New Member
Joined: 1 year ago
Posts: 4
 

I'll try the WiFi wakeup and see what happens.


ReplyQuote


(@meestor_x)
New Member
Joined: 1 year ago
Posts: 4
 

Ok, that works. So the workaround is to wake the computer via WiFi, then connect to it via Wired for speed.

Crazy, but it works...


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2187
Topic starter  
Posted by: @meestor_x

wake the computer via WiFi

Yep, that is what I have found to work ... screen still doesn't go on, but you could trigger that with caffeniate through SSH.
And I agree: crazy ... 😜 


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2187
Topic starter  

Things get even crazier ... haha.
You do not even need WOL. Just send the SSH statement straight to the WiFi IP address and not only does your Mac wake up, but the screen turns on as well. You'd need SSH login without a password (see my article "SSH Login without a Password" on how to do this securely).

I've added the caffeinate example there as well.

In short: enable (secure) SSH login on your MacBook, and send this (no WOL needed):

ssh user@server "caffeinate -u -t 1 || exit 1;"

 

This wakes up my MacBook Pro, and turns on the screen.


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2187
Topic starter  

I just released a new version of miniWOL, which allows running a script after sending a WOL.
So a little script like the one I mentioned can then be executed after sending a WOL signal, allowing you to wake up the screen of your MacBook Pro.


ReplyQuote
Page 2 / 2

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: