raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.37k stars 3.07k forks source link

[coffee] 'Caffeinate for' doesn't work if status bar is disabled #10823

Closed efa2d19 closed 7 months ago

efa2d19 commented 8 months ago

Extension

https://www.raycast.com/mooxl/coffee

Description

Noticed mac not going to sleep when I use coffee on long builds. Tried to find why and status bar seems like the culprit. When disabled - problems appears from time to time. If enabled - can't reproduce.

Steps To Reproduce

caffeinate is disabled; status bar is disabled

  • Open Raycast
  • Select 'Caffeinate for'
  • Select any time (e.g. 10 min)
  • cmd + enter
  • Check if caffeinate really started ( manually refresh status item w/ enter or ps aux | grep caffeinate )

Current Behaviour

Failed to start/no caffeinate process

Expected Behaviour

Started w/ specified time

raycastbot commented 8 months ago

Thank you for opening this issue!

🔔 @mooxl @bibixx @GastroGeek @pernielsentikaer you might want to have a look.

💡 Author and Contributors commands The author and contributors of `mooxl/coffee` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopen the issue.
efa2d19 commented 8 months ago

probably related to or part of #10729 tho

pernielsentikaer commented 8 months ago

@oasaleh do you have this issue? I checked it out and couldn't reproduce 🫠

oasaleh commented 8 months ago

It seems to be working for me.

I disabled the status bar icon and decaffeinated my MacBook. Then, I checked the processes using ps aux | grep caffeinate. I found this one.

omar             55773   0.0  0.0 408626944   1424 s001  S+    7:10AM   0:00.00 grep caffeinate

Then I caffeinated for 10 mins. Here are the processes I found.

omar             55860   0.0  0.0 408626944   1424 s001  S+    7:14AM   0:00.00 grep caffeinate
omar             55849   0.0  0.0 408555216   6064   ??  S     7:14AM   0:00.01 /usr/bin/caffeinate -dmi -t 600
oasaleh commented 8 months ago

By the way, I have these checked.

Screenshot 2024-02-20 at 7 19 51 AM Screenshot 2024-02-20 at 7 20 16 AM
efa2d19 commented 8 months ago

By the way, I have these checked

Also have the same settings\ Can you check what happens on repeatedly toggling on and off "caffeinate for"?

raycastbot commented 7 months ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

efa2d19 commented 7 months ago

I'm not sure why, but it's gone after system wipe 🤷‍♂️