From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ivo van Doorn <ivdoorn@gmail.com>, linux-input@vger.kernel.org
Subject: Re: rfkill-input understanding help
Date: Sat, 12 Jan 2008 00:32:40 +0000 [thread overview]
Message-ID: <200801120032.41263.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <d120d5000801111234k5c0faaeeya0c5487ede8f0c19@mail.gmail.com>
On Friday 11 January 2008 20:34:09 Dmitry Torokhov wrote:
> On Jan 11, 2008 2:08 PM, Ivo van Doorn <ivdoorn@gmail.com> wrote:
> > Perhaps the rfkill-input needs to be registered before input
> > devices are being registered. But I am not sure, Dmitry propably
> > knows more about possible ordering requirements for input
> > device and input trigger registration.
>
> No, it is ok for rfkill-input handler to be installed later, but of
> course it will miss any events that happen before.
Unfortunately, moving the load order of rfkill-input doesn't solve my acer-wmi
problems:
1) If I build rfkill-input in, it does nothing (since the load order code is
obviously only for the module) - KEY_WLAN and KEY_BLUETOOTH are just ignored
by it.
2) If I build rfkill-input as a module, it won't work when autoloaded. If I
unload then reload it, it will:
i) If b43 is not loaded, it will just toggle both states. (the software only
toggle also changes to start toggling both states after reloading
rfkill-input).
ii) If b43 is loaded, after one or two KEY_WLAN or KEY_BLUETOOTH presses, I
end up in a vicious cycle of rfkill non-stop changing the states of both the
bluetooth and wireless rapidly, until I unload either b43 or acer-wmi and get
the same result as (i) (I can also stop this nasty loop by commenting out the
input_report_key lines in b43 - so this probably isn't a b43 specific issue,
it's just an example of a problem).
Of course, if I completely ignore rfkill-input, I can happily toggle my
wireless and bluetooth devices via their respective 'state' files to my
hearts content, and they work fine. But after loading rfkill-input (as
described above), even the 'state' file toggle causes the nasty
toggle-all-devices-and-loop-endlessly.
So I suppose the real question is: what exactly is going on with rfkill-input
on my laptop?
Is there anywhere in particular I can shove some printk's or some such to find
out if, and where, rfkill-input may be going wrong (I'm assuming the failing
to run properly on the first load is the real issue, and the rest of it is
just a side effect of something having gone wrong)?
-Carlos
--
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
next prev parent reply other threads:[~2008-01-12 0:32 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 [this message]
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
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=200801120032.41263.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=dmitry.torokhov@gmail.com \
--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).