From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Mark Lord <lkml@rtr.ca>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-kernel@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: Input driver for Twinhan USB 6253:0100 remote control
Date: Mon, 13 Jul 2009 11:31:57 +0200 [thread overview]
Message-ID: <20090713113157.701ba027@neptune.home> (raw)
In-Reply-To: <alpine.LNX.2.00.0907131048110.10476@wotan.suse.de>
On Mon, 13 July 2009 Jiri Kosina <jkosina@suse.cz> wrote:
> On Sun, 12 Jul 2009, Bruno Prémont wrote:
>
> > I wrote the below patch to adjust it's key mappings, though I'm not
> > sure if/how I should deal with the number keys (0..9) with regard to
> > keyboard layout and/or numlock key.
> >
> > I tried with KEY_0..KEY_9 (default) as well as KEY_KP0..KEY_KP9 but
> > neither produces optimal results on my machine (laptop with numlock
> > disabled and belgian keyboard layout, e.g. KEY_1 => '&' unless shift
> > is down)
> >
> > KEY_NUMERIC_0..KEY_NUMERIC_9 are not recognized by Linux console
> > (don't know if/how userspace understands them)
>
> Are they incorporated in the keymap you have loaded?
Probably not though I have not checked (using be-latin1 from
sys-apps/kbd-1.13-r1, Gentoo) Possibly this kbd version is too old to
know about those keys.
> > + // set_bit(EV_REP, hi->input->evbit);
>
> Why is this commented out?
That was a remaining line from basing on hid-gyration.c
Don't know what it does, looks like related to key repeating but I've
not read enough of HID/Input code to find out. (all my tests were run
with it commented out, so I will drop it unless there is a good reason
to uncomment it)
> Otherwise the patch looks good, so if you send it with proper
> Signed-off-by line, I am OK with merging it.
Will do, using KEY_NUMERIC_*.
> Do you have any idea whether lirc folks have plans to integrate
> support for this device to lirc eventually?
I don't know
With my patch it seems the mappings don't show up for EVIOCGKEYCODE:
int codes[2];
for (codes[0] = 0; codes[0] < 1024; codes[0]++)
if (ioctl(evdev, EVIOCGKEYCODE, codes) >= 0) {
// display
} else
break;
Code block above only displays for codes[0] == 0:
codes = { 0, 388 /* KEY_TEXT */ }
For all other values of codes[0] ioctl returns EINVAL.
Is this expected or should complete mapping table be returned
as it is for generic PS2 PC keyboard (if so, what changes does the
patch need for it)?
Bruno
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-07-13 9:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 7:29 [git pull] Input updates for 2.6.30-rc1 Dmitry Torokhov
2009-04-08 17:28 ` Input driver for Twinhan USB 6253:0100 remote control Mark Lord
2009-04-14 2:31 ` Dmitry Torokhov
2009-04-14 16:14 ` Mark Lord
2009-04-14 16:45 ` Dmitry Torokhov
2009-04-14 17:37 ` Mark Lord
2009-04-15 8:23 ` Jiri Kosina
2009-04-15 14:10 ` Mark Lord
2009-04-16 9:24 ` Jiri Kosina
2009-07-12 16:20 ` Bruno Prémont
2009-07-13 3:41 ` Dmitry Torokhov
2009-07-13 8:53 ` Jiri Kosina
2009-07-13 9:31 ` Bruno Prémont [this message]
2009-07-13 11:21 ` Jiri Kosina
2009-07-13 12:19 ` [PATCH] HID: " Bruno Prémont
2009-07-14 15:05 ` Jiri Kosina
2009-07-18 14:50 ` Mark Lord
2009-04-13 1:03 ` [git pull] Input updates for 2.6.30-rc1 Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090713113157.701ba027@neptune.home \
--to=bonbons@linux-vserver.org \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@rtr.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).