KeepingYouAwake icon indicating copy to clipboard operation
KeepingYouAwake copied to clipboard

Not working on MacOS 15.x

Open MarshBear opened this issue 1 year ago • 12 comments

I have update my system to MacOS 15.0.1 (Sequoia) and the app is not working any more. Nothing happens when I click the app icon. I believe there is some conflict between the system command and the app command.

MarshBear avatar Oct 24 '24 05:10 MarshBear

Strange, works for me with latest MacOS 15.0.1 (and worked with 15.0.0). No issues, and I'm using it daily. Good luck!

alexandreleroux avatar Oct 25 '24 11:10 alexandreleroux

I also did not experience a problem like that on macOS Sequoia before. It's difficult to identify the underlying issue based on the description. I can only recommend to wait and reinstall the app again next week after the release of the macOS 15.1 update. Maybe this helps already.

newmarcel avatar Oct 26 '24 09:10 newmarcel

I'm on MacOS 15.0.1 (M2 Pro) and the version of the application downloaded from the website, when launched, wasn't adding the menu bar icon, even though the process was running. Installing via brew fixed the issue.

dklymenk avatar Oct 30 '24 13:10 dklymenk

I'm having the same issue on a fresh install of Sequoia. It worked before when I had upgraded to Sequoia from a previous macOS version. I have the issue with both brew and the website version. Nothing appears in the menu. Activity monitor shows KeepingYouAwake running but it won't quit unless I use the force quit option.

Lownin avatar Oct 30 '24 17:10 Lownin

It's my first time to use this software via brew installation. I'm also on MacOS 15.0.1 and it works for me.

timerring avatar Nov 18 '24 08:11 timerring

Okay, sorry for my previous comment. Actually, in my case the top bar was just "full of icons" and the OSx GUI doesn't offer one the possibility to scroll through, therefore it's impossible to access the item if too many icons are pinned in one's bar.

marimeireles avatar Jan 07 '25 13:01 marimeireles

macOS 15.2 it doesn't work for me on a company managed MacBook Pro 16,5

majuss avatar Jan 14 '25 09:01 majuss

macOS 15.2 it doesn't work for me on a company managed MacBook Pro 16,5

Same. Possibly of interest is this is the setting for my screen saver:

Image

TheCleric avatar Feb 19 '25 14:02 TheCleric

Managed devices can indeed limit the functionality, but I don't have access to one to reproduce any MDM-related issues.

Maybe here are some follow-up questions to track down the remaining problems:

  • do you use multiple or external displays? If yes, are they mirrored?
  • is KeepingYouAwake properly installed in the /Applications folder?
  • In Activity Monitor (you can find and open it via Spotlight), what do you see when you filter by CPU and by the search term "caffeinate"?
    • this should show one process when KYA is active and zero when it isn't
  • when your Mac still goes to sleep despite KYA being active, you check the following command output:
    • open Terminal (via Spotlight), type pmset -g assertions (this command lists anything that tells macOS to stay awake ^^)
    • the output should list at least PreventUserIdleSystemSleep named: "caffeinate command-line tool" and depending on your settings there should be a PreventUserIdleDisplaySleep named: "caffeinate command-line tool" entry

newmarcel avatar Feb 23 '25 08:02 newmarcel

  • no
  • yes
  • yes its there
2025-02-23 10:18:47 +0100 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   InternalPreventDisplaySleep    1
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 738(sharingd): [0x00009eb300019792] 00:04:04 PreventUserIdleSystemSleep named: "Handoff"  
   pid 853(caffeinate): [0x0000002c000180d8] 45:17:22 PreventUserIdleSystemSleep named: "caffeinate command-line tool"  
	Details: caffeinate asserting on behalf of Process ID 824
	Created for PID: 824. 
	Localized=THE CAFFEINATE TOOL IS PREVENTING SLEEP.
   pid 323(powerd): [0x00009c07000196ec] 00:15:27 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"  
   pid 323(powerd): [0x00009f340010877b] 00:01:42 InternalPreventDisplaySleep named: "com.apple.powermanagement.delayDisplayOff"  
	Timeout will fire in 17 secs Action=TimeoutActionTurnOff
   pid 379(WindowServer): [0x00009e5800099776] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle serviceID:100000c29 service:AppleHIDKeyboardEventDriverV2 product:Apple Internal Keyboard / Trackpad eventType:3"  
	Timeout will fire in 120 secs Action=TimeoutActionRelease
No kernel assertions.

majuss avatar Feb 23 '25 09:02 majuss

Similar issue here.

  • Managed device
  • MacOS 15.2
  • Icon shows in navigation bar, but when clicked the mug fills and quickly resets

Update. I was debugging in Console and noticed that KeepingYouAwake does stay on, sometimes. Here are the logs (filtered by caffeinate) when it fails.

default	13:51:31.354109-0400	caffeinate	[0x600000338000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
default	13:51:31.354317-0400	caffeinate	[0x6000003380f0] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.agent
default	13:51:31.355849-0400	runningboardd	Resolved pid 25660 to [anon<caffeinate>(502):25660]
default	13:51:31.356580-0400	runningboardd	[anon<caffeinate>(502):25660] is not RunningBoard jetsam managed.
default	13:51:31.356622-0400	runningboardd	[anon<caffeinate>(502):25660] This process will not be managed.
default	13:51:31.356654-0400	runningboardd	Now tracking process: [anon<caffeinate>(502):25660]
default	13:51:31.357683-0400	runningboardd	Acquiring assertion targeting [anon<caffeinate>(502):25660] from originator [osservice<com.apple.powerd>:117] with description <RBSAssertionDescriptor| "App is holding power assertion" ID:180-117-405744 target:25660 attributes:[
	<RBSDomainAttribute| domain:"com.apple.appnap" name:"PowerAssertion" sourceEnvironment:"(null)">,
	<RBSAcquisitionCompletionAttribute| policy:AfterApplication>
	]>
default	13:51:31.357798-0400	runningboardd	Assertion 180-117-405744 (target:[anon<caffeinate>(502):25660]) will be created as active
default	13:51:31.358269-0400	runningboardd	[anon<caffeinate>(502):25660] Ignoring jetsam update because this process is not memory-managed
default	13:51:31.358310-0400	runningboardd	[anon<caffeinate>(502):25660] Ignoring suspend because this process is not lifecycle managed
default	13:51:31.358371-0400	runningboardd	[anon<caffeinate>(502):25660] Ignoring role changes because this process is not role managed
default	13:51:31.358552-0400	runningboardd	[anon<caffeinate>(502):25660] Ignoring GPU update because this process is not GPU managed
default	13:51:31.358778-0400	runningboardd	[anon<caffeinate>(502):25660] Ignoring memory limit update because this process is not memory-managed
error	13:51:31.367028-0400	caffeinate	IOPMAssertionCreateWithProperties: io_pm_assertion_create failed with error 0xe00002bd
default	13:51:31.368026-0400	runningboardd	[anon<caffeinate>(502):25660] termination reported by proc_exit
default	13:51:31.386837-0400	runningboardd	Invalidating assertion 180-117-405744 (target:[anon<caffeinate>(502):25660]) from originator [osservice<com.apple.powerd>:117]
default	13:51:31.474380-0400	runningboardd	Removing process: [anon<caffeinate>(502):25660]
default	13:51:31.474680-0400	runningboardd	removeJobWithInstance called for identity without existing job [anon<caffeinate>(502):25660]
default	13:51:31.474714-0400	runningboardd	Removing assertions for terminated process: [anon<caffeinate>(502):25660]
error	13:51:31.514616-0400	runningboardd	RBSStateCapture remove item called for untracked item 180-117-405744 (target:[anon<caffeinate>(502):25660])

And when it succeeds.

default	13:54:15.851583-0400	caffeinate	[0x600000284000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
default	13:54:15.851814-0400	caffeinate	[0x6000002840f0] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.agent
default	13:54:15.856795-0400	runningboardd	Resolved pid 30567 to [anon<caffeinate>(502):30567]
default	13:54:15.857270-0400	runningboardd	[anon<caffeinate>(502):30567] is not RunningBoard jetsam managed.
default	13:54:15.857323-0400	runningboardd	[anon<caffeinate>(502):30567] This process will not be managed.
default	13:54:15.857366-0400	runningboardd	Now tracking process: [anon<caffeinate>(502):30567]
default	13:54:15.858091-0400	runningboardd	Acquiring assertion targeting [anon<caffeinate>(502):30567] from originator [osservice<com.apple.powerd>:117] with description <RBSAssertionDescriptor| "App is holding power assertion" ID:180-117-405798 target:30567 attributes:[
	<RBSDomainAttribute| domain:"com.apple.appnap" name:"PowerAssertion" sourceEnvironment:"(null)">,
	<RBSAcquisitionCompletionAttribute| policy:AfterApplication>
	]>
default	13:54:15.858216-0400	runningboardd	Assertion 180-117-405798 (target:[anon<caffeinate>(502):30567]) will be created as active
default	13:54:15.858695-0400	runningboardd	[anon<caffeinate>(502):30567] Ignoring jetsam update because this process is not memory-managed
default	13:54:15.858773-0400	runningboardd	[anon<caffeinate>(502):30567] Ignoring suspend because this process is not lifecycle managed
default	13:54:15.858880-0400	runningboardd	[anon<caffeinate>(502):30567] Ignoring role changes because this process is not role managed
default	13:54:15.858990-0400	runningboardd	[anon<caffeinate>(502):30567] Ignoring GPU update because this process is not GPU managed
default	13:54:15.859277-0400	runningboardd	[anon<caffeinate>(502):30567] Ignoring memory limit update because this process is not memory-managed
default	13:54:15.862660-0400	powerd	Process caffeinate.30567 Created PreventUserIdleDisplaySleep "caffeinate command-line tool" age:00:00:00  id:21474870122 [System: PrevIdle PrevDisp DeclUser IntPrevDisp kDisp]

bowmanb avatar Apr 16 '25 17:04 bowmanb

HI, latest Sequoia release fix the icon issue for me : 15.6 (24G84)

jean-clovis avatar Aug 07 '25 14:08 jean-clovis