Well.
The mac has 3 power states: on, off, and suspended to Ram (aka
suspend)
Hibernate, that is Suspend to disk is only used on a portable mac when
the battery is totally drained.
This is quite different on Windows, where hibernate is somewhat
preferred. Linux has "everything", as usual.
SrvPowerControl trying to be cross platform, the menus offer Suspend
and Hibernate.

But in your case, since there is no practical way of forcing
hibernation on the mac, the only useful entry is Suspend.
Hence you can use the Hibernate menu entry to input a "do nothing"
command. 

"/bin/true" is a standard unix "do nothing" command, that returns happy
after having done nothing. Strange as it is, it can be useful when you
want to make sure something does not return an error code, in any case.
Its opposite is /bin/false: it does nothing either, but always returns
unhappy, with an error code.

So I suggest aliasing Hibernate, the useless machine state on a mac to
"/bin/true", a happy do-nothing command.
And have srvPowerControl activate that when it sees the players idle.

I think this is what you've been asking for. If it is not, please
excuse the noise.

Here is a screendump of the whole preferences screen as I imagine you
want it:
- do something of yours when not idle,
- do nothing when idle,
- suspend the computer when pressing and holding "sleep" on the IR,
- ability to suspend, shutdown, reboot, the machine from players menus
or the web interface.

(I attach the file as a zip, just download and uncompress. I do not
think it is appropriate to inline such a large image (1000x2000 pixels)


+-------------------------------------------------------------------+
|Filename: collage.jpg.zip                                          |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=8381|
+-------------------------------------------------------------------+

-- 
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
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to