<?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=Amahivirtual</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=Amahivirtual"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Amahivirtual"/>
	<updated>2026-04-13T07:13:59Z</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=41899</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=41899"/>
		<updated>2011-06-13T19:57:31Z</updated>

		<summary type="html">&lt;p&gt;Amahivirtual: Added section to view AES Logs in the LogAnalyzer to &amp;quot;7. Logs&amp;quot;&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 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>Amahivirtual</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png&amp;diff=41893</id>
		<title>File:LogAnalyzer Config for Amahi Energy Safer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:LogAnalyzer_Config_for_Amahi_Energy_Safer.png&amp;diff=41893"/>
		<updated>2011-06-13T19:47:45Z</updated>

		<summary type="html">&lt;p&gt;Amahivirtual: Screenshot shows configuration of LogAnalyzer for viewing Amahi Energy Safer Logs.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot shows configuration of LogAnalyzer for viewing Amahi Energy Safer Logs.&lt;/div&gt;</summary>
		<author><name>Amahivirtual</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41785</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=41785"/>
		<updated>2011-06-10T13:24:27Z</updated>

		<summary type="html">&lt;p&gt;Amahivirtual: Rearranged chapters, put &amp;quot;obsolete&amp;quot; to the end of the page&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;
&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>Amahivirtual</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41773</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=41773"/>
		<updated>2011-06-09T14:18:29Z</updated>

		<summary type="html">&lt;p&gt;Amahivirtual: &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 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;/div&gt;</summary>
		<author><name>Amahivirtual</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=41767</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=41767"/>
		<updated>2011-06-09T14:16:55Z</updated>

		<summary type="html">&lt;p&gt;Amahivirtual: Added chapter for Mac OS X clients for Wake on LAN&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 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;/div&gt;</summary>
		<author><name>Amahivirtual</name></author>
		
	</entry>
</feed>