於 四,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.
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 platform-driver-x86"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html