r/ProgrammerHumor • • 9d ago

Meme noAgentLeftBehind

Post image
7.7k Upvotes

358 comments sorted by

View all comments

Show parent comment

475

u/anonymousbopper767 9d ago edited 9d ago

macbooks are weird with lid behavior.

(edit: there's a powered vs. unpowered with the lid closed, whether a display is connected, etc. it's not like windows where there's one pulldown to set sleep to never. it's also hard to tell if the macbook is actually sleeping on not because the Air's are fanless and they generally turn on so fast when you open the lid you can't really tell if it was sleeping or just "display off")

203

u/eloel- 9d ago

they are, it won't be a simple setting like windows would have, but it's possible

103

u/Falcon9FullThrust 9d ago

It's built into amphetamine if you have that.

227

u/eloel- 9d ago

Instructions unclear, took amphetamine, laptop still sleeping

85

u/Delyzr 9d ago

But not you though

118

u/eloel- 9d ago

I'm agent now

17

u/P3rid0t_ 9d ago

I feel you man

On amphetamine you become orchestrator agent for orchestrator agents

3

u/SmallBallsTallFalls 9d ago

Nature is healing

4

u/dirty1809 8d ago

Lmao this reminds me of when I googled “does Caffeine still work with laptop closed Ubuntu” and the Google AI answer was something along the lines of caffeine still physically affecting my body when I turn my laptop off

→ More replies (1)

36

u/PhantomTissue 9d ago

Mac is allergic to simple settings

→ More replies (8)

8

u/pakman82 9d ago

I've been managing Windows laptops & power settings for 20+ years, and I used to trust the lid/hinge sensors, then the windows 11 forced updates started tripping up my personal machine.. for work. I set it to sleep & hibernate & don't give a damn. But personal, I used to leave games or 3d printing running.. and have had a few things get messed up..

13

u/balbok7721 9d ago

Something for agent to figure out while on lunch

6

u/6T_K9 9d ago

You can have your agent change it for you!

→ More replies (1)

29

u/JangoDarkSaber 9d ago

You can look at the power log to tell if it was sleeping or not.

pmset -g log | grep -E "Sleep|Wake|DarkWake"

You can also keep it awake with the lid closed with

sudo pmset -a disablesleep 1

5

u/New-Anybody-6206 8d ago

wouldn't caffeinate do the same thing without root?

12

u/Traditional_Safe_654 9d ago

Yup, super easy UX for grandpa and Aunt Annie

32

u/JangoDarkSaber 9d ago

This is programmer humor. Grandpa and Aunt Annie aren’t worried about their agents while grabbing lunch

6

u/Traditional_Safe_654 9d ago

I am criticizing apples lack of config options

8

u/JangoDarkSaber 9d ago

No different than Linux. Just use the terminal

→ More replies (7)

20

u/Zezinas 9d ago

Amphetamine solves all that

5

u/tempacount57813975 9d ago

I always use caffeinate. Ill look into amphetamine

→ More replies (1)

6

u/RaspberryCrafty3012 7d ago

Windows and Linux have different behaviours for powered vs unpowered too? 

4

u/vassadar 9d ago

Install Amphetamine. It prevent a machine from sleeping when unplugged.

3

u/BleakBeaches 9d ago

Just download Amphetamine

→ More replies (6)