From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vojtech Pavlik Subject: Re: Re: [patch 1/1] thinkpad fn+fx key driver Date: Sat, 25 Sep 2004 19:55:02 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040925175500.GA1798@ucw.cz> References: <20040923112457.GB1083@ucw.cz> <20040924134118.GA467@openzaurus.ucw.cz> <20040924142248.GA2593@ucw.cz> <20040925112219.GC4039@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20040925112219.GC4039-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Pavel Machek Cc: "Brown, Len" , akpm-3NddpPZAyC0@public.gmane.org, erik-aH8aFkyL5XJBDgjK7y7TUQ@public.gmane.org, ACPI Developers List-Id: linux-acpi@vger.kernel.org On Sat, Sep 25, 2004 at 01:22:20PM +0200, Pavel Machek wrote: > > > Having vol+/vol- keys would be very welcome. This daemon would > > > have to understand scancodes for a lot of > > > different keyboards, but perhaps > > > that is easy enough to create incrementally. > > > > The Volume+ and Volume- keys are actually pretty standardized and the > > kernel recognizes them out of the box on 95% of machines. > > Hmm, yes, on my machines vol- generates ^[[26~, mute ^[[25~ and vol+ nothing. Have you tried evtest? It might be just a keymap issue. > > The daemon could but wouldn't have to take care of uploading the correct > > scancode->keycode tables to the kernel. > > Hmm, okay. > > Is it possible to have somehow get both keycodes and translated keys? > I guess I might want to define ctrl-alt-= as vol+ and ctrl-alt-- as > vol- for machines that do not have hardware keys. That's something to be handled in userspace. > Do you have example code using event interface, somewhere? Yes, the evtest source is a good example. It's in the inpututils RPM or in the linuxconsole.sf.net CVS. -- Vojtech Pavlik SuSE Labs, SuSE CR ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php