My Mac mini sleep problem started when I upgraded to 10.14.4. It would not sleep, ever. I tried without success, almost everything suggested in this thread and others. Then, I remembered something from previous versions of Mac OS. The slider will not allow Computer Sleep before Screen Sleep.
Assertions in Terminal.app verify my Screen Sleep setting of 10 minutes (600 seconds).
mini:~ earl$ pmset -g assertions
2019-04-24 10:50:49 -0400
Assertion status system-wide:
.....zero items snipped.....
UserIsActive 1
.....zero items snipped.....
Listed by owning process:
pid 112(hidd): [0x00001f1f00098576] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294969512.3"
Timeout will fire in 600 secs Action=TimeoutActionRelease
.....remaining lines snipped.....
But, Mojave has no slider for Computer Sleep. What is the setting and how is it changed?
I checked the current Computer Sleep setting. This was the problem.
mini:~ earl$ sudo systemsetup -getcomputersleep
Computer Sleep: after 1 minutes
I changed the Computer Sleep setting to 15 minutes. The range of allowable values is 0-100.
mini:~ earl$ sudo systemsetup -setcomputersleep 15
setcomputersleep: 15
I verified the new setting.
mini:~ earl$ sudo systemsetup -getcomputersleep
Computer Sleep: after 15 minutes
Problem solved, at least for me. This fixed both Automatic Sleep and Manual Sleep.
Automatic Sleep.
Screen Saver - 5 minutes
Screen Sleep - 10 minutes
Computer Sleep - 15 minutes
Manual Sleep.
Screen Sleep - immediately
Computer Sleep - about 1 minute
Now, I have to turn on all the stuff I turned off in search of a solution.