All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: Jarod Wilson <jarod@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>, linux-media@vger.kernel.org
Subject: Re: [RFC PATCH 0/2] Apple remote support
Date: Sun, 31 Oct 2010 01:36:17 +0200	[thread overview]
Message-ID: <20101030233617.GA13155@hardeman.nu> (raw)
In-Reply-To: <20101029200937.GG21604@redhat.com>

On Fri, Oct 29, 2010 at 04:09:37PM -0400, Jarod Wilson wrote:
> On Fri, Oct 29, 2010 at 09:59:18PM +0200, David Härdeman wrote:
> > On Fri, Oct 29, 2010 at 03:27:33PM -0400, Jarod Wilson wrote:
> > > On Fri, Oct 29, 2010 at 09:17:11PM +0200, David Härdeman wrote:
> > > > On Fri, Oct 29, 2010 at 11:11:41AM -0400, Jarod Wilson wrote:
> > > > > So the Apple remotes do something funky... One of the four bytes is a
> > > > > remote identifier byte, which is used for pairing the remote to a specific
> > > > > device, and you can change the ID byte by simply holding down buttons on
> > > > > the remote.
> > > > 
> > > > How many different ID's are possible to set on the remote?
> > > 
> > > 256, apparently.
> > 
> > Does the remote pick one for you at random?
> 
> Looks like its randomly set at the factory, then holding a particular key
> combo on the remote for 5 seconds, you can cycle to another one. Not sure
> if "another one" means "increment by one" or "randomly pick another one"
> yet though.

In that case, one solution would be:

* using the full 32 bit scancode
* add a module parameter to squash the ID byte to zero
* default the module parameter to true
* create a keymap suitable for ID = 0x00

Users who really want to distinguish remotes can then change the module 
parameter and generate a keymap for their particular ID. Most others 
will be blissfully unaware of this feature.

-- 
David Härdeman

  reply	other threads:[~2010-10-30 23:36 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-29  3:11 [RFC PATCH 0/2] Apple remote support Jarod Wilson
2010-10-29  3:13 ` [RFC PATCH 1/2] ir-nec-decoder: decode Apple's NEC remote variant Jarod Wilson
2010-10-29 22:15   ` Andy Walls
2010-10-29  3:13 ` [RFC PATCH 2/2] IR: add Apple remote keymap Jarod Wilson
2010-10-29  3:15 ` [RFC PATCH 0/2] Apple remote support Jarod Wilson
2010-10-29 13:46   ` Mauro Carvalho Chehab
2010-10-29 15:11     ` Jarod Wilson
2010-10-29 19:17       ` David Härdeman
2010-10-29 19:27         ` Jarod Wilson
2010-10-29 19:59           ` David Härdeman
2010-10-29 20:09             ` Jarod Wilson
2010-10-30 23:36               ` David Härdeman [this message]
2010-10-31  2:32                 ` Jarod Wilson
2010-11-01 21:56                   ` David Härdeman
2010-11-02 20:42                     ` Jarod Wilson
2010-11-04 12:16                       ` David Härdeman
2010-11-04 15:54                         ` Jarod Wilson
2010-11-04 19:38                           ` David Härdeman
2010-11-04 19:43                             ` Mauro Carvalho Chehab
2010-11-05 13:27                               ` David Härdeman
2010-11-05 14:04                                 ` Christopher Harrington
2010-11-07 19:01                                   ` Jarod Wilson
2010-11-15  4:11                                 ` Jarod Wilson
2010-11-15 18:39                                   ` David Härdeman
2010-11-16 12:08                                   ` Mauro Carvalho Chehab
2010-11-16 23:26                                     ` David Härdeman
2010-11-18 16:33                                       ` Jarod Wilson
2010-11-18 20:43                                         ` David Härdeman
2010-11-18 20:49                                           ` Jarod Wilson
2010-11-18 20:59                                             ` Mauro Carvalho Chehab
2010-11-19 23:55                                               ` David Härdeman

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=20101030233617.GA13155@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=jarod@redhat.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.