Roon never releasing NoIdleSleepAssertion on Mac

$ pmset -g assertions |grep Roon
pid 18452(Roon): [0x0001815100011b41] 00:00:45 NoIdleSleepAssertion named: “Music is playing”
pid 18452(Roon): [0x00017da700011ac8] 00:16:24 NoIdleSleepAssertion named: “Music is playing”
pid 18452(Roon): [0x0001750f000119de] 00:53:03 NoIdleSleepAssertion named: “Music is playing”

This list grows by one each time I pause and play playing again, and holding this lock/assertion prevents Mac from going to sleep even when Roon is paused/stopped playing music.

I’d also suggest you test interaction of this sleep lock with closing lid, and running on battery - I’m almost sure that Roon will prevent laptop from going to sleep when running on batter, with its lid closed, which is actually worrying (if I put it in my bag, it could overheat) but I haven’t had time to make sure that this is indeed the case - it’s just Roon is currently my main suspect for that happening.

This is an old thread but I recently noticed that I have pretty much the same problem - each time playing is paused a new NoIdleSleepAssertion is created. Sometimes these do seem to go away, but at one point yesterday I noticed that eight were currently active.

@support, is this an issue that you’re aware of, and if so, is there a solution?

@kklimonda, did you ever manage to resolve this?

I can’t reproduce it anymore, Roon is no longer creating its own assertion for me, instead one seems to be created on its behalf by coreaudiod, it is however not the same setup, so I can’t confirm if this is fixed for me. Previously I was using Roon over VPN to stream music at work and there I connected my MacBook Pro to an external USB DAC and that could be the difference.

Thanks for getting back to me, and I’m glad it’s sorted for you. I currently have the following rather long list:

trinity:~ djn$ pmset -g assertions |grep Roon
pid 43357(RoonAppliance): [0x00015ff100018b43] 00:17:05 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00013c7a00018731] 02:48:24 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000114c500018378] 05:37:49 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000091cd00019517] 14:56:36 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000088d800019415] 15:34:48 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00007af00001921e] 16:34:08 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000743300019070] 17:02:54 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000073dd0001906b] 17:04:19 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000071a100019042] 17:13:51 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006ebc00018ff3] 17:26:12 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e8400018ff0] 17:27:09 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e7500018fee] 17:27:24 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e6800018fed] 17:27:36 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e5900018fe3] 17:27:51 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e4c00018fe2] 17:28:04 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e3400018fe1] 17:28:28 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006e1f00018fdf] 17:28:49 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006df700018fde] 17:29:29 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006de600018fdc] 17:29:47 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006d7c00018fd6] 17:31:32 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006d3900018fca] 17:32:39 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006cfc00018fc7] 17:33:40 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006cc500018fc6] 17:34:36 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006c9800018fc3] 17:35:21 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006c7d00018fc1] 17:35:47 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00006c5700018fbf] 17:36:26 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000656f00018e2a] 18:05:53 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000652000018e21] 18:07:12 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000651f00018e20] 18:07:13 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000651a00018e1f] 18:07:18 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x0000564c00018c0a] 19:10:28 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x000041ee00018a9c] 20:37:22 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00003e8600018a56] 20:51:54 NoIdleSleepAssertion named: “Music is playing”
pid 43357(RoonAppliance): [0x00003a54000189f7] 21:09:47 NoIdleSleepAssertion named: “Music is playing”

:slight_smile:

Are you using a VPN like kklimonda?

@Rugby, no, I’m running Roon Core on my laptop, and controlling it via the Roon client software on either the same machine, iPhone, or iPad.

Hi @DaveN ---- Thank you for chiming in here and sharing your feedback with us. Both are very appreciated!

Moving forward, if you are able to reliable reproduce this behavior may I kindly ask you to do so and note the time in which the observations is made. Once I have the requested time frame(s) I can then go ahead and enable diagnostics on your account so we can have a closer look.

-Eric

Hi @eric,

My apologies, but I’m not sure what you’re requesting. I can replicate the issue by running ‘pmset -g assertions |grep Roon’ but what do you need in terms of the time frame?

Dave

Hi @DaveN — Apologies for any confusion in my previous post. What I was asking for when I mentioned “time frame” is just to provide the time of day when you get Roon into this state, so when we look at your Roon log traces we can have a point of reference.

-Eric

Hi @eric, no problem.

So, in terms of times, hopefully the following terminal will help. The first ‘pmset -g assertions |grep Roon’ was run a few minutes ago, without Roon playing anything. I then started a track playing and ran the command again - hence the addition of yet another “Music is playing” assertion.

If you need any further information, please get back to me

Dave

trinity:~ djn$ date
Thu 29 Mar 2018 08:52:08 BST
trinity:~ djn$ pmset -g assertions |grep Roon
pid 89657(RoonAppliance): [0x0004b24100019a25] 00:08:22 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00042c5a00019023] 09:39:40 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00042aed00018ffc] 09:45:45 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00040eb900018d6a] 11:46:04 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00040e7800018d58] 11:47:09 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x000402a900018bfa] 12:37:33 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0003f8b300018a91] 13:20:02 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00035fc600019e55] 24:55:33 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002e20b0001944d] 33:51:59 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002dc46000193a4] 34:16:36 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002d7540001930d] 34:37:41 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002d613000192ea] 34:43:02 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002cedc0001914e] 35:13:49 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002cdd200019132] 35:18:15 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002c7f800019079] 35:43:13 NoIdleSleepAssertion named: “Music is playing”
trinity:~ djn$ date
Thu 29 Mar 2018 08:52:24 BST
trinity:~ djn$ pmset -g assertions |grep Roon
pid 89657(RoonAppliance): [0x0004b44000019a4c] 00:00:06 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0004b24100019a25] 00:08:36 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00042c5a00019023] 09:39:55 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00042aed00018ffc] 09:45:59 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00040eb900018d6a] 11:46:19 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00040e7800018d58] 11:47:24 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x000402a900018bfa] 12:37:47 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0003f8b300018a91] 13:20:17 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x00035fc600019e55] 24:55:48 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002e20b0001944d] 33:52:14 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002dc46000193a4] 34:16:50 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002d7540001930d] 34:37:56 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002d613000192ea] 34:43:17 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002cedc0001914e] 35:14:03 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002cdd200019132] 35:18:30 NoIdleSleepAssertion named: “Music is playing”
pid 89657(RoonAppliance): [0x0002c7f800019079] 35:43:28 NoIdleSleepAssertion named: “Music is playing”

Thanks for the follow up @DaveN, very appreciated!

As mentioned I am going to be enabling diagnostics on your account so we can have a look at your Roon logs during the mentioned times listed above. Once the diagnostics report has reached our servers I will be sure to follow up with you so you know it has been received.

-Eric

No problem @eric . Just get back in touch if you need any further info.

Dave

1 Like

Thanks @DaveN! Touching base to let you know that the diagnostics report has been received.

-Eric

Excellent. Keep me posted.

Hi @DaveN ---- Thank you for your patience here while we’ve been looking into this behavior your reported.

The tech team and myself have both been trying to get into this state and it seems that we are unable to. The diagnostics we received did not provide anything conclusive in regard to this behavior so we are a bit stuck.

In my case I set Roon up on a MacBook Air which is in turn being controlled by a Nexus 6P acting as a Roon remote. On the MBA I have adjusted the sleep settings and after the designated amount of time (while Roon is paused) the computer does in fact go to sleep.

However, I feel as there may be some misunderstanding of the problem here and in the interest of making sure that I am conceptualizing the issue correctly and also replicating your setup/settings as close as possible can you please provide me with the following:

  1. Is the mentioned MAC device not going to sleep while music is paused OR is this a situation where you were working in terminal and had noticed that NoIdleSleepAssertion were being generated while Roon was paused? I want to have a clearer sense as to what the exact symptom is here.

If it is the former (i.e "…MAC device actually not going to sleep…"

  1. Please provide me insight into what actions are being performed in Roon BEFORE the issue occurs.

  2. What are the sleep settings being assigned to the device?

-Eric

Hi @eric,

The sleep settings for my Macbook Pro are included below.

In terms of how I found out about the problem. I first noticed that my machine wouldn’t sleep, despite the sleep settings, so checked in terminal to find out why.

I did some further testing after reading your latest response and have some additional info that my shed some light on this. If I pause/play music using the Roon app on my Macbook Pro (note, this is the same device that runs my core) the machine WILL sleep as expected when the music is paused.

However, I also use my iPhone or iPad at night, to listen via headphones when in bed, and it’s this that seems to be causing the problem. I can play/pause music without any issue, but both devices create a NoIdleSleepAssertion that doesn’t seem to get released unless I quit the roon server/appliance.

For example, I played a few seconds of a track last night on my iPhone, immediately paused the music, yet terminal still reports the following:

trinity:~ djn$ pmset -g assertions |grep Roon
pid 76382(RoonAppliance): [0x000d10bd000191a7] 09:59:39 NoIdleSleepAssertion named: “Music is playing”

In other words, almost 10 hours after the music has stopped playing the NoIdleSleepAssertion is still active.

It’s also worth noting that I just initiated and paused playback on my Macbook Pro (using Roon on that device) and another NoIdleSleepAssertion was created (see below). This one, however, disappeared of it’s own accord.

pid 76382(RoonAppliance): [0x000d9db500019b9d] 00:00:06 NoIdleSleepAssertion named: “Music is playing”
pid 76382(RoonAppliance): [0x000d10bd000191a7] 10:01:33 NoIdleSleepAssertion named: “Music is playing”
trinity:~ djn$ pmset -g assertions |grep Roon
pid 76382(RoonAppliance): [0x000d9db500019b9d] 00:04:46 NoIdleSleepAssertion named: “Music is playing”
pid 76382(RoonAppliance): [0x000d10bd000191a7] 10:06:14 NoIdleSleepAssertion named: “Music is playing”
trinity:~ djn$ pmset -g assertions |grep Roon
pid 76382(RoonAppliance): [0x000d9db500019b9d] 00:04:49 NoIdleSleepAssertion named: “Music is playing”
pid 76382(RoonAppliance): [0x000d10bd000191a7] 10:06:16 NoIdleSleepAssertion named: “Music is playing”
trinity:~ djn$ pmset -g assertions |grep Roon
pid 76382(RoonAppliance): [0x000d10bd000191a7] 10:06:38 NoIdleSleepAssertion named: “Music is playing”

In short then, it looks like my iOS devices are creating but not cancelling NoIdleSleepAssertion,

Best wishes,

Dave

My Current Energy Saver settings :-

Hey @DaveN,

Thanks for detailed explanation of this issue and reproduction steps. We will try this in-house and let you know the result. Stay tuned.

Hi @vova

You’re welcome, and if you have any other questions just get back to me.

Best wishes,

Dave

Hi @vova ad @eric,

I’ve just done some additional testing and can’t quite work out what’s going on here. I rebooted my laptop and tested my mac, iPhone and iPad. When starting and stopping playback with each device sequentially, a NoIdleSleepAssertion would be created, then cancelled at around the 5 minute mark. However, when running two devices at once - i.e. output to both the Macbook and iPhone - I’m back with a string of NoIdleSleepAssertions.

Clearly it’s not just a device issue, but some sort of interaction between them. Good luck with getting to the bottom of this - it’s clearly quite complex.

@DaveN were you able to get this resolved? I’m discovering the same thing on my Mac. Full disclosure is my “Mac” is a Hackintosh. I’m noticing when I start music playing I get the NoIdleSleepAssertion and it goes away after pausing/stopping the music and sleep performs as normal. However when I start music, stop it, and then restart it before the initial assertion disappears, I end up with 2 assertions as you experienced. The problem begins here as only the first assertion disappears after a few minutes but the second assertion remains until I actually quit the Roon app. Needless to say my machine says awake until Roon is quit. I’m curious as to whether you were able to overcome this.