From: Darren Hart <darren@dvhart.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: IR Remotes under 2.6
Date: Sat, 19 Jun 2004 08:19:00 -0700 [thread overview]
Message-ID: <1087658340.2792.31.camel@farah> (raw)
I had some thoughts regarding the >=2.6.6 approach to handling remotes
as keyboards (specifically the ir-kbd-i2c driver).
1) First, I believe the kernel can really only recognize the receiver,
not the remote. This means that one receiver could be used for several
different remotes (like with the Hauppauge PVR-[23]50 for example which
has at least 3 different remotes that I am aware of). Unfortunately,
the keytabs are hardcoded into the kernel (ir-common.c). IMO, the
system would be much more useful if a keytab could be loaded in much the
same way some USB devices load firmware.
2) The current hardcoded keytabs use KEY_* event codes. IMO people
don't think of remotes as keyboards, the closest parallel would be more
like a joystick. My remote has keys that are bound to keyboard keys
that I don't like, but unless I recompile the kernel I can't really
change that. It seems to me that remotes should use BTN_* event codes
rather than KEY_* codes. That way all the buttons on the remote can be
configured. As KEY_* codes, I find that X grabs the ones it recognizes
before I can assign them a function. The '0' button for instance always
sends a 0 to the focused window. There are many situations where a user
would want 0 on the remote to behave differently than 0 on their
keyboard. The use of BTN_0 would make it configurable through userspace
applications such as the gnome media keys or lirc (although once more
apps have input event support, lirc wouldn't be necessary at all).
Thoughts?
Thanks,
Darren Hart
next reply other threads:[~2004-06-19 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-19 15:19 Darren Hart [this message]
2004-06-19 17:53 ` IR Remotes under 2.6 Brad Campbell
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=1087658340.2792.31.camel@farah \
--to=darren@dvhart.com \
--cc=linux-kernel@vger.kernel.org \
/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