From: "Oldřich Jedlička" <oldium.pro@seznam.cz>
To: Joey Lee <jlee@novell.com>
Cc: linux-acpi@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: Fri, 11 Mar 2011 21:21:19 +0100 [thread overview]
Message-ID: <201103112121.20076.oldium.pro@seznam.cz> (raw)
In-Reply-To: <4D79E5230200002300029ADA@novprvlin0050.provo.novell.com>
Hi Joey Lee,
On Thursday 10 March 2011 23:02:27 Joey Lee wrote:
> 於 四,2011-03-10 於 19:37 +0100,Oldřich Jedlička 提到:
>
> > Hi all,
> >
> > This is about Acer WMI driver and bluetooth support. I hope I'm at the
> > right place with my question :-)
> >
> > I tried to use bluetooth again on my Acer TravelMate 5730G and discovered
> > a usability problem. I've checked 2.6.38-rc7:
> >
> > 0. On startup, the bluetooth LED is off, acer-bluetooth SW rfkill is
> > blocked.
>
> Yes, this is right behavior.
>
> Because have a acer-wmi patch in 2.6.38 to sync the connection devices
> (wlan, bluetooth, 3G) status with BIOS.
> Acer BIOS fills-in the device initial states in SMBIOS when system boot,
> then acer-wmi dirver sync this states with killswitch. By default, Acer
> BIOS set the bluetooth to off.
>
> > 1. I have to enable the HW bluetooth switch to get the bluetooth LED
> > running (USB device appears in lsusb). The acer-bluetooth SW rfkill is
> > unblocked, the SW rfkill of hci0 is blocked.
>
> Yes, this is also right behavior, because acer-wmi driver will maintain
> the killswitch status with BIOS.
>
> > 2. Next I have to unblock SW rfkill on hci0 by a call to `rfkill unblock
> > <number of hci0>`.
> > 3. Last I have to enable the HCI by the call to `hciconfig hci0 up`.
>
> About 2. - 3.
> I thought the above behavior causes by rfkill-input reverse the hci0's
> killswitch when you pressed HW bluetooth, the HW bluetooth send out a
> KEY_BLUETHOOTH keycode then rfkill-input capture it to do hci0's status
> reverse.
> I suggest leave userland application to do killswitch, don't use
> rfkill-input.
>
> You can do:
> - Use rfkill unblock acer-bluetooth SW killswitch, don't use HW bluetooth
> switch. - If you still want to use HW bluetooth switch, then I suggest
> disable your rfkill-input. Have 2 way:
> + Use urfkill daemon:
http://www.freedesktop.org/wiki/Software/urfkill
> This is a userland daemon can lock the rfkill-input to disable it
> temporarily. + Direct set CONFIG_RFKILL_INPUT=N in kernel, but you will
> need to rebuild kernel. After set rfkill-input disable, you need control
> killswitch from userland. You can control it by rfkill tool or also try
> urfkill daemon.
Actually this doesn't work. When I unblock the SW switch by
calling `rfkill unblock <number of acer-bluetooth>`, it unblocks the SW
killswitch, the bluetooth LED goes up, the hci0 shows-up (USB device and
killswitch), but initial state of hci0's killswitch is "blocked". So I still
need to unblock it manually. I would preffer to don't be forced to do step 2,
also for the HW switch (which should do the same job I think).
Cheers,
Oldřich.
>
> We are adding more feature in urfkill daemon, I and Gary's plan is use
> urfkill daemon to replace the rfkill-input in kernel.
>
> > How is this supposed to work? I tried to use "rfkill.default_state=1" on
> > kernel command line, but without any success.
>
> Yes, rfkill default_state doesn't help, because acer-wmi driver will
> sync the devices status from BIOS, it's right behavior.
>
> > When I boot into 2.6.37, the bluetooth LED goes ON automatically and
> > hciconfig shows the hci0 as UP.
>
> Yes, that because acer-wmi didn't sync the bluetooth status with BIOS
> when system boot in 2.6.37 kernel.
>
> > Thanks.
> >
> > Best regards,
> > 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
next prev parent reply other threads:[~2011-03-11 20:21 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 [this message]
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
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=201103112121.20076.oldium.pro@seznam.cz \
--to=oldium.pro@seznam.cz \
--cc=jlee@novell.com \
--cc=linux-acpi@vger.kernel.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.