Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://itunes.apple.com/us/app/caffeine/id411246225?mt=12

I use this all the time, it's the GUI version presumably.



It uses the same underlying API. I use it too. It’s only on–off, though, so you have to remember to turn it off.


> It uses the same underlying API

I don't think so. For whatever reason Caffeine doesn't take a power assertion, as show by `pmset -g assertions`, whereas caffeinate does.

This is what prompted me to write Theine (https://github.com/lvillani/theine) to use the proper API for this task, since Caffeine would behave erratically with the lock screen active.


That’s odd. Do you have any idea what API they use?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: