From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: Generic hotkey driver for dock ejecting Date: Sun, 28 Aug 2005 00:55:47 +0100 Message-ID: <20050827235547.GA18990@srcf.ucam.org> References: <3ACA40606221794F80A5670F0AF15F84041AC202@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <3ACA40606221794F80A5670F0AF15F84041AC202@pdsmsx403> 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: "Yu, Luming" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Sat, Aug 27, 2005 at 10:43:14PM +0800, Yu, Luming wrote: > I think you need to find out the event number generated when pushing > button. > I call it external_event_num. And you need assign a interal_event_num > for it. I'm sorry, but I'm not quite sure what you mean by the event number. Is this one of the numbers generated by the event? > You can invoke _Ejxx by > > echo "internal_event_num:0:1:0" > /proc/acp/hotkey/action How do I pass an argument to the method? By the looks of it, when undocking the _DCK method should be called, followed by an _EJx method. Can I call multiple methods in response to a single event? It might actually be nice to have an interface that allows userspace to call arbitrary ACPI methods at any time, rather than simply in response to hotkey events. -- 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