From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Generic hotkey driver for dock ejecting Date: Fri, 26 Aug 2005 16:25:48 +0100 Message-ID: <20050826152548.GA12991@srcf.ucam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org I'm playing with a Dell Latitude D610. By doing echo "0:\\_SB.PCI0.PCIE.GDCK::\\SB_PCI0.PCIE.GDCK::0:0" >/proc/hotkey/event_config I can get an event when I push the eject request button on the dock. I guess the appropriate thing to do in response to this is to call the dock's eject method (the dock appears to be \_SB.PCI0.PCIE.GDCK, which has _EJ0, _EJ3 and _EJ4 methods). How do I go about this? -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf