dip;441639 Wrote: > I just changed from my Windows Squeezecenter Installation to Ubuntu > 9.04. In addition I installed the SvrPowerControl plugin since I want to > suspend my ubuntu system when the players are idle. I had now twice the > problem that my computer was sent to suspend mode although music was > just playing. Is there a known problem like that? This does not always > happend but only sometimes. > > In my previous Windows installation I simply used the Windows power > save management. This was smart enough to send Windows only into suspend > mode when no music was playing. It seems that Windows not only checks > mouse movement and keyboard inputs but in addtion e.g. hard disk > activity (or something else). In Ubuntu I had the problem that the > default power management sends the computer to suspend mode when there > is no mouse movement and keyboard input but it does no further check. So > the computer was sent to suspend mode although music was playing. That > was the reasond that I switched to SvrPowerControl (but have now the > above problems). Are you running the full GUI with Ubuntu, or do you have it configured to start up in text mode? If the server is set to start the full GUI, as is the default with Ubuntu, then some of the GUI power management applets (e.g. Gnome Power Management) may be interfering. Check the system settings for various power management options and try disabling them all. Then SrvrPowerCtrl will be your power manager. See how that works. If you're confident that you've already disabled all the system power management stuff, then we'll need to start tracking down these spurious suspends by setting SrvrPowerCtrl's logging to debug and having a look at your server.log.
If your server's role is to be a headless audio server, you may want to investigate the various methods available to get Ubuntu to boot into text mode by default. You'll burn through many fewer CPU cycles running the server this way. And you can always start the GUI using a simple "startx" command from the command line. dip;441639 Wrote: > Even if SvrPowerControl works as expected, I miss an option that the > plugin checks for other activities of the computer, e.g. hard disk > activity or network traffic. For example, I make sometimes backups of my > music files from the harddisk of my music server to an external > harddisk. If no music is played while the backup is running > SvrPowerControl does suspend my computer and breaks the backup > procedure. A similar problem arises if e.g. a linux update is running > and SvrPowerControl sends the computer into suspend mode. > > Is there a chance that such additional checks will be included in > SvrPowerControl? It's unlikely that SrvrPowerCtrl will morph into a full blown power manager as you suggest unless some volunteers step up to the plate and start contributing code. The big problem is the amount of work that would have to be one with each different OS that SrvrPowerCtrl currently supports. I think Epoch1970's observation is correct: there ought to be OS-specific drivers monitoring system activity that would then signal to SrvrPowerCtrl when a idle condition exists. If a "mac person" and a "windows person" and a "linux person" all stepped forward to code the system monitoring drivers for each of those platforms, then maybe this could happen. But absent that, it's not something that I could take on on my own. In the mean time, before you start any lengthy operations like backups or system updates, use SrvrPowerCtrl's "Set Block" feature to temporarily disable SrvrPowerCtrl. You can do this from the SrvrPowerCtrl webUI or from scripts via CLI commands. For instance, here is a script that would block SrvrPowerCtrl and update the OS: update.sh: Code: -------------------- #!/bin/sh SCIp='127.0.0.1' CLIPort='9090' #Block SrvrPowerCtrl from suspending the system.. echo Blocking SrvrPowerCtrl.. echo srvrpowerctrl setblock System_update_in_proces viacli | nc -w 3 $SCIp $CLIPort #update the OS.. apt-get update apt-get upgrade #Un-block SrvrPowerCtrl.. echo Unblocking SrvrPowerCtrl.. echo srvrpowerctrl clearblock System_update_complete! viacli | nc -w 3 $SCIp $CLIPort echo Done! -------------------- Copy this script to /usr/bin and execute it from a terminal prompt via: # sudo update.sh You could create a similar script for your backups by "wrapping" an rsync command in setblock and clearblock calls. -- 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 plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins