Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
286
34
US
What I want to do is when I'm outside, I want to be able to access my Mac with Jump Desktop from my iPad without having to open my MacBook while outside, and preferably without keeping the Mac awake beforehand with an app like Amphetamine. I know Jump Desktop can use the wake on lan feature but that requires the MacBook to be connected to wifi, and I can't guarantee that it's connected to my while it's in my backpack.
I do have a way to connect my MacBook to my phone hotspot manually while it's in my bag, but it requires the Mac to still be awake. It involves AirDropping a link to the MacBook to run a shortcut in order connect to the hotspot. AirDrop doesn't work while the lid is closed nor while asleep. You can read exactly how I do so here.
The best solution I have for keeping the MacBook awake is to launch an Amphetamine session beforehand. I have two triggers in BetterTouchTool: if the lid is closed, then start a 15 min Amphetamine session (and within those 15 mins I can keep the MacBook awake using Jump Desktop). When the lid is opened stop the session. Both use AppleScript
  • Start a 15 min session:
    Code:
    tell application "Amphetamine" to start new session with options {duration:15, interval:minutes, displaySleepAllowed:false}
  • Stop the session:
    Code:
    tell application "Amphetamine" to stop session
I could keep the MacBook always on by preventing from sleeping indefinitely but that eats up battery. I want an way to have the MacBook awake while the lid is closed whenever I want without keeping it constantly on since that's bad for the Mac in the long run.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.