linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Joey Lee <jlee@novell.com>
Cc: oldium.pro@seznam.cz, davem@davemloft.net, marcel@holtmann.org,
	Al Cho <ACho@novell.com>, Gary Lin <GLin@novell.com>,
	johannes@sipsolutions.net, mjg59@srcf.ucam.org,
	linux-acpi@vger.kernel.org, linux-input@vger.kernel.org,
	platform-driver-x86@vger.kernel.org
Subject: Re: acer-wmi: rfkill and bluetooth enabling doesn't work as in 2.6.37
Date: Sun, 27 Mar 2011 10:09:29 -0700	[thread overview]
Message-ID: <20110327170928.GB30244@core.coreip.homeip.net> (raw)
In-Reply-To: <4D8DB372020000230002A653@novprvlin0050.provo.novell.com>

On Fri, Mar 25, 2011 at 04:35:46PM -0600, Joey Lee wrote:
> 
> Thank's for your information, I will look at it.
> 
> Finally,
> I borrow a Acer Aspire one ZG8 from Gary, it can reproduce your
> situation.
> 
> The BAD thing is you are right, 
> I CAN REPRODUCE rfkill-input didn't receive any input, it not make sense
> because rfkill-input registered input handler.
> 
> The BT HW key still works because acer-wmi have polling to sync the
> state with EC and killswitch, and EC also take care the BT device power
> off job.
> 
> But, I also found SOMETIMES after system reboot, rfkill-input can
> capture the key event.
> We need find out why input handle didn't receive KEY_* event.
> 
> 
> Hi, Dmitry 
> 
> Appreciate if you can give us any good suggestions!
> Why keyboard emit KEY_BLUETOOTH, but rfkill-input, registered input
> handler, can't capture it?
> 
> *** 06:32:42.972: lshal: device_condition,
> udi=/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input
>            condition_name=ButtonPressed
>            condition_details=bluetooth
> 
> But, SOMETIMES after reboot system, rfkill-input can capture the key.
> We are working on 2.6.38 kernel, and Acer notebook.

Hi Joey,

If you look in /proc/bus/input/devices do you see rfkill-input as
actually bound to the device that has KEY_BLUETOOTH?

Since it is atkbd that is emitting KEY_BLUETOOTH and this key is not in
the default keymap I think you must be loading Acer-specific keymap via
udev or some other mechanism, and I guess stumbling upon a deficiency in
input layer: we do not re-match devices after changing keymap. So if
rfkill-input was loaded before keymap was altered, then it will not bind
to the keyboard even if you add KE_BLUETOOTH at a later time. Fixing
this is something that was on my TODO list for a while now...

Thaks.

-- 
Dmitry

  reply	other threads:[~2011-03-27 17:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4D79E5230200002300029ADA@novprvlin0050.provo.novell.com>
     [not found] ` <201103242234.03598.oldium.pro@seznam.cz>
     [not found]   ` <4D8CE950020000230002A5DA@novprvlin0050.provo.novell.com>
     [not found]     ` <201103252022.26766.oldium.pro@seznam.cz>
2011-03-25 22:35       ` acer-wmi: rfkill and bluetooth enabling doesn't work as in 2.6.37 Joey Lee
2011-03-27 17:09         ` Dmitry Torokhov [this message]
2011-03-28  8:51           ` Joey Lee
2011-03-31  5:23           ` Oldřich Jedlička
     [not found]             ` <AANLkTi=QREK2r6zbvo6RyTNMG4=NCf+kCUWi52ZwjOhS@mail.gmail.com>
2011-03-31  7:51               ` Joey Lee
2011-03-31  8:09                 ` Joey Lee
2011-03-31  9:10                   ` Joey Lee
2011-03-31 20:27                     ` Oldřich Jedlička

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=20110327170928.GB30244@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=ACho@novell.com \
    --cc=GLin@novell.com \
    --cc=davem@davemloft.net \
    --cc=jlee@novell.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=oldium.pro@seznam.cz \
    --cc=platform-driver-x86@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).