tobitobsta wrote: 
> Any suggestion how to do this? And be careful, i'm a newbie! ;)
Your script and srvPowerControl want to sleep the computer. You need to
have one master only (handling power state change), and make the other a
slave (providing advisory activity status.)
I think the script you're using looks ok but isn't very accurate :
checking once in X minutes and deciding what to do on the spot, it could
take the wrong decision for a variety of reasons. Given the
sophistication of srvPowerControl I would suggest making it the master
and let it handle power status change on the machine. 

I *suppose* the simplest way of doing this is removing the sleep/rtcwake
code in the script, and replace it with code that places/remove a
"softblock" to inhibit/release srvPowerControl's ability to sleep the
machine.
(When your script thinks the machine is active it places the softblock,
so srvPowerControl won't sleep the machine even if players are idle.
When the machine is idle according to the script, it removes the block
and srvPowerControl will sleep the machine if players are idle as
well.)
srvPowerControl has quite a few tricks up its sleeve, including
command-line commands that you could use in your script. I'd recommend
installing the latest beta version and exploring from there.

If you carefully read this thread, you'll find plenty of people trying
to resolve the same dilemma, I think. Keep in mind srvPowerControl
capabilities have expanded a lot over time; I'd look for discussions in
the 2011->current period for a start.

HTH


------------------------------------------------------------------------
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

Reply via email to