Comment 2 for bug 194609

Revision history for this message
Jerone Young (jerone) wrote :

This patch is bad. You should not call a command but allow userspace to call the command. Here is a much better patch to solve this issue. It was derived from here:

http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.10_(Gutsy_Gibbon)_on_a_ThinkPad_R61

I tested this on my Thinkpad T61 under Gutsy, and it works!

Signed-off-by: Jerone Young <email address hidden>

diff --git a/events/lenovo-eject b/events/lenovo-eject
new file mode 100644
--- /dev/null
+++ b/events/lenovo-eject
@@ -0,0 +1,6 @@
+# /etc/acpi/events/lenovo-eject
+# This is called when the user presses the eject button
+# /etc/acpi/ejectbtn.sh to fake the key input
+
+event=ibm/hotkey HKEY 00000080 00001009
+action=/etc/acpi/ejectbtn.sh