Big Sur, mac-mini (late 2014) not sleeping

When running Channels DVR mac will not sleep.
When Channels DVR is stopped mac sleeps.

Only difference in pmset -g log ouput is

Entering DarkWake state due to 'Software Sleep pid=132':TCPKeepAlive=active Using AC (Charge:0%)

TCPKeepAlive is being set when Channels DVR is running.

I have tried all combinations of energy preferences and the
only change that keeps mac awake is turning on Channels DVR.

Is this why the mac is not sleeping?

If your are running the dvr server on your Mac, why would you want it to sleep at all?

To save energy.

I would think this is intended behavior, as you want the server to keep the device it is running on awake to do it job as intended.

I suppose you could setup a script that would run at your trigger predetermined timeframe or whatever you want, to first issue the shutdown Channels DVR Server service command and then sleep the device, then have a auto run script that starts the Channels DVR Server service back up when the device wakes up.
No idea how that is done on MacOS.

Seems like there would be a better lifestyle choice to save $8 a year. I don’t know skip that Starbucks coffee or McDonalds drive thru one time in the next 12 months should cover that additional “energy” cost.

@speedingcheetah, Channels DVR is intended to sleep on macs.
Channels DVR wakes for network access and wakes for scheduled recordings.

@Rice, "energy" ?
Running machines properly seems like a responsible lifestyle choice.

I read some research a while back ago its easier on the hardware to let a computer run All the time and not go into sleep mode or turn it off and on every day all the time. I know quite a few people that never turn off their computers in their offices or even their homes. I know people that have older computers several years old been running 24/7 still functioning perfectly. Whereas I often find computers only a few years old have failed and the user turn them off and on every day multiple times.

Depending on the actual hardware and usage, the difference in power consumption often is quite minimal.

Either way I run my channels DVR on a raspberry pie which is ultra low power so it’s no big deal that runs 24 seven. But even my old intel nuc i7 machine used like 20 watts power max and 5 idle.

Modern computers use practically no energy while idle, especially compared to 4 mins of a microwave making popcorn.

They also do not need to sleep to lengthen their lifetime. These are all relics of the past.

I’ve been running an embarrassing amount of computers over the years and never sleep any of them, especially servers.

I couldn’t suggest more that you just let the computer run and enjoy the reliability of it always being on and ready to record and watch your recording immediately.

2 Likes

I subscribe to Channels DVR. I installed the wake helper.

My choice is to have my computer sleep when possible.

My computer does not sleep with Channels DVR installed.

If Channels DVR is not working as intended I am asking for help.

If Channels DVR does not support sleep on macos please say so.

I run on a 27 inch iMac. I looked up the power usage and calculated the total energy cost for a year. Once running 24 hours a day and the other sleeping 8 hours a day. The cost difference for a year was about 10 dollars. To me that’s not enough to get worked up over and does not break my budget. My Mac runs 24/7

Do suggest the occasional down time for cleaning out all the dust they tend to suck in after a while.

What does "ps 132" show?

@tmm1,

PID TT STAT TIME COMMAND
132 ?? Ss 0:02.31 /System/Library/CoreServices/loginwindow.app/Content

TCP keep alive means there's active network traffic between the dvr and something else.

Unfortunately the wake helper doesn't work reliably and is not a fully supported feature.

Thanks for the help. I will continue enjoying Channels DVR without sleep.