[% PROCESS helpheader.html %]

 

SrvrPowerCtrl plugin Debian help

SrvrPowerCtrlSrvrPowerCtrl's job is to help you control power states (sleeping / waking / etc.) on your SqueezeCenter server hardware. To do that, SrvrPowerCtrl needs to be able use some “helper” applications on your server. These applications differ according to which operating system you are using on the SqueezeCenter server. But whatever your server setup, you'll need to do a certain amount of manual tweaking of those helper applications and SrvrPowerCtrl's settings in order to get things working as they ought. Hopefully, these instructions will help you get everything set “just right.”



Linux setup instructions for Debian, Ubuntu & etc.

To finish installing SrvrPowerCtrl for linux, you'll need to make sure that the following commands are available from a terminal prompt:

# sudo
# shutdown

Additionally, to support suspend and hibernation, the pm-utils package must be installed. Check to see that these commands are runnable from a terminal prompt as well:

# pm-suspend
# pm-hibernate

Not all linux distros include those commands in a default installation. Consult your distro's documentation for adding (if necessary) the sudo, shutdown and pm-utils packages.

Also, your hardware may require adding “quirks” to the pm-suspend command line in order for S3 sleep/suspend and resume to function properly. Unfortunately, this can be determined only by trial and error. See the Sleep Quirk Debugger page for more information.

Alternately, your distro may use different commands to initiate a shutdown/restart/suspend/hibernation. If so, edit the command lines on the SqueezeCenter→Settings→Plugins→Server Power Control→Settings page accordingly.

To finish installing the plugin for linux, do the following:

  • For Debian, Ubuntu and like distros, make the following script file executable and then execute it using these commands in the terminal window:

    # chmod a+x /var/lib/squeezecenter/Plugins/SrvrPowerCtrl/scripts/Debian/srvrpowerctrl-setup.sh
    # /var/lib/squeezecenter/Plugins/SrvrPowerCtrl/scripts/Debian/srvrpowerctrl-setup.sh


  • Next, verify that the 'squeezecenter' user has permissions to shutdown the system without raising any prompts. In the terminal window (still as root / su), try executing the following command:

    # sudo -u squeezecenter sudo /sbin/shutdown -k -h now

    If the command responds with:

    The system is going down for system halt NOW!

    ..then the plugin ought to be able to shutdown/restart/etc your system from the squeezecenter service.

  • Finally, add any “quirks” that you've found are needed with your server hardware to the pm-suspend command line at SqueezeCenter→Settings→Plugins→SrvrPowerCtrl→Settings→Suspend Command:

  • One final note for Ubuntu 8.10 and later users: Ubuntu 8.10 and later systems default to keeping the hardware clock set to local time rather than to UTC. In order for system wakeup-for-alarms scheduling to work with these systems, change the “Schedule Wakeup Command” from:

    /usr/local/sbin/scwakeup.sh %d

    -- to --

    /usr/local/sbin/scwakeup.sh %l


  • If you'd prefer to make your linux system settings changes manually (rather than using the above setup script) please consult the readme.txt file for steps you'll need to carry out.

     


    [% "PLUGIN_SRVRPOWERCTRL_BACKTO_HELP_PAGE" | string %]
    [% PROCESS helpfooter.html %]