From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Corentin Chary <corentin.chary@gmail.com>
Cc: Joey Lee <jlee@novell.com>, Takashi Iwai <tiwai@novell.com>,
Thomas Renninger <trenn@novell.com>,
mjg59@srcf.ucam.org, carlos@strangeworlds.co.uk, jbenc@suse.cz,
linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 2/3] Support enable Acer Launch Manager mode
Date: Tue, 19 Oct 2010 08:49:51 -0700 [thread overview]
Message-ID: <20101019154951.GA22303@core.coreip.homeip.net> (raw)
In-Reply-To: <AANLkTi=iVb_sR4tYJ0acjkUzN_jq2tja43kjeHQwTtb8@mail.gmail.com>
On Tue, Oct 19, 2010 at 03:28:43PM +0200, Corentin Chary wrote:
> On Tue, Oct 19, 2010 at 3:25 PM, Joey Lee <jlee@novell.com> wrote:
> > Hi Corentin,
> >
> > 於 二,2010-10-19 於 05:15 -0600,Joey Lee 提到:
> >> Hi Corentin,
> >>
> >> 於 二,2010-10-19 於 12:51 +0200,Corentin Chary 提到:
> >> > >> Most of users will want the key to just toggle wlan/bluetooth. But some of them
> >> > >> will be happy if they can configure the behavior of the key (cycle, only toggle
> >> > >> WLAN, etc...)
> >> > >>
> >> > >
> >> > > I thought just direct disable the default EC behavior then leave a
> >> > > userland daemon to control the behavior, it will grab the wifi key event
> >> > > then control rfkill state by follow user's customization rules.
> >> >
> >> > What I'm saying is: I don't really care what's the default behavior is,
> >> > but if the EC provide a somewhat reliable way to make the key work
> >> > without any userspace daemon involved, I think we should allow
> >> > the user to use this mode (even if it's with an obscure module
> >> > parameter or sysfs file).
But we already have the in-kernel solution that provides this behavior.
It is called rfkill-input and it is the in-kernel bridge between input
devices that emit KEY_WLAN etc. and rfkill switches. There is no need to
have yet another mechanism (most likely fighting with default in-kernel
one) doing the same thing. So for boxes tat do support this launcher
mode we should simply enable it. _Always_.
And once the userspace manager[s] become standard we can just rely on
their presence. Like right now you can't really live without udev, dbus,
etc. if you want to have reasonably behaving box (embedded setups out of
scope here).
> >> >
> >> > But .. maybe if someone want this default "raw" behavior,
> >> > he should just not load this module.
> >> >
> >>
> >> Fully understood, now.
> >>
> >> Like you siad, we need define a policy for:
> >>
> >> - If user want the default "raw" behavior, what do they need to do?
> >> I thought if the wmi driver doesn't load by default, then user
> >> will get a "raw" behavior.
> >>
> > But...
> > The wmi driver doesn't just provide the RF switch function, it's also
> > have other functions like transfer wmi event to key code.
> >
> > User doesn't load wmi driver will have "raw" RF switch behavior, but
> > lost other more functions.
> >
> >> - If any distro want provide userland solution, how can they disable
> >> the default "raw" behavior?
> >> If anybody want to disable the "raw" behavior, just load the wmi
> >> driver.
> > Maybe we still add kernel module parameter?
> >
>
> Indeed, I think it would be a good idea to let the user do that.
>
And I do not think so for the reasons outlined. We have chosen the
direction already (dictated by the existence of keys not directly
connected withg RF switches) and we should follow through with it, so
all boxes and drivers behave as uniformly as possible.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2010-10-19 15:49 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 13:25 [PATCH 2/3] Support enable Acer Launch Manager mode Joey Lee
2010-10-19 13:28 ` Corentin Chary
2010-10-19 15:49 ` Dmitry Torokhov [this message]
2010-10-19 16:03 ` Corentin Chary
2010-10-19 16:49 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2010-10-30 16:28 Joey Lee
2010-10-21 3:35 Joey Lee
2010-10-19 11:15 Joey Lee
2010-10-19 13:07 ` Corentin Chary
2010-10-19 9:55 Joey Lee
2010-10-19 10:51 ` Corentin Chary
2010-10-19 8:09 Joey Lee
2010-10-19 2:48 Joey Lee
2010-10-18 4:53 Joey Lee
2010-10-18 8:20 ` Dmitry Torokhov
2010-10-18 2:32 Joey Lee
2010-10-18 4:07 ` Dmitry Torokhov
2010-10-18 7:19 ` Carlos Corbacho
2010-10-18 7:55 ` Corentin Chary
2010-10-18 8:14 ` Dmitry Torokhov
2010-10-18 8:40 ` Corentin Chary
2010-10-15 8:02 Joey Lee
2010-10-15 17:11 ` Carlos Corbacho
2010-10-13 3:47 [PATCH 1/3] Add acer wmi hotkey events support Lee, Chun-Yi
2010-10-13 3:47 ` [PATCH 2/3] Support enable Acer Launch Manager mode Lee, Chun-Yi
2010-10-13 18:26 ` 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=20101019154951.GA22303@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=carlos@strangeworlds.co.uk \
--cc=corentin.chary@gmail.com \
--cc=jbenc@suse.cz \
--cc=jlee@novell.com \
--cc=linux-input@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tiwai@novell.com \
--cc=trenn@novell.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 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).