From: Johannes Berg <johannes@sipsolutions.net>
To: Joey Lee <jlee@novell.com>
Cc: davem@davemloft.net, marcel@holtmann.org,
Al Cho <ACho@novell.com>, Gary Lin <GLin@novell.com>,
oldium.pro@seznam.cz, mjg59@srcf.ucam.org,
alan-jenkins@tuffmail.co.uk, linux-acpi@vger.kernel.org,
linux-bluetooth@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: Mon, 21 Mar 2011 15:35:35 +0100 [thread overview]
Message-ID: <1300718135.4052.14.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4D87F3F9020000230002A2CA@novprvlin0050.provo.novell.com>
Hi,
> > > It maybe workaround another rfkill-input issue, but causes it replicate acer-wmi's
> > > bluetooth killswitch initial state (or any driver that used rfkill_init_sw_state)
> > > to any new bluetooth killswitch.
> > >
> > > It's not make sense.
> >
> > I think the reason is that rfkill-input only has a global concept of
> > per-device states. The alternative would be to force a newly registered
> > rfkill device to the state that was set by rfkill-input.
>
> Yes
I don't know if that works though. Does it make more sense? I'm not
sure. Why bother with "persistent" then anyway? I think the logic as we
had it was meant to make things follow the persistent state you had
before you shut down and that was saved in the BIOS or whatever.
> > Is it possible that acer-wmi reports both a hotkey event _and_ an rfkill
> > event?
>
> Emit needlessly KEY_BLUETOOTH when acer-wmi initial may not a good idea
> if there have any userland daemon to listen the keycode.
>
> I am trying to remove rfkill_init_sw_state then workaround this issue
> in .set_block by maintain a driver initial flag in acer-wmi.
No I mean ... it seems that the BIOS reports both a hotkey and an rfkill
event. Could those be clashing?
It seems that what happens is roughly this:
1) at boot, all BT is set to soft-killed due to the way the BIOS
started up
2) when you press the button, it's a toggle, so rfkill-input toggles
all BT rfkill instances (acer and hci0)
3) now acer _also_ reports, via rfkill_set_sw_state(), that the acer BT
rfkill instance is not soft-blocked
Then again, even that should work fine? Clearly I don't understand the
issue yet.
> Does it possible we add this rfkill module option for user can control
> disable rfkill-input when rfkill driver probed?
>
> Because, distro was shipped with different company's machine, like: Acer
> or MSI, different machines almost have different wifi/bluetooth/wwan key
> use case.
Well, I don't think we should require a config to work "out of the box",
so I'm not sure that makes sense.
> Sometimes, we want to use rfkill-input, but sometimes we have userland
> GUI application to provide rfkill control panel to end user. We already
> used urfkill daemon to disable rfkill-input by ioctl way, but like this
> issue, it was happen on driver probe.
Yeah but when urfkill starts up, it could just force the status it
thinks things have. Since it can simply override the current status
there doesn't seem to be a need for disabling the logic first.
Still though I don't understand how we arrive at the issue at all.
Oldřich, can you run "rfkill event" while you press the button with a
stock kernel that shows the problem and no patches?
johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-03-21 14:35 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 22:02 acer-wmi: rfkill and bluetooth enabling doesn't work as in 2.6.37 Joey Lee
2011-03-11 20:21 ` Oldřich Jedlička
2011-03-11 20:34 ` Joey Lee
2011-03-11 20:54 ` Oldřich Jedlička
2011-03-11 21:25 ` Joey Lee
2011-03-11 21:34 ` Oldřich Jedlička
2011-03-11 21:45 ` Joey Lee
[not found] ` <4D7B32B10200002300029B5E-jb/6P8Q/KsjOKUPnnb0SpZ/xhEQF/MHJojBamW5iJbs@public.gmane.org>
2011-03-15 11:11 ` Joey Lee
[not found] ` <4D7FE4260200002300029D70-jb/6P8Q/KsjOKUPnnb0SpZ/xhEQF/MHJojBamW5iJbs@public.gmane.org>
2011-03-16 6:32 ` Oldřich Jedlička
2011-03-16 8:59 ` Joey Lee
2011-03-20 20:09 ` Oldřich Jedlička
2011-03-21 11:26 ` Joey Lee
2011-03-21 11:43 ` Johannes Berg
2011-03-21 13:57 ` Joey Lee
2011-03-21 14:35 ` Johannes Berg [this message]
2011-03-21 16:25 ` Joey Lee
[not found] ` <4D881693020000230002A2FC-jb/6P8Q/KsjOKUPnnb0SpZ/xhEQF/MHJojBamW5iJbs@public.gmane.org>
2011-03-23 12:17 ` Johannes Berg
[not found] ` <1300882647.3790.17.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
2011-03-24 7:01 ` Joey Lee
2011-03-24 8:35 ` Johannes Berg
2011-03-24 12:55 ` Joey Lee
2011-03-24 12:58 ` Johannes Berg
2011-03-24 13:36 ` Joey Lee
2011-03-21 19:27 ` Oldřich Jedlička
[not found] ` <201103212027.01952.oldium.pro-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2011-03-23 11:58 ` Johannes Berg
2011-03-23 21:38 ` Oldřich Jedlička
2011-03-24 8:36 ` Johannes Berg
[not found] ` <1300955793.3807.6.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
2011-03-24 13:13 ` Joey Lee
2011-03-24 13:13 ` Joey Lee
[not found] ` <201103242234.03598.oldium.pro@seznam.cz>
2011-03-25 6:29 ` Oldřich Jedlička
[not found] ` <201103242234.03598.oldium.pro-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2011-03-25 8:13 ` Joey Lee
2011-03-25 19:22 ` Oldřich Jedlička
2011-03-25 22:35 ` Joey Lee
2011-03-27 17:09 ` Dmitry Torokhov
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
[not found] ` <201103252022.26766.oldium.pro-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2011-03-28 9:04 ` Joey Lee
2011-03-30 18:49 ` Oldřich Jedlička
2011-03-11 22:00 ` Oldřich Jedlička
-- strict thread matches above, loose matches on Subject: below --
2011-03-21 17:52 Joey Lee
2011-03-21 17:52 ` Joey Lee
2011-03-21 20:44 ` Oldřich Jedlička
2011-03-22 2:32 ` Joey Lee
2011-03-24 21:56 ` Oldřich Jedlička
2011-03-10 18:37 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=1300718135.4052.14.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ACho@novell.com \
--cc=GLin@novell.com \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=davem@davemloft.net \
--cc=jlee@novell.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-bluetooth@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 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.