<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jayrock</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jayrock"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Jayrock"/>
	<updated>2026-04-12T23:58:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46447</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46447"/>
		<updated>2011-09-09T05:15:23Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===One Click installation===&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
===Manual installation - NOT SUPPORTED ANYMORE, BUT MAY STILL WORK===&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
&lt;br /&gt;
===Step-by-step guide===&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar===&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
===Script interface===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
For a collection of scripts, please see this thread: http://forums.amahi.org/viewtopic.php?f=15&amp;amp;t=3320&amp;amp;p=16486#p16486&lt;br /&gt;
&lt;br /&gt;
===Lock files===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -f /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Sources==&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46429</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46429"/>
		<updated>2011-09-07T06:13:35Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===One Click installation===&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
===Manual installation===&lt;br /&gt;
Alternatively you can install manually:&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
&lt;br /&gt;
===Step-by-step guide===&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar===&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
===Script interface===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
For a collection of scripts, please see this thread: http://forums.amahi.org/viewtopic.php?f=15&amp;amp;t=3320&amp;amp;p=16486#p16486&lt;br /&gt;
&lt;br /&gt;
===Lock files===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -f /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46075</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46075"/>
		<updated>2011-08-31T15:32:48Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===One Click installation===&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
===Manual installation===&lt;br /&gt;
Alternatively you can install manually:&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
&lt;br /&gt;
===Step-by-step guide===&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar===&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
===Script interface===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Lock files===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -f /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46069</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46069"/>
		<updated>2011-08-31T15:15:40Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===One Click installation===&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
===Manual installation===&lt;br /&gt;
Alternatively you can install manually:&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
&lt;br /&gt;
===Step-by-step guide===&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar===&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
===Script interface===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Lock files===&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -f /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lock files&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46051</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46051"/>
		<updated>2011-08-31T13:09:29Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==One Click installation==&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
==Manual installation==&lt;br /&gt;
Alternatively you can install manually:&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
1. Script interface&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Lock files&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -f /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46045</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=46045"/>
		<updated>2011-08-31T13:08:04Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
==One Click installation==&lt;br /&gt;
&lt;br /&gt;
The easiest way is to install Amahi Energy Saver via the Amahi One Click installation. Please see here: http://www.amahi.org/apps/amahi-energy-saver&lt;br /&gt;
&lt;br /&gt;
==Manual installation==&lt;br /&gt;
Alternatively you can install manually:&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
* Initial installation&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MythTV integration (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Before Amahi Energy Saver suspends the HDA, it checks with MythTV server if any recordings are scheduled and if so sets the wake up timer accordingly. If the recording folder is one of the shares, it is ensured that Amahi Energy saver will not suspend the HDA while a recording is ongoing.&lt;br /&gt;
&lt;br /&gt;
Please note that MythTV installation itself is non-trivial. The above assumes that MythTV is correctly installed and working.&lt;br /&gt;
&lt;br /&gt;
==Let other apps control Amahi Energy Saver (version 0.8.12 and later)==&lt;br /&gt;
&lt;br /&gt;
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. There are two simple interfaces to achieve that.&lt;br /&gt;
&lt;br /&gt;
1. Script interface&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for scripts and executes them. If any of the scripts returns an errorlevel of 1, the HDA will not be suspended. Both Bash (*.sh) and Ruby (*.rb) are supported.&lt;br /&gt;
&lt;br /&gt;
The scripts can be extremely simple. In pseudocode a script looks like this:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
if (condition)&lt;br /&gt;
  exit 1&lt;br /&gt;
else&lt;br /&gt;
  exit 0&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Lock files&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly checks the directory /usr/share/aes-lock for files with suffix '.lock'. As long as any such file exists, Amahi Energy Saver will not suspend the HDA. This is useful for other applications that support events. One Event may trigger the creation of the lock file, and another one may delete the lock file.&lt;br /&gt;
&lt;br /&gt;
E.g., the event that shall cause the HDA to stay awake no matter what can call &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=touch /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
When the job is finished, the respective event should call&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=rm -r /usr/share/aes-lock/some.lock}}&lt;br /&gt;
&lt;br /&gt;
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. &lt;br /&gt;
&lt;br /&gt;
* From version 0.8.12 onwards, the log files have been moved to /var/log.&lt;br /&gt;
&lt;br /&gt;
In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by double clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=43813</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=43813"/>
		<updated>2011-08-09T19:24:09Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Depending on the version installed the logs are located in /usr/share/aes or /var/hda/web-apps/html/aes/lib. In any case the files are named named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below (note that the directory may have to be adjusted, see above):&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Turning_off_DNS&amp;diff=43387</id>
		<title>Turning off DNS</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Turning_off_DNS&amp;diff=43387"/>
		<updated>2011-08-08T08:27:52Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Created page with &amp;quot;The DNS server in the HDA can be stopped by doing this:  First turn on Advanced Settings, under Setup --&amp;gt; Settings Then go to the Settings --&amp;gt; Servers Once there, find the DNS Se...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The DNS server in the HDA can be stopped by doing this:&lt;br /&gt;
&lt;br /&gt;
First turn on Advanced Settings, under Setup --&amp;gt; Settings&lt;br /&gt;
Then go to the Settings --&amp;gt; Servers&lt;br /&gt;
Once there, find the DNS Server and unselect both &amp;quot;Watchdog. DNS Server is being monitored 24x7&amp;quot; and &amp;quot;Start at Boot time&amp;quot;&lt;br /&gt;
Then stop it. It will be stopped forever.&lt;br /&gt;
&lt;br /&gt;
== How to still use nice URLs like http://hda ==&lt;br /&gt;
To achieve this, hosts files have to be edited. The hosts file is a local text file which defines fixed relation between URLs and IP addresses on the LAN. Eaxact location is depending on Operation System, you can easily find the location on many sources on the internet. In principle, each line on the hosts file relates one or more host names to one IP address. All we have to do is let the nice short names point to the HDA.&lt;br /&gt;
&lt;br /&gt;
There are two alternatives to do this:&lt;br /&gt;
&lt;br /&gt;
1. Edit the hosts file on each indidiual client&lt;br /&gt;
&lt;br /&gt;
Here is an example for a Windows 7 client hosts file. For this OS the file is located at c:\windows\system32\drivers\etc\hosts. Note that 192.168.0.3 is the IP address of the HDA.&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
# Copyright (c) 1993-2009 Microsoft Corp.&lt;br /&gt;
#&lt;br /&gt;
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.&lt;br /&gt;
#&lt;br /&gt;
# This file contains the mappings of IP addresses to host names. Each&lt;br /&gt;
# entry should be kept on an individual line. The IP address should&lt;br /&gt;
# be placed in the first column followed by the corresponding host name.&lt;br /&gt;
# The IP address and the host name should be separated by at least one&lt;br /&gt;
# space.&lt;br /&gt;
#&lt;br /&gt;
# Additionally, comments (such as these) may be inserted on individual&lt;br /&gt;
# lines or following the machine name denoted by a '#' symbol.&lt;br /&gt;
#&lt;br /&gt;
# For example:&lt;br /&gt;
#&lt;br /&gt;
#      102.54.94.97     rhino.acme.com          # source server&lt;br /&gt;
#       38.25.63.10     x.acme.com              # x client host&lt;br /&gt;
&lt;br /&gt;
# localhost name resolution is handled within DNS itself.&lt;br /&gt;
#	127.0.0.1       localhost&lt;br /&gt;
#	::1             localhost&lt;br /&gt;
&lt;br /&gt;
192.168.0.3 hda&lt;br /&gt;
192.168.0.3 squeeze.home.com squeeze&lt;br /&gt;
192.168.0.3 calendar.home.com calendar&lt;br /&gt;
192.168.0.3 jinzora.home.com jinzora&lt;br /&gt;
192.168.0.3 aes.home.com aes&lt;br /&gt;
192.168.0.3 loganalyzer.home.com loganalyzer&lt;br /&gt;
192.168.0.3 mythtv.home.com mythtv&lt;br /&gt;
192.168.0.15 router&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Edit the hosts file on the machine providing DNS services, e.g a router. For example, this is the hosts file from a Linux router located at /etc/hosts. In this example, both the shortname and shortname.home.com point to the HDA Note that 192.168.0.3 is the IP address of the HDA and 192.168.0.15 is the address of the router:&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
192.168.0.3 hda&lt;br /&gt;
192.168.0.3 squeeze.home.com squeeze&lt;br /&gt;
192.168.0.3 calendar.home.com calendar&lt;br /&gt;
192.168.0.3 jinzora.home.com jinzora&lt;br /&gt;
192.168.0.3 aes.home.com aes&lt;br /&gt;
192.168.0.3 loganalyzer.home.com loganalyzer&lt;br /&gt;
192.168.0.3 mythtv.home.com mythtv&lt;br /&gt;
192.168.0.15 router&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Talk:Intro&amp;diff=43039</id>
		<title>Talk:Intro</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Talk:Intro&amp;diff=43039"/>
		<updated>2011-07-17T12:54:43Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Created page with &amp;quot;Let's see if anyone reads Wiki Discussions at all....  I don't fully support the second part of first bullet &amp;quot;It is meant to be headless, and running 24x7.&amp;quot; I think this may actu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Let's see if anyone reads Wiki Discussions at all....&lt;br /&gt;
&lt;br /&gt;
I don't fully support the second part of first bullet &amp;quot;It is meant to be headless, and running 24x7.&amp;quot; I think this may actually scare off people if they think they *have to* let the HDA run all the time. Instead it's very well possible to power down the HDA when not needed.&lt;br /&gt;
&lt;br /&gt;
/jayrock&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=42517</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=42517"/>
		<updated>2011-07-06T13:55:19Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Example: Set up Mozilla Sunbird for use with Amahi Energy Saver calendar&lt;br /&gt;
&lt;br /&gt;
The following description was created based on Sunbird 1.0b1 running on Windows 7.&lt;br /&gt;
&lt;br /&gt;
In Sunbird, select &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Connect to remote calendar...&amp;quot;&lt;br /&gt;
A dialog shows up. Choose &amp;quot;On the network&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_1.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. Choose &amp;quot;iCalendar (ICS)&amp;quot; in the dialog and type &amp;quot;http://calendar/aes.ics&amp;quot; in the Location field.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_2.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot;. In the following dialog you may deselect the checkbox &amp;quot;Show Alarms&amp;quot;, though it's not neccessary for Amahi Energy Saver to work.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Next&amp;quot; then &amp;quot;Finish&amp;quot;. You will notice an exclamation mark next to the calendar on the right tab. &lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click the calendar, select &amp;quot;Properties&amp;quot; and make sure &amp;quot;Read Only&amp;quot; is deselected.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_5.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished. Below is an example screenshot with a task defined on 2011-07-06 2:30-3:00 and another one 4:30-5:30. In the example, the HDA will not go to sleep during these periods, and will wake up if it is suspended.&lt;br /&gt;
&lt;br /&gt;
[[Image:AES_Sunbird_6.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_6.jpg&amp;diff=42511</id>
		<title>File:AES Sunbird 6.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_6.jpg&amp;diff=42511"/>
		<updated>2011-07-06T13:14:32Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_5.jpg&amp;diff=42505</id>
		<title>File:AES Sunbird 5.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_5.jpg&amp;diff=42505"/>
		<updated>2011-07-06T13:14:17Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_4.jpg&amp;diff=42499</id>
		<title>File:AES Sunbird 4.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_4.jpg&amp;diff=42499"/>
		<updated>2011-07-06T13:14:04Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_3.jpg&amp;diff=42493</id>
		<title>File:AES Sunbird 3.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_3.jpg&amp;diff=42493"/>
		<updated>2011-07-06T13:13:52Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_2.jpg&amp;diff=42487</id>
		<title>File:AES Sunbird 2.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_2.jpg&amp;diff=42487"/>
		<updated>2011-07-06T13:13:40Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AES_Sunbird_1.jpg&amp;diff=42481</id>
		<title>File:AES Sunbird 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AES_Sunbird_1.jpg&amp;diff=42481"/>
		<updated>2011-07-06T13:11:22Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot to illustrate how to set up Mozilla Sunbird client for use with Amahi Energy Saver&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41971</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41971"/>
		<updated>2011-06-15T12:34:49Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41965</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41965"/>
		<updated>2011-06-15T12:33:39Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Corrected some typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Saver logs in in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Saver logs as shown in the screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41959</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41959"/>
		<updated>2011-06-15T12:29:48Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: format fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: &amp;lt;br&amp;gt;http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs and LogAnalyzer==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
In order to view the Amahi Energy Safer logs in in the LogAnalyzer (ref. http://www.amahi.org/apps/loganalyzer) navigate on your LogAnalyzer homepage to &amp;quot;Admin Center&amp;quot; then &amp;quot;Sources&amp;quot; and finally klick &amp;quot;Add new Source&amp;quot;. Configure the new source for the Energy Safer logs as shown in the screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client for Wake on LAN==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mac OS X clients for Wake on LAN==&lt;br /&gt;
&lt;br /&gt;
There exist a few solutions (WOL clients) to wake up your HDA from a Mac OS X computer. In order to wake up your HDA while booting your Mac you may use  NASwake (ref. http://trick77.com/2010/12/22/wake-nas-at-boot-time-wake-on-lan-wol/). It comes ready to use as an installable package, you just need to enter the MAC-adress of the HDA.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
WakeOnLan is a freeware application provided by Readpixel which offers a very comfortable way to wake up your HDA directly from your Mac OS X desktop (ref. http://www.readpixel.com/wakeonlan/index.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41695</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41695"/>
		<updated>2011-06-05T19:59:47Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd installfiles&lt;br /&gt;
}}&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41671</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41671"/>
		<updated>2011-06-03T06:29:20Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar function one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./installfiles/aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41665</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41665"/>
		<updated>2011-06-03T06:26:59Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This application tells your Amahi server to suspend or power off when its services are not needed.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./installfiles/aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41563</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41563"/>
		<updated>2011-05-27T18:55:46Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This is in solid beta stage. Installation requires a little Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
If you like it, like it on facebook: http://www.facebook.com/pages/Amahi-Energy-Saver/218015224890441?sk=wall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./installfiles/aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. When the installation is finished, reboot the computer. The config app is accessible at&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
http://hda:6500&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. In the config app, select ical in the Calendar field.&lt;br /&gt;
&lt;br /&gt;
2. Hit the &amp;quot;Apply button in the config app&lt;br /&gt;
&lt;br /&gt;
3. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
4. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Deactivated&lt;br /&gt;
Amahi Energy Saver is running in the background, however it will never shutdown or suspend the HDA.&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
==OBSELETE: Command Line Interface==&lt;br /&gt;
*Note: Root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=WOL&amp;diff=37567</id>
		<title>WOL</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=WOL&amp;diff=37567"/>
		<updated>2011-03-24T12:40:50Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Wake-on-LAN is a standard that allows a computer to be turned on or woken up by a network message called &amp;quot;Magic Packet&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Amahi supports waking up devices that have a dynamic or statis DHCP leases in your network, under Setup &amp;gt; Networking. &lt;br /&gt;
&lt;br /&gt;
These devices some times come with WOL enable. In many PCs, they need to be setup properly by enabling WakeOnLan in their BIOS. This setting has quite a few names in BIOS's out there. Here's a couple of them &amp;lt;small&amp;gt;(find the one you need in the user manual of your motherboard/system)&amp;lt;/small&amp;gt;:&lt;br /&gt;
* MAC Resume From S3/S4&lt;br /&gt;
* MACPME Power Up Control&lt;br /&gt;
* Power On By Onboard LAN&lt;br /&gt;
* Power Up By Onboard LAN&lt;br /&gt;
* Resume by LAN&lt;br /&gt;
* Resume By WOL&lt;br /&gt;
* Resume on LAN&lt;br /&gt;
* Resume on LAN/PME#&lt;br /&gt;
* Wake on LAN from S5&lt;br /&gt;
* Wake Up On LAN&lt;br /&gt;
* WakeUp by Onboard LAN&lt;br /&gt;
* WOL (PME#) From Soft-Off&lt;br /&gt;
&lt;br /&gt;
To try it, go to Setup &amp;gt; Networking &amp;gt; Static IPs and unfold the row for the device that you want to wake up.&lt;br /&gt;
&lt;br /&gt;
More information on [http://en.wikipedia.org/wiki/Wake-on-LAN Wake on LAN and how it works ...]&lt;br /&gt;
&lt;br /&gt;
If you're trying to wake a remote Linux system, and it's not working, try executing this command on the remote Linux client:&lt;br /&gt;
{{Code|ethtool -s eth0 wol g}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
A more detailed description of how to enable WOL is given here:&lt;br /&gt;
http://wiki.amahi.org/index.php/Enabling_WOL&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34555</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34555"/>
		<updated>2011-02-24T10:25:58Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}} &lt;br /&gt;
and run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
to show and select to add any currently active network host to the list of monitored hosts. Run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes start&lt;br /&gt;
}}&lt;br /&gt;
to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
chkconfig aes on&lt;br /&gt;
}}&lt;br /&gt;
to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
su&lt;br /&gt;
}}&lt;br /&gt;
and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --calendar ical&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4b. To be sure, restart the service by typing &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes restart&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Only required for 0.3.6 and below: Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34549</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34549"/>
		<updated>2011-02-24T10:24:18Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}} &lt;br /&gt;
and run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
to show and select to add any currently active network host to the list of monitored hosts. Run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes start&lt;br /&gt;
}}&lt;br /&gt;
to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
chkconfig aes on&lt;br /&gt;
}}&lt;br /&gt;
to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
su&lt;br /&gt;
}}&lt;br /&gt;
and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --calendar ical&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4b. To be sure, restart the service by typing &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes restart&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Only required for 0.3.6 and below: Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_off&amp;quot;). Values given in Watts. pc_on must be greater than pc_off.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34531</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=34531"/>
		<updated>2011-02-23T19:11:42Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}} &lt;br /&gt;
and run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
to show and select to add any currently active network host to the list of monitored hosts. Run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes start&lt;br /&gt;
}}&lt;br /&gt;
to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
chkconfig aes on&lt;br /&gt;
}}&lt;br /&gt;
to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
su&lt;br /&gt;
}}&lt;br /&gt;
and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --calendar ical&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4b. To be sure, restart the service by typing &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes restart&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Only required for 0.3.6 and below: Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33847</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33847"/>
		<updated>2011-02-13T20:49:10Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;lt;code&amp;gt;cd /usr/share/aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Type &amp;lt;code&amp;gt;./aes --calendar ical&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4b. To be sure, restart the service by typing &amp;lt;code&amp;gt;service aes restart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Only required for 0.3.6 and below: Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar [off|internal|ical|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &amp;lt;code&amp;gt;./aes.rb --calendar calendar&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current entries of the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --interval&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33823</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33823"/>
		<updated>2011-02-13T09:36:49Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;lt;code&amp;gt;cd /usr/share/aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Type &amp;lt;code&amp;gt;./aes --calendar ical&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Now, open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar [off|internal|ical|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &amp;lt;code&amp;gt;./aes.rb --calendar calendar&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current entries of the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --interval&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33817</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33817"/>
		<updated>2011-02-13T09:35:51Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;lt;code&amp;gt;cd /usr/share/aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Type &amp;lt;code&amp;gt;./aes --calendar ical&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Now, open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar [off|internal|ical|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &amp;lt;code&amp;gt;./aes.rb --calendar calendar&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current entries of the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --interval&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33805</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=33805"/>
		<updated>2011-02-13T09:15:48Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;lt;code&amp;gt;cd /usr/share/aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Type &amp;lt;code&amp;gt;./aes --calendar ical&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Now, open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar [off|internal|ical|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &amp;lt;code&amp;gt;./aes.rb --calendar calendar&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current entries of the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --interval&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:Amahi-Energy-Saver_Logo.png&amp;diff=33799</id>
		<title>File:Amahi-Energy-Saver Logo.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:Amahi-Energy-Saver_Logo.png&amp;diff=33799"/>
		<updated>2011-02-13T09:12:23Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31897</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31897"/>
		<updated>2011-01-30T14:28:33Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;lt;code&amp;gt;cd /usr/share/aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Type &amp;lt;code&amp;gt;./aes --calendar ical&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Now, open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar [off|internal|ical|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &amp;lt;code&amp;gt;./aes.rb --calendar calendar&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current entries of the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --interval&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
aes checks regularly if the system can be suspended or shut down.  This parameter specifies the time in seconds between two such checks. Normally should be left untouched.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31819</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31819"/>
		<updated>2011-01-27T16:34:49Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Benchmarking&amp;diff=31291</id>
		<title>Benchmarking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Benchmarking&amp;diff=31291"/>
		<updated>2011-01-23T08:32:04Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Area for Amahi Benchmarking&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
&lt;br /&gt;
* [http://software.intel.com/en-us/articles/intel-nas-performance-toolkit/ Intel NAS Performance Toolkit]&lt;br /&gt;
* [http://www.808.dk/?code-csharp-nas-performance NAS Performance Tester (C#)]&lt;br /&gt;
* [ftp://samba.org/pub/tridge/dbench/README SAMBA README]&lt;br /&gt;
&lt;br /&gt;
Some pointers in this [http://software.intel.com/en-us/articles/windows-client-cifs-behavior-can-slow-linux-nas-performance/ Windows/Linux File Sharing performance]&lt;br /&gt;
&lt;br /&gt;
= Tips and Ideas =&lt;br /&gt;
What I'd like to see in such testing would be at least:&lt;br /&gt;
# Network conditions (e.g. &amp;quot;this script has detected a connection of 1Gbit with Jumbo Frames capability&amp;quot;)&lt;br /&gt;
# Testing for transferring a few thousand small files, as well as sustained throughput of a large file&lt;br /&gt;
# In order to understand the performance impact of filesystem: (i) A reference filesystem which works on many different platforms such as Linux and Windows - suggestion is NTFS. (ii) The platform optimum file system.&lt;br /&gt;
# System Spec, eg. Motherboard, CPU, HDDs, HDD configuration in BIOS such as AHCI&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Benchmarking&amp;diff=31285</id>
		<title>Benchmarking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Benchmarking&amp;diff=31285"/>
		<updated>2011-01-23T08:26:51Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Area for Amahi Benchmarking&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
&lt;br /&gt;
* [http://software.intel.com/en-us/articles/intel-nas-performance-toolkit/ Intel NAS Performance Toolkit]&lt;br /&gt;
* [http://www.808.dk/?code-csharp-nas-performance NAS Performance Tester (C#)]&lt;br /&gt;
* [ftp://samba.org/pub/tridge/dbench/README SAMBA README]&lt;br /&gt;
&lt;br /&gt;
Some pointers in this [http://software.intel.com/en-us/articles/windows-client-cifs-behavior-can-slow-linux-nas-performance/ Windows/Linux File Sharing performance]&lt;br /&gt;
&lt;br /&gt;
= Tips and Ideas =&lt;br /&gt;
What I'd like to see in such testing would be at least:&lt;br /&gt;
# Network conditions (e.g. &amp;quot;this script has detected a connection of 1Gbit with Jumbo Frames capability&amp;quot;)&lt;br /&gt;
# Testing for transferring a few thousand small files, as well as sustained throughput of a large file&lt;br /&gt;
# In order to understand the performance impact of filesystem: (i) A reference filesystem which works on many different platforms such as Linux and Windows - suggestion is NTFS. (ii) The platform optimum file system.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31111</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=31111"/>
		<updated>2011-01-20T08:20:42Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=30655</id>
		<title>Enabling WOL</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=30655"/>
		<updated>2011-01-18T20:32:04Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To enable Wake-On-Lan (WOL) on your hda:&lt;br /&gt;
&lt;br /&gt;
1. Enable WOL in the BIOS&lt;br /&gt;
&lt;br /&gt;
2. Boot Fedora. Open a terminal and execute &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; to get root access&lt;br /&gt;
&lt;br /&gt;
3. Assuming your LAN interface is on eth0, run &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output will look similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[root@localhost ~]# ethtool eth0&amp;lt;br&amp;gt;&lt;br /&gt;
Settings for eth0:&amp;lt;br&amp;gt;&lt;br /&gt;
	Supported ports: [ TP MII ]&amp;lt;br&amp;gt;&lt;br /&gt;
	Supported link modes:   10baseT/Half 10baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        100baseT/Half 100baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	Supports auto-negotiation: Yes&amp;lt;br&amp;gt;&lt;br /&gt;
	Advertised link modes:  10baseT/Half 10baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        100baseT/Half 100baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	Advertised auto-negotiation: Yes&amp;lt;br&amp;gt;&lt;br /&gt;
	Speed: 1000Mb/s&amp;lt;br&amp;gt;&lt;br /&gt;
	Duplex: Full&amp;lt;br&amp;gt;&lt;br /&gt;
	Port: MII&amp;lt;br&amp;gt;&lt;br /&gt;
	PHYAD: 0&amp;lt;br&amp;gt;&lt;br /&gt;
	Transceiver: internal&amp;lt;br&amp;gt;&lt;br /&gt;
	Auto-negotiation: on&amp;lt;br&amp;gt;&lt;br /&gt;
	Supports Wake-on: pumbg&amp;lt;br&amp;gt;&lt;br /&gt;
	Wake-on: g&amp;lt;br&amp;gt;&lt;br /&gt;
	Current message level: 0x00000033 (51)&amp;lt;br&amp;gt;&lt;br /&gt;
	Link detected: yes&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Look for a line similar to this:  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Wake-on: g&amp;lt;/code&amp;gt;&lt;br /&gt;
This means that WOL by magic packets is enabled on that interface.&lt;br /&gt;
&lt;br /&gt;
If the line is&lt;br /&gt;
&amp;lt;code&amp;gt;Wake-on: d&amp;lt;/code&amp;gt;&lt;br /&gt;
then WOL is disabled. Activate it by running &amp;lt;code&amp;gt;ethtool -s eth1 wol g&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't find any line containing Wake-on at all, then your interface card doesn't support WOL, or the OS cannot detect it.&lt;br /&gt;
&lt;br /&gt;
Check the ethtool man pages for a full explanation of the Wake-on options&lt;br /&gt;
&lt;br /&gt;
*  Note: Some legacy drivers forget the setting during boot. Run  &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt; again if you suspect this is the case&lt;br /&gt;
&lt;br /&gt;
* Reference: See this link http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_wol for a general explanation of WOL.&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=30649</id>
		<title>Enabling WOL</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=30649"/>
		<updated>2011-01-18T20:30:29Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: Created page with &amp;quot;To enable Wake-On-Lan (WOL) on your hda:  1. Open a terminal and execute &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; to get root access  2. Assuming your LAN interface is on eth0, run &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/co...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To enable Wake-On-Lan (WOL) on your hda:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and execute &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; to get root access&lt;br /&gt;
&lt;br /&gt;
2. Assuming your LAN interface is on eth0, run &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output will look similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[root@localhost ~]# ethtool eth0&amp;lt;br&amp;gt;&lt;br /&gt;
Settings for eth0:&amp;lt;br&amp;gt;&lt;br /&gt;
	Supported ports: [ TP MII ]&amp;lt;br&amp;gt;&lt;br /&gt;
	Supported link modes:   10baseT/Half 10baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        100baseT/Half 100baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	Supports auto-negotiation: Yes&amp;lt;br&amp;gt;&lt;br /&gt;
	Advertised link modes:  10baseT/Half 10baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        100baseT/Half 100baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full &amp;lt;br&amp;gt;&lt;br /&gt;
	Advertised auto-negotiation: Yes&amp;lt;br&amp;gt;&lt;br /&gt;
	Speed: 1000Mb/s&amp;lt;br&amp;gt;&lt;br /&gt;
	Duplex: Full&amp;lt;br&amp;gt;&lt;br /&gt;
	Port: MII&amp;lt;br&amp;gt;&lt;br /&gt;
	PHYAD: 0&amp;lt;br&amp;gt;&lt;br /&gt;
	Transceiver: internal&amp;lt;br&amp;gt;&lt;br /&gt;
	Auto-negotiation: on&amp;lt;br&amp;gt;&lt;br /&gt;
	Supports Wake-on: pumbg&amp;lt;br&amp;gt;&lt;br /&gt;
	Wake-on: g&amp;lt;br&amp;gt;&lt;br /&gt;
	Current message level: 0x00000033 (51)&amp;lt;br&amp;gt;&lt;br /&gt;
	Link detected: yes&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Look for a line similar to this:  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Wake-on: g&amp;lt;/code&amp;gt;&lt;br /&gt;
This means that WOL by magic packets is enabled on that interface.&lt;br /&gt;
&lt;br /&gt;
If the line is&lt;br /&gt;
&amp;lt;code&amp;gt;Wake-on: d&amp;lt;/code&amp;gt;&lt;br /&gt;
then WOL is disabled. Activate it by running &amp;lt;code&amp;gt;ethtool -s eth1 wol g&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't find any line containing Wake-on at all, then your interface card doesn't support WOL, or the OS cannot detect it.&lt;br /&gt;
&lt;br /&gt;
Check the ethtool man pages for a full explanation of the Wake-on options&lt;br /&gt;
&lt;br /&gt;
*  Note: Some legacy drivers forget the setting during boot. Run  &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt; again if you suspect this is the case&lt;br /&gt;
&lt;br /&gt;
* Reference: See this link http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_wol for a general explanation of WOL.&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30277</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30277"/>
		<updated>2011-01-16T21:51:49Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30271</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30271"/>
		<updated>2011-01-16T21:50:58Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30265</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=30265"/>
		<updated>2011-01-16T20:52:53Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/share/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29707</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29707"/>
		<updated>2011-01-11T21:19:18Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in most cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.0/24&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29695</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29695"/>
		<updated>2011-01-11T13:33:59Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root priviledges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting of aes. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29689</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29689"/>
		<updated>2011-01-11T13:16:00Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29557</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29557"/>
		<updated>2011-01-09T18:36:39Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also scans shares. As long as shares are accessed, the server does not suspends. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Sqeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29551</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29551"/>
		<updated>2011-01-09T18:25:18Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also scans shares. As long as shares are accessed, the server does not suspends. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Sqeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig --add aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29509</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29509"/>
		<updated>2011-01-08T19:12:09Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also scans shares. As long as shares are accessed, the server does not suspends. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Sqeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig --add aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
5. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29497</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29497"/>
		<updated>2011-01-08T18:40:23Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's is good enough. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients. If no client is connected, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also scans shares. As long as shares are accessed, the server does not suspends. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Sqeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
One can also define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig --add aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
5. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29491</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=29491"/>
		<updated>2011-01-08T18:34:28Z</updated>

		<summary type="html">&lt;p&gt;Jayrock: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
&lt;br /&gt;
This project is in alpha stage. It runs fine on my machine, however I need more feedback from the community to be sure that it's is good enough. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with &amp;lt;code&amp;gt;tar -zxf filename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &amp;lt;code&amp;gt;./aes-install.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. As root, run &amp;lt;code&amp;gt;service aes start&amp;lt;/code&amp;gt; to start the service, and &amp;lt;code&amp;gt;chkconfig --add aes on&amp;lt;/code&amp;gt; to make the service start on boot. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it.&lt;br /&gt;
&lt;br /&gt;
5. Navigate to &amp;lt;code&amp;gt;/usr/bin/aes&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt; to show and select to add any currently active network host to the list of monitored hosts. Run &amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt; to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log.*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently, you need to be root and navigate to /usr/share/aes to use the CLI correctly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showmonitoredhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shownetworkhosts&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addhost macadress&amp;lt;/code&amp;gt;&lt;br /&gt;
Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is 12:34:56:78:90:ab&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --showcalendar&amp;lt;/code&amp;gt;&lt;br /&gt;
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --addcalendar startdate starttime stopdate stoptime&amp;lt;/code&amp;gt;&lt;br /&gt;
Use this command to add an entry to the calendar. Format of stardate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver --addcalendar 2010-12-20 15:00 2010-12-20 16:00 will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --shutdowntype&amp;lt;/code&amp;gt;&lt;br /&gt;
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs [on|off|debug]&amp;lt;/code&amp;gt;&lt;br /&gt;
--sbs alone shows the current setting of aes. The parameters on and of switch monitoring of Squeezeboxserver on or off, respectively. The debug option displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --help&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Set port if required, the default &amp;quot;9&amp;quot; should work in mos cases. Set &amp;quot;Subnet LAN&amp;quot; to your subnet, the default value should work if you network is configured as 192.168.0.&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again and restart the program according to 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jayrock</name></author>
		
	</entry>
</feed>