epoch1970;431636 Wrote: 
> ...since "full support for OS X" is still in the TODO for the plugin...

Yikes!  I should have spoken up sooner about this.  I cracked this nut
last week.  It turns out that OSX's shutdown command can use "-s" as a
parameter and that will send the system into suspend...and it works
whether or not the user is logged in.  Who knew?

Choosing to suspend or hibernate is just a simple call to pmset.  And
system wakeup for alarms is another simple call to pmset.  

All in all, SrvrPowerCtrl can function on OSX exactly as it does on
linux: make the appropriate entries in /etc/sudoers and everything else
is easy.  What I ended up spending most of my time on was the setup
script.  The problem there is the fact that on OSX, SqueezeCenter runs
under the user account that installed SqueezeCenter, rather than under a
"squeezecenter" account as it does on linux.

The next version of SrvrPowerCtrl that incorporates all this is just a
day or so from release.  Epoch:  I'll try to carefully read through your
post and see if anything in my implementation could benefit from your
approach.  Thanks, and again, I'm sorry I didn't telegraph this sooner.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to