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 PROTECTED]>

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

-- 
[patch] add support for the ACPI eject hotkey on Lenovo laptops
https://bugs.launchpad.net/bugs/194609
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to