Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. From version 0.8.12 onwards this is possible via simple scripts. I have prepared two example scripts and I hope that these are inspriration for other community members to ingrate their favourite apps!
This thread collects all scripts that have been developed. To keep this one clean, please open a new thread if you have any support question.
Regards,
jayrock
Plug-ins for Amahi Energy Saver. No support questions here!!
Sabnzbd
This script tells AES to keep the HDA powered on as long as there are Sabnzbd downloads ongoing.
To install, please open a root terminal on your hda and type:
After that you have to set the Sabnzbd API key. This key is found in general page of the sabnzbd config. Open /usr/share/aes-lock/sabnzbd-lock.rb with your favourite editor and change the key in line 9 to your acutal key.
That's it.
To install, please open a root terminal on your hda and type:
Code: Select all
curl -o /usr/share/aes-lock/sabnzbd-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/sabnzbd-lock.rb
That's it.
Last edited by jayrock on Thu Sep 08, 2011 10:12 pm, edited 3 times in total.
Greyhole
This script tells AES to keep the HDA powered on as long as Greyhole is working on some task.
NOTE: Due to the developer it doesn't break anything if the HDA suspends while Greyhole is working. Unfinished tasks will be continued the next time regular Greyhole fsck runs. However, like myself, some people may find it nicer to have Greyhole finish any pending work prior to suspend.
To install, please open a root terminal on your hda and type:
That's it.
NOTE: Due to the developer it doesn't break anything if the HDA suspends while Greyhole is working. Unfinished tasks will be continued the next time regular Greyhole fsck runs. However, like myself, some people may find it nicer to have Greyhole finish any pending work prior to suspend.
To install, please open a root terminal on your hda and type:
Code: Select all
curl -o /usr/share/aes-lock/greyhole-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/greyhole-lock.rb
MythTV
This script tells AES to keep the HDA powered on as long as MythTV is recording something.
To install, please open a root terminal on your hda and type:
To install, please open a root terminal on your hda and type:
Code: Select all
curl -o /usr/share/aes-lock/greyhole-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/mythtv-lock.rb
Re: Plug-ins for Amahi Energy Saver. No support questions he
This script prevents the HDA from suspending if a HandBrake job is going on. Actually the script checks how much CPU is used by HandBrake. If it's more that 25%, the HDA does not suspend.
The script can be easily adapted to check for other processes. If you create any new script based on this (or any other script), please share it here.
To install, please open a root terminal on your hda and type:
The script can be easily adapted to check for other processes. If you create any new script based on this (or any other script), please share it here.
To install, please open a root terminal on your hda and type:
Code: Select all
curl -o /usr/share/aes-lock/HandBrake.sh http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/HandBrake.sh
chmod +x /usr/share/aes-lock/HandBrake.sh
Who is online
Users browsing this forum: No registered users and 62 guests