The Acer 1825 has a special Button for recovery purpose (in windows) above the ESC Key to use this button for a arbitrary script following steps are necessary (in general it is the same procedure like shown in this post http://www.ceh-photo.de/blog/?p=200):
to rc.local (e.g.
If you want to start or stop my gyro-auto-rotation script (http://www.ceh-photo.de/blog/?p=186) with this button use following script:
pid=$( pgrep gyro-auto-rotat )
if [ "$pid" == "" ] ;then
kill -9 $pid
You need to store this script under some name and give it execution rights with
If you are interested how you could figure out the keycode of this special key, you only need to check dmesg after pressing it (Thanks to Tomfrancart from ubuntuforums.org)