Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:using_acpid_to_control_your_pc_buttons [2011/04/18 07:25] – external edit 127.0.0.1 | wiki:using_acpid_to_control_your_pc_buttons [2013/03/01 14:01] (current) – Update tinypoodle | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Using acpid to control your PC buttons===== | ||
1. Mount acpid.tcz | 1. Mount acpid.tcz | ||
- | 2. Create files / | + | 2. Create files '' |
- | 3. In / | + | 3. In '' |
< | < | ||
action=/ | action=/ | ||
Line 9: | Line 10: | ||
This code catches all events generated by acpid and passes them to gen.sh. | This code catches all events generated by acpid and passes them to gen.sh. | ||
- | 4. In gen.sh, write: | + | 4. In '' |
< | < | ||
case $1 in | case $1 in | ||
Line 20: | Line 21: | ||
" | " | ||
| | ||
- | - *) | + | # *) |
- | | + | # |
esac</ | esac</ | ||
The 4 keys are computer specific and only given as examples. | The 4 keys are computer specific and only given as examples. | ||
Line 39: | Line 40: | ||
Once you have everything you want, simply comment out the 2 lines of code before esac again. | Once you have everything you want, simply comment out the 2 lines of code before esac again. | ||
- | For more sleep command options, see the suspend.tcz extension and also the thread about it in tce 2.x news. | + | For more sleep command options, see the suspend-utils.tcz extension and also the thread about it in tce 2.x news. |
The above method is just one way to control buttons with acpid; there are many other ways of doing it; this way is convenient due to the ability to edit the actions file without having to re-initialise acpid each time. | The above method is just one way to control buttons with acpid; there are many other ways of doing it; this way is convenient due to the ability to edit the actions file without having to re-initialise acpid each time. |