No worries, man.
But if we have desktop users complaining the machine shuts down on them
(99% macs are desktop machines I'd say) then we may need to resort to
more complicated means.
One last thing before I put the subject to rest. On my mac, which I
don't normally use as the SC server, but only as a desktop, I have
activated players monitoring.
1-I have "Total Players Recognized: 0" and yet player sleep will try to
sleep the machine, only because SC is running and players monitoring
activated. Is this a bug ?
2-Since I am not playing anything and I am logged in, and monitoring is
set to 5 minutes, my own stupid Applescript popup comes up every five
minutes, menacing to shutdown the machine and I have to click "cancel".
Better than having the machine suspend, but obnoxious on the long term.
I looked for a remedy, I will not implement it, but here is my idea:
- add to the dialog a button called "Later". When "Later" is the exit
condition of the popup, then sudonot.pl could in turn...
- ... connect to the local SC server and get the srvPowerControl pref
for the timeout,
- apply an exponential backoff factor to the returned value, perhaps
capped to say, the standard suspend value found in pmset
- set this new pref in srvPowerControl.
A quick telnet session to examplify:
Code:
--------------------
pref plugin.srvrpowerctrl:nIdleWatchdogTimeout ?
pref plugin.srvrpowerctrl%3AnIdleWatchdogTimeout 5
pref plugin.srvrpowerctrl%3AnIdleWatchdogTimeout 15
pref plugin.srvrpowerctrl:nIdleWatchdogTimeout ?
pref plugin.srvrpowerctrl%3AnIdleWatchdogTimeout 15
--------------------
Ideally, the prefs shouldn't stick across the next time the machine
suspends, but I don't know how to do that.
Ideally ideally, the OS knows it is not time to sleep. I should know it
as well, and simply refuse to sleep the machine, silently.
--
epoch1970
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins