Message ID | 1283808373-27876-6-git-send-email-maximlevitsky@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-path: <mchehab@gaivota> Envelope-to: mchehab@gaivota Delivery-date: Mon, 06 Sep 2010 19:28:49 -0300 Received: from mchehab by gaivota with local (Exim 4.72) (envelope-from <mchehab@gaivota>) id 1OskBF-0000tF-Nu for mchehab@gaivota; Mon, 06 Sep 2010 19:28:49 -0300 Received: from bombadil.infradead.org [18.85.46.34] by gaivota with IMAP (fetchmail-6.3.17) for <mchehab@localhost> (single-drop); Mon, 06 Sep 2010 19:28:49 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OsjD4-0005s4-83; Mon, 06 Sep 2010 21:26:38 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755704Ab0IFV0f (ORCPT <rfc822; kmpark@infradead.org> + 1 other); Mon, 6 Sep 2010 17:26:35 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:33533 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755685Ab0IFV0d (ORCPT <rfc822; linux-media@vger.kernel.org>); Mon, 6 Sep 2010 17:26:33 -0400 Received: by fxm13 with SMTP id 13so2663031fxm.19 for <multiple recipients>; Mon, 06 Sep 2010 14:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=vQ9Jk1TkYPHYlvt6Tn0zFSEOsY2zrJ/7G0vl8wQCRtE=; b=iySLY0KkeQMW0NReKd0tz6PWTw3L8iQgt8tIfkYdXVOqRtGRt6gXMX7Zp5GuTHFJ8M 34EKVx+liTUVMq0UEhQhfhWNnoEEgJIBvNlBjanKkFA8Fn9BrdzdSR88BiCuO8Yan5Eu vn+kwxF5S8Ga5R2Lv5lNJdWC9o1UJL/KlHyHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=mAf0rQ6gj7JT8l6nHtNR3PGSLp2+6R2SXX2nKqMODx7xgz+GNd+H4tbY21WQKu5vjc 3Cmkxt+y61mbqUxzLEddV/z1sDyNzhc3Xavb+vhOOlatwbe+7ww/3mmhlPexBNEtgaK4 PPZdE1wX2zxJdoRit6XIpVLdkQnlF1rS0vScM= Received: by 10.223.112.13 with SMTP id u13mr1609064fap.36.1283808392115; Mon, 06 Sep 2010 14:26:32 -0700 (PDT) Received: from localhost.localdomain (IGLD-84-228-233-189.inter.net.il [84.228.233.189]) by mx.google.com with ESMTPS id k15sm2504881fai.16.2010.09.06.14.26.30 (version=SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 14:26:31 -0700 (PDT) From: Maxim Levitsky <maximlevitsky@gmail.com> To: lirc-list@lists.sourceforge.net Cc: Jarod Wilson <jarod@wilsonet.com>, =?UTF-8?q?David=20H=C3=A4rdeman?= <david@hardeman.nu>, mchehab@infradead.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, Maxim Levitsky <maximlevitsky@gmail.com> Subject: [PATCH 5/8] IR: extend MCE keymap. Date: Tue, 7 Sep 2010 00:26:10 +0300 Message-Id: <1283808373-27876-6-git-send-email-maximlevitsky@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1283808373-27876-1-git-send-email-maximlevitsky@gmail.com> References: <1283808373-27876-1-git-send-email-maximlevitsky@gmail.com> Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab <mchehab@gaivota> |
Commit Message
Maxim Levitsky
Sept. 6, 2010, 9:26 p.m. UTC
These keys are found on remote bundled with
Toshiba Qosmio F50-10q.
Found and tested by, Sami R <maesesami@gmail.com>
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
---
drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Comments
On Mon, Sep 6, 2010 at 5:26 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > These keys are found on remote bundled with > Toshiba Qosmio F50-10q. > > Found and tested by, Sami R <maesesami@gmail.com> > > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> > --- > drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) Acked-by: Jarod Wilson <jarod@redhat.com>
On Wed, 2010-09-08 at 10:47 -0400, Jarod Wilson wrote: > On Mon, Sep 6, 2010 at 5:26 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > > These keys are found on remote bundled with > > Toshiba Qosmio F50-10q. > > > > Found and tested by, Sami R <maesesami@gmail.com> > > > > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> > > --- > > drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++ > > 1 files changed, 3 insertions(+), 0 deletions(-) Tommorow I will resend that patch with even more scancodes. Best regards, Maxim Levitsky -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Sep 9, 2010 at 8:40 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > On Wed, 2010-09-08 at 10:47 -0400, Jarod Wilson wrote: >> On Mon, Sep 6, 2010 at 5:26 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: >> > These keys are found on remote bundled with >> > Toshiba Qosmio F50-10q. >> > >> > Found and tested by, Sami R <maesesami@gmail.com> >> > >> > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> >> > --- >> > drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++ >> > 1 files changed, 3 insertions(+), 0 deletions(-) > > Tommorow I will resend that patch with even more scancodes. Saw the discussion on irc. Feel your pain big-time on the X server limitation on keycodes. Its put a big damper on efforts to add native support to mythtv. Peter Hutterer's libXi2 cookbook tutorials talk a good game about how libXi2 supports 32-bit keycodes, but neglects to mention that the X server still gobbles up anything above 248 or 255 or whatever it is, and remedying that is no small task. :( I think for mythtv, we're going to end up having a daemon process with elevated privs that reads directly from input devices to get around this annoyance, until such time as the annoyance is gone.
On Fri, September 10, 2010 03:37, Jarod Wilson wrote: > I think for mythtv, we're going to end up having a daemon process with > elevated privs that reads directly from input devices to get around > this annoyance, until such time as the annoyance is gone. A similar approach could work for XBMC since it already has input plugins (e.g. for using a Nintendo Wii controller, etc).
On Thu, 2010-09-09 at 21:37 -0400, Jarod Wilson wrote: > On Thu, Sep 9, 2010 at 8:40 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > > On Wed, 2010-09-08 at 10:47 -0400, Jarod Wilson wrote: > >> On Mon, Sep 6, 2010 at 5:26 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > >> > These keys are found on remote bundled with > >> > Toshiba Qosmio F50-10q. > >> > > >> > Found and tested by, Sami R <maesesami@gmail.com> > >> > > >> > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> > >> > --- > >> > drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++ > >> > 1 files changed, 3 insertions(+), 0 deletions(-) > > > > Tommorow I will resend that patch with even more scancodes. > > Saw the discussion on irc. Feel your pain big-time on the X server > limitation on keycodes. Its put a big damper on efforts to add native > support to mythtv. Peter Hutterer's libXi2 cookbook tutorials talk a > good game about how libXi2 supports 32-bit keycodes, but neglects to > mention that the X server still gobbles up anything above 248 or 255 > or whatever it is, and remedying that is no small task. :( > > I think for mythtv, we're going to end up having a daemon process with > elevated privs that reads directly from input devices to get around > this annoyance, until such time as the annoyance is gone. Btw, indeed Xi2 still doesn't pass > 248 keycodes, just tested that with -git versions of X stack from about 2 months ago. However this can be fixed relatively easily. Maybe even I could do that. The big problem is however about ability to map extended keycodes to actions, thing that should be provided by XKB2, which we will see probably when DNF is released on Phantom console... Also this will need lots of changes in toolkits. Thats the problem I don't have resources to fix. Best regards, Maxim Levitsky -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Sep 10, 2010 at 11:40:31AM +0300, Maxim Levitsky wrote: > On Thu, 2010-09-09 at 21:37 -0400, Jarod Wilson wrote: > > On Thu, Sep 9, 2010 at 8:40 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > > > On Wed, 2010-09-08 at 10:47 -0400, Jarod Wilson wrote: > > >> On Mon, Sep 6, 2010 at 5:26 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote: > > >> > These keys are found on remote bundled with > > >> > Toshiba Qosmio F50-10q. > > >> > > > >> > Found and tested by, Sami R <maesesami@gmail.com> > > >> > > > >> > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> > > >> > --- > > >> > drivers/media/IR/keymaps/rc-rc6-mce.c | 3 +++ > > >> > 1 files changed, 3 insertions(+), 0 deletions(-) > > > > > > Tommorow I will resend that patch with even more scancodes. > > > > Saw the discussion on irc. Feel your pain big-time on the X server > > limitation on keycodes. Its put a big damper on efforts to add native > > support to mythtv. Peter Hutterer's libXi2 cookbook tutorials talk a > > good game about how libXi2 supports 32-bit keycodes, but neglects to > > mention that the X server still gobbles up anything above 248 or 255 > > or whatever it is, and remedying that is no small task. :( > > > > I think for mythtv, we're going to end up having a daemon process with > > elevated privs that reads directly from input devices to get around > > this annoyance, until such time as the annoyance is gone. > > Btw, indeed Xi2 still doesn't pass > 248 keycodes, just tested that with > -git versions of X stack from about 2 months ago. > However this can be fixed relatively easily. > Maybe even I could do that. > > The big problem is however about ability to map extended keycodes to > actions, thing that should be provided by XKB2, which we will see > probably when DNF is released on Phantom console... > Also this will need lots of changes in toolkits. > Thats the problem I don't have resources to fix. Yeah, that's exactly what I got from Peter when I was asking him about this issue on irc -- X server can be modified fairly easily, but there's the arduous and undesirable task of making all the toolkits and whatnot behave again, and nobody in their right mind really *wants* to dig into xkb. :)
On Fri, Sep 10, 2010 at 10:27:02AM +0200, David Härdeman wrote: > On Fri, September 10, 2010 03:37, Jarod Wilson wrote: > > I think for mythtv, we're going to end up having a daemon process with > > elevated privs that reads directly from input devices to get around > > this annoyance, until such time as the annoyance is gone. > > A similar approach could work for XBMC since it already has input plugins > (e.g. for using a Nintendo Wii controller, etc). While attempting to drift off to sleep last night, it occurred to me that lircd already has support for attaching to input devices, so it might be an option to extend lircd and the lirc client library to have a "pass raw keycodes" mode. Both xmbc and mythtv already have options to build in lirc client support, so it'd just be minor extension of its use in both cases, at least in theory...
diff --git a/drivers/media/IR/keymaps/rc-rc6-mce.c b/drivers/media/IR/keymaps/rc-rc6-mce.c index 64264f7..39557ad 100644 --- a/drivers/media/IR/keymaps/rc-rc6-mce.c +++ b/drivers/media/IR/keymaps/rc-rc6-mce.c @@ -19,6 +19,7 @@ static struct ir_scancode rc6_mce[] = { { 0x800f0416, KEY_PLAY }, { 0x800f0418, KEY_PAUSE }, + { 0x800f046e, KEY_PLAYPAUSE }, { 0x800f0419, KEY_STOP }, { 0x800f0417, KEY_RECORD }, @@ -37,6 +38,8 @@ static struct ir_scancode rc6_mce[] = { { 0x800f0411, KEY_VOLUMEDOWN }, { 0x800f0412, KEY_CHANNELUP }, { 0x800f0413, KEY_CHANNELDOWN }, + { 0x800f043a, KEY_BRIGHTNESSUP }, + { 0x800f0480, KEY_BRIGHTNESSDOWN }, { 0x800f0401, KEY_NUMERIC_1 }, { 0x800f0402, KEY_NUMERIC_2 },