linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Ivo van Doorn <ivdoorn@gmail.com>, linux-input@vger.kernel.org
Subject: Re: rfkill-input understanding help
Date: Mon, 14 Apr 2008 14:12:28 -0400	[thread overview]
Message-ID: <20080414141054.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <200804131223.13417.carlos@strangeworlds.co.uk>

Hi Carols,

On Sun, Apr 13, 2008 at 12:23:12PM +0100, Carlos Corbacho wrote:
> On Saturday 12 April 2008 18:21:31 Carlos Corbacho wrote:
> > Any thoughts at all on how to diagnose why rfkill-input is not able to find
> > a device to attach to the first time it loads (or more specifically, why
> > input_match_device() fails to return a match the first time around),
> > because I'm still scratching my head on this four months later...
> 
> I think I've found the problem here.
> 
> rfkill-input isn't being attached to a device because it's looking for 
> KEY_WLAN. The problem is that at boot time, I don't have a KEY_WLAN - the key 
> isn't mapped until HAL & hal-info kick in much later.
> 
> I've tested this by blacklisting rfkill-input, waiting until HAL has loaded 
> and run setkeycodes, and then loaded rfkill-input, which then works properly 
> first time round.
> 
> Unfortunately, that's only a workaround, not a real solution, so we're going 
> to need a better way of handling this case.
> 

Yes, setting KEY_X later, after registering input device will not
cause device/handler rescanning. We'll have to do something about
it now that we recommend using HAL to update keymaps properly.

-- 
Dmitry

      reply	other threads:[~2008-04-14 18:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11  3:33 rfkill-input understanding help Carlos Corbacho
2007-12-30 18:59 ` Ivo van Doorn
2007-12-31  1:00   ` Carlos Corbacho
2008-01-02 19:10     ` Ivo van Doorn
2008-01-11  3:23       ` Carlos Corbacho
2008-01-11 19:08         ` Ivo van Doorn
2008-01-11 20:34           ` Dmitry Torokhov
2008-01-12  0:32             ` Carlos Corbacho
2008-01-22  0:55               ` Carlos Corbacho
2008-04-12 17:21                 ` Carlos Corbacho
2008-04-13 11:23                   ` Carlos Corbacho
2008-04-14 18:12                     ` Dmitry Torokhov [this message]

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=20080414141054.ZZRA012@mailhub.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=carlos@strangeworlds.co.uk \
    --cc=ivdoorn@gmail.com \
    --cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).