From: "Oldřich Jedlička" <oldium.pro@seznam.cz>
To: Joey Lee <jlee@novell.com>
Cc: davem@davemloft.net, marcel@holtmann.org,
Al Cho <ACho@novell.com>, Gary Lin <GLin@novell.com>,
johannes@sipsolutions.net, 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: Wed, 30 Mar 2011 20:49:36 +0200 [thread overview]
Message-ID: <201103302049.36845.oldium.pro@seznam.cz> (raw)
In-Reply-To: <4D90E9D0020000230002A7EC@novprvlin0050.provo.novell.com>
Ho Joey Lee,
On Monday 28 March 2011 11:04:32 Joey Lee wrote:
> Hi Oldřic,
>
> 於 五,2011-03-25 於 20:22 +0100,Oldřich Jedlička 提到:
>
> > Hi Joey Lee,
> >
> > On Friday 25 March 2011 09:13:20 Joey Lee wrote:
> > > Hi Oldřich,
> > >
> > > Per our log.
> > > It's a interesting and weird situation.
> > >
> > > Your log subvert my assumption, the BT HW key only emit one
> > > KEY_BLUETOOTH from ec but not from acer-wmi.
> > >
> > > 於 四,2011-03-24 於 22:34 +0100,Oldřich Jedlička 提到:
> > >
> > > > Hi Joey Lee,
> > > >
> > > > I've done some experiments, here are the results.
> > > >
> > > > On Thursday 24 March 2011 14:13:29 Joey Lee wrote:
> > > > > Hi Oldřich,
> > > > >
> > > > > Sorry bother you again, but after discuss with Johannes, he remind
> > > > > me one import thing: maybe your BT HW key emit scancode and wmi
> > > > > event at the same time.
> > > > >
> > > > > 於 四,2011-03-24 於 09:36 +0100,Johannes Berg 提到:
> > > > >
> > > > > > Hi Oldřich,
> > > > > >
> > > > > > > > Ah. So I guess when hci0 gets registered, the acer rfkill
> > > > > > > > state hasn't been updated yet, hence registering hci0 as
> > > > > > > > blocked.
> > > > > > >
> > > > > > > No, that is not the case. I can play with `rfkill list`
> > > > > > > immediately after I press the HW bluetooth switch and show
> > > > > > > that hci0 is not there (still unregistered) while
> > > > > > > acer-bluetooth is already "unblocked" - I've tried to run
> > > > > > > `rfkill list` repeatedly manually from console immediately
> > > > > > > after I pressed the HW BT switch and acer-bluetooth was
> > > > > > > "unblocked" several runs while the hci0 wasn't there. When
> > > > > > > hci0 appeared, it was "blocked".
> > > > > > >
> > > > > > > As I wrote, I didn't find anything changing the global state,
> > > > > > > which is actually used to "block" the newly appearing hci0 (in
> > > > > > > the rfkill_sync_work method). It looks like the global state
> > > > > > > is just "blocked" forever - and it is "blocked" as a
> > > > > > > side-effect of the call to rfkill_init_sw_state (changes
> > > > > > > permanent=true) and then call to rfkill_register from the
> > > > > > > acer-wmi driver. I can verify this in the following days (that
> > > > > > > the global state stays the same all the time).
> > > > > >
> > > > > > Well the global state would be changed by the KEY_BLUETOOTH input
> > > > > > event.
> > > > > >
> > > > > > But like I said, it's tricky in this case because multiple events
> > > > > > come from the same event source and race against each other.
> > > > > >
> > > > > > johannes
> > > > >
> > > > > My Acer TravelMate 8572 is commercial notebook, it only emit wmi
> > > > > event when press wifi key. But, as I remember, there have some
> > > > > acer consumer notebook emit both scancode and wmi event.
> > > > >
> > > > > New acer-wmi driver will transfer wmi event to keycode (e.g.
> > > > > KEY_BLUETOOTH), if EC also emit KEY_BLUETOOTH, the rfkill-input
> > > > > will
> > > > >
> > > > > receive the key events twice, that means:
> > > > > global BT block (when system boot) -> BT unblock (from EC
> > > > > scancode)
> >
> > ->
> >
> > > > > BT
> > > > >
> > > > > block (from acer-wmi)
> > > > >
> > > > > Could you please help me to check?
> > > > >
> > > > > - If your distro still have HAL, please run:
> > > > > + lshal -l -m
> > > > > + press BT HW key 1 time
> > > > > then check does HAL receive KEY_BLUETOOTH twice?
> > > >
> > > > I didn't uninstall hal yet, so the output of `lshal -l -m` (only the
> > > > monitoring part) when I press once BT HW key is attached. I've also
> > > > patched the kernel to have more debug logging (see the attached diff
> > > > and log) and the result is that the handler method from
> > > > rfkill/input.c is not called, the global state is once set to
> > > > "blocked" and it keeps like that. I don't know why the rfkill_event
> > > > isn't called when I press the HW BT switch, it could be part of my
> > > > investigations in the following days.
> > > >
> > > > I've attached .config too, if you want to check that I missed
> > > > something that is needed by Acer WMI.
> > > >
> > > > Cheers,
> > > > Oldřich.
> > >
> > > Per your lshal log, looks like HAL only receive the key event from EC
> > > but didn't have key event from acer-wmi:
> > >
> > > *** 22:21:01.310: lshal: device_condition,
> > > udi=/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicald
> > > ev_i nput condition_name=ButtonPressed
> > >
> > > condition_details=bluetooth //it's from standard
> >
> > input
> >
> > > *** 22:21:02.076: lshal: property_modified,
> > > udi=/org/freedesktop/Hal/devices/platform_acer_wmi_rfkill_acer_bluetoot
> > > h_bl uetooth, key=killswitch.state is_removed=false, is_added=false ***
> > > new value: 1 (0x1) (int) //UNBLOCK when you press BT HW
> >
> > key
> >
> > > So, there have only one KEY_BLUETOOTH from ec, acer-wmi didn't emit it.
> > > I thought your machine didn't support Acer ACPI event GUIDs. Please
> > > dump the dsdt to me, thank's: acpidump > acpidump.dat
> > >
> > > Then, if there only have one KEY_BLUETOOTH, why the global BT state
> > > didn't change by rfill-input? Technically, rfkill-input must receive
> > > this key then change global state:
> > >
> > > your situation:
> > > initial press HW key
> > >
> > > acer-wmi BLOCK UNBLOCK (changed by acer-wmi polling)
> > > global BLOCK BLOCK (why didn't changed by rfkill-input?)
> > > hci0 none BLOCK (replicate from global)
> > >
> > > Like you said, the odd thing is:
> > > "Why rfkill-input didn't receive KEY_BLUEOOTH from ec on your
> > > machine?"
> > >
> > > We need find out root cause, but I thought my last patch still works to
> > > fix your situation and it make sense for Acer BIOS didn't really
> > > persistence devices state.
> > >
> > > applied my patch:
> > > initial press HW key
> > >
> > > acer-wmi BLOCK UNBLOCK (changed by acer-wmi polling)
> > > global UNBLOCK UNBLOCK (didn't changed by rfkill-input?)
> > > hci0 none UNBLOCK (replicate from global)
> > >
> > >
> > > Conclusion...
> > >
> > > please kindly help to provide the following information:
> > > - Please provide DSDT to me
> > >
> > > + I want to double check your BIOS didn't support acer wmi event.
> > >
> > > - Why rfkill-input didn't call by BT HW key?
> > >
> > > + please remember disable urfkill daemon, it might disabled
> > > rfkill-input! + please provide dmesg and messages log to me
> >
> > Here you are (dmesg, /var/log/messages, acpidump):
> > http://others-misc.oldium.net/dump.tar.gz
> >
> > I hope this finally helps to find something :-)
> >
> > Cheers,
> > Oldřich.
>
> I sand out patch to platform driver group for review:
> 0001-acer-wmi-does-not-set-persistence-state-by-rfkill_i.patch
>
> And added comment on bugzilla:
> https://bugzilla.kernel.org/show_bug.cgi?id=31002#c12
Works for me, I've put a comment on the bugreport.
Cheers,
Oldřich.
> Thank's
> Joey Lee
>
> --
> 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
--
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-30 18:49 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
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 [this message]
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=201103302049.36845.oldium.pro@seznam.cz \
--to=oldium.pro@seznam.cz \
--cc=ACho@novell.com \
--cc=GLin@novell.com \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=davem@davemloft.net \
--cc=jlee@novell.com \
--cc=johannes@sipsolutions.net \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=mjg59@srcf.ucam.org \
--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.