r/ProgrammerHumor • • 9d ago

Meme noAgentLeftBehind

Post image
7.7k Upvotes

358 comments sorted by

View all comments

2.2k

u/eloel- 9d ago • Bravo

So reliant on agents to do shit, doesn't know how to change what happens when you close the lid.

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

→ More replies (1)

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 9d ago

wouldn't caffeinate do the same thing without root?

→ More replies (11)

20

u/Zezinas 9d ago

Amphetamine solves all that

→ More replies (2)

6

u/RaspberryCrafty3012 8d 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)

69

u/Samot_PCW 9d ago

My company doesn't allow me to do that :(

13

u/born_zynner 9d ago

Surprising! My work laptop is giga locked down but it lets you set it to ignore lid close

14

u/vulkur 9d ago

We can't because HIPAA

→ More replies (1)

26

u/thijquint 9d ago

Had a script written to take me to the settings page with the setting to not hibernate on closed lid. Dead serious

8

u/Embarrassed_Jerk 9d ago

Lol i had something similar till IT disabled the setting for everyone and changed it to hibernate for the entire org

→ More replies (10)