From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mauro Carvalho Chehab Subject: Re: ir-core and default IR maps Date: Tue, 09 Nov 2010 08:21:34 -0200 Message-ID: <4CD920AE.8090406@redhat.com> References: <20101107060147.GC3823@core.coreip.homeip.net> <4CD7F6A7.8040206@redhat.com> <4CD805D8.2000808@redhat.com> <20101109063242.GA10496@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35529 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755025Ab0KIKVq (ORCPT ); Tue, 9 Nov 2010 05:21:46 -0500 In-Reply-To: <20101109063242.GA10496@core.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: "jonsmirl@gmail.com" , Linux Input , Jiri Kosina , Jarod Wilson Em 09-11-2010 04:32, Dmitry Torokhov escreveu: > On Mon, Nov 08, 2010 at 12:14:48PM -0200, Mauro Carvalho Chehab wrote: >> Em 08-11-2010 11:41, jonsmirl@gmail.com escreveu: >>> On Mon, Nov 8, 2010 at 8:34 AM, jonsmirl@gmail.com wrote: >>>> To achieve plug and play at least one of four choices has to happen: >>> >>> There is another option, the IR maps get integrated into user space >>> keyboard mapping package. This may be possible with the new >>> libxkbcommon package. >> >> That seems interesting. >> > > I disagree here. libxkbcommon provides X interface while applications > might want to access evdev nodes directly. Let me express better: I don't think we should integrate X with the udev tool, but, eventually, we could make some X package dependent of v4l-utils. Not sure if libxkbdcommon is the better way to do it, as I don't have it installed here on my machines. > If anything, parts of > ir-utils dealing with keymap selection should be moved into udev. Maybe > we should split utilities that select protocol from the keymap setting > and use udev keymap utilities to do the task. It doesn't make sense to split keymap and protocol selection. Just loading a keyboard table but not changing the IR protocol is useless, as the device will not be selected. Besides that, the tool that do both is really simple (and, btw, it also allows changing the map for a non-RC device, by using one parameter that skips the usage of the sysfs nodes at /sys/class/rc): # ir-keytable -d /dev/input/event4 -r scancode 0x0000 = KEY_LEFTCTRL (0x1d) Enabled protocols: Cheers, Mauro