From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [RFC][PATCH] Generic Hotkey driver interface Date: Tue, 09 Nov 2004 09:13:04 -0700 Message-ID: <1100016784.12984.7.camel@tdi> References: <3ACA40606221794F80A5670F0AF15F84041AC040@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3ACA40606221794F80A5670F0AF15F84041AC040@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: Borislav Deianov , Karol Kozimor , Hiroshi Miura , Julien Lerouge , "Brown, Len" , acpi-devel List-Id: linux-acpi@vger.kernel.org Luming, Have you considered trying to implement this as a userspace daemon on top of dev_acpi? I believe I'm exporting all the of the ACPI interfaces you'd need to do this. The acpivideo tool (available along w/ the latest dev_acpi) does something similar in setting up a notify handler on the graphics device, and receiving hotkey events. The hooks are already there to allow userspace to generate an ACPI event as well. I'd be interested in any feedback you have on dev_acpi should you investigate this approach. Thanks, Alex On Tue, 2004-11-09 at 23:25 +0800, Yu, Luming wrote: > To consolidate the hotkey implementation in ACPI subsystem, > I tried to implement a generic hotkey driver under ACPI. > I hope you can give it a review. Thanks in advances for any > comments. > > The basic idea is to supply configurable interface > to userspace, thus user can configure the generic > hotkey driver to work for their specific laptop model. > > Please note, the code is trying to prove the concept > is feasible. So there are large room to improve, including > bugs need to be fixed, redundant code need to be clean up, > critical section need to be protected by lock or semaphore, > memory leak need to be fix up, interfaces need to be revised. > > The code is inspired by Karol Kozimor, Borislav Deianov, > Hiroshi Miura, Julien Lerouge, Alex Williamson, and Len. > > Thanks, > Luming -- Alex Williamson HP Linux & Open Source Lab ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click