[ltp] Default bluetooth to off

Pascal Wittmann linux-thinkpad@linux-thinkpad.org
Sun, 21 Dec 2008 16:58:54 +0100


Joachim Breitner wrote:
> Hi,
>
> I have a brand new T400 (with an Intel AGN500 card), unfortunately not
> without issues (http://bugzilla.kernel.org/show_bug.cgi?id=8740 is the
> worst)
>
> I noticed that I can not turn WLAN on if it the kill switch at the front
> of the notbook was activated (i.e. radios off). Therefore, I have to
> leave it on all the time.
>
> (Ubuntu seems to have a patch for that, but I’m not sure if it’s going
> to be applied upstream:
> http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1759 )
>
> I manged to get Fn-F5 working by 
> dpkg-divert /usr/share/hal/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi
> to work around
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504643, so now I can
> toggle WLAN.
>
> For Bluetooth, I configured Fn-F6 to toggle that by adding rfkill-input
> to /etc/modules and this file (which I’m not sure if it’s correct, but
> it works):
>
> $ cat /etc/hal/fdi/information/40-bluetooth-F6-key.fdi 
> <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
>
> <deviceinfo version="0.2">
>   <device>
>     <match key="input.product" string="ThinkPad Extra Buttons">
>       <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LENOVO">
>         <append key="input.keymap.data" type="strlist">0x05:bluetooth</append> <!-- Fn+F6 bluetooth -->
>         <append key="info.capabilities" type="strlist">input.keymap</append>
>       </match>
>     </match>
>   </device>
> </deviceinfo>
>
> Since I rarely use bluetooth, I’m wondering how to to default-off
> bluetooth.
> $ echo "options thinkpad_acpi bluetooth=disable" > /etc/modprobe.d/thinkpad-acpi
> didn’t work here, it seems, and is deprecated anyways.
>
> What is the right way then?
>
> I’m using 2.6.27.10 from
> deb http://kernel-archive.buildserver.net/debian-kernel sid main
>
> Thanks in advance,
> Joachim
>   
Have you tried:
echo disable > /proc/acpi/ibm/bluetooth
or have I misunderstood you?