From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Deianov Subject: Re: ibm-acpi-0.1 Date: Fri, 13 Aug 2004 22:34:10 -0700 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040814053410.GN20883@aero.ensim.com> References: <20040810080826.GD28939@aero.ensim.com> <20040810231129.GN28939@aero.ensim.com> <20040810233238.GB16896@hell.org.pl> <20040811074717.GB965@hell.org.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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 On Wed, 11 Aug 2004 07:53:03 +0000 (UTC) Karol Kozimor wrote: > > It's still easier to do that from the notify handler and provide an > interface to enable / disable the specific bits at user request. By moving > it completely to userspace you add another layer of redirection which most > users won't need (as they don't give a damn about writing and configuring > glue scripts) as opposed to having your driver do as expected for most > non-developers. As I said, it's easy to come up with an interface to change > the default behaviour if anybody should wish so. Come to think of it, that interface already exists. Here is what the DSDT does for Fn-F5 (I slightly oversimplified in my previous message): if a particular bit is set in the mask if hot key events are enabled generate ACPI event else invoke default hot key behaviour This means that if the driver leaves the mask alone on insmod, the function keys will continue with their default behavior (e.g. Fn-F5 will toggle bluetooth, Fn-F7 will switch the screens, etc.). Once the mask is set to include the relevant bits, the default behavior is stopped and instead ACPI events are generated. Version 0.1 set the mask on insmod for convenience, but the plan is to not do that in 0.2. If you want hotkey events, after insmod you'll have to: echo enable > /proc/acpi/ibm/hotkey echo ffff > /proc/acpi/ibm/hotkey How's that? Boris ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285