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