Well, it dawned on me that we should be able to invoke caffeinate as it is from ReallyPreventStandby instead of Gordon's sleep-inhibit (although I see from the source of this that it was also using assertions, but differently from caffeinate and presumably not in a way that works under Mountain Lion).
ReallyPreventStandby has these settings: Allow standby after how many idle minutes? Prohibit standby if players are on? Inhibit standby command Re-enable standby command Inhibit is a toggle command Under OSX, by default, the inhibit command is set to sleep-inhibit with a period of 60 seconds. There is no re-enable command and the inhibit command is not a toggle (meaning it gets called periodically - I guess every 60 seconds or thereabouts). My first try was to set these as: /us/bin/caffeinate -i (which creates an assertion to prevent the system from idle sleeping), pkill caffeinate, and command is a toggle. But found that caffeinate was not getting invoked (I do not know why). So instead I am now using: /usr/bin/caffeinate -i -t 60 (create the assertion for 60 seconds), no re-enable command, and inhibit is not a toggle. This now seems to be working! Well, after about 30 minutes of listening I did get the system going into standby while playing once. Just wondering if this was due to one invocation of caffeinate terminating before a new one is started. Gordon - I notice that usually a second caffeinate is invoked before the previous one times out. Is this intentional/designed? Is the 60 seconds a built-in period for the re-invocaction? Any ideas why I could not get it working as a toggle? By the way, I have my system sleep time set to 10 minutes. I am currently running with ReallyPreventStandby set to preventing standby if players are on - when I had the system going into standby while playing this setting was off. I will try it for a couple of days and then post again. ------------------------------------------------------------------------ nonnoroger's Profile: http://forums.slimdevices.com/member.php?userid=35581 View this thread: http://forums.slimdevices.com/showthread.php?t=95980 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
