mherger wrote:
> > The Prevent System Standby (v3.0) Plugin (line 27/28) uses the
> > caffeinate with the -i flag (Create an assertion to prevent the
> system
> > from idle sleeping)
> > By changing the flag to -s (Create an assertion to prevent the system
> > from sleeping. This assertion is valid only when system is running on
> AC
> > power), the plugin now prevents my system from sleeping.
>
> Now that's interesting. Because the last change to that file was almost
>
> four years ago - to replace -s with -i:
>
> https://github.com/Logitech/slimserver/commit/9f1a3ec8b06bfd10693c186dca2a92c688f84159#diff-22adc3ba966f4a52b31693cb5d299c6a
>
> The commit message then said "kIOPMAssertionTypePreventSystemSleep no
> longer supported".
>
> --
>
> Michael
The best solution would be the plugin to use caffeinate -is or to have
an option in settings for "idle sleep" or "system from sleep"
Both are supported in Catalina:
if ( $command = Slim::Utils::Misc::findbin('caffeinate') ) {
$command .= ' -is';
}
Code:
--------------------
mac-mini:~ Tony$ pmset -g assertions | grep caffeinate
pid 22815(caffeinate): [0x000085aa00018c65] 00:00:27
PreventUserIdleSystemSleep named: "caffeinate command-line tool"
Details: caffeinate asserting forever
Localized=THE CAFFEINATE TOOL IS PREVENTING SLEEP.
pid 22815(caffeinate): [0x000085aa00078c66] 00:00:27 PreventSystemSleep
named: "caffeinate command-line tool"
Details: caffeinate asserting forever
Localized=THE CAFFEINATE TOOL IS PREVENTING SLEEP.
mac-mini:~ Tony$
--------------------
Tony
 SBTouch ♪ SBRadio ♬
------------------------------------------------------------------------
Tony T's Profile: http://forums.slimdevices.com/member.php?userid=34544
View this thread: http://forums.slimdevices.com/showthread.php?t=111304
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter