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:
1 2 3 4 5 6 7 8 | #!/bin/bash pid=$( pgrep gyro-auto-rotat ) if [ "$pid" == "" ] ;then gyro-auto-rotate.run & else kill -9 $pid fi |
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)
[…] http://www.ceh-photo.de/blog/?p=244 […]
the line:
gyro-auto-rotate.run &
in your script must be:
gyro-auto-rotate.run
😉
rock & roll
B4ckBOne
you are quite right it must be gyro-auto-rotate.run & (terrible wordpress editor…)