[ltp] Default bluetooth to off

Joachim Breitner linux-thinkpad@linux-thinkpad.org
Sun, 21 Dec 2008 15:52:37 +0100


--=-riUzkxckcKGRZcXqO86L
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

I have a brand new T400 (with an Intel AGN500 card), unfortunately not
without issues (http://bugzilla.kernel.org/show_bug.cgi?id=3D8740 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=E2=80=99m not sure if it=E2=
=80=99s going
to be applied upstream:
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=3D1759 )

I manged to get Fn-F5 working by=20
dpkg-divert /usr/share/hal/fdi/information/10freedesktop/30-keymap-module-t=
hinkpad-acpi.fdi
to work around
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D504643, 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=E2=80=99m not sure if it=E2=80=99s c=
orrect, but
it works):

$ cat /etc/hal/fdi/information/40-bluetooth-F6-key.fdi=20
<?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> <!-- -*- SGML -*- -->

<deviceinfo version=3D"0.2">
  <device>
    <match key=3D"input.product" string=3D"ThinkPad Extra Buttons">
      <match key=3D"/org/freedesktop/Hal/devices/computer:system.hardware.v=
endor" prefix=3D"LENOVO">
        <append key=3D"input.keymap.data" type=3D"strlist">0x05:bluetooth</=
append> <!-- Fn+F6 bluetooth -->
        <append key=3D"info.capabilities" type=3D"strlist">input.keymap</ap=
pend>
      </match>
    </match>
  </device>
</deviceinfo>

Since I rarely use bluetooth, I=E2=80=99m wondering how to to default-off
bluetooth.
$ echo "options thinkpad_acpi bluetooth=3Ddisable" > /etc/modprobe.d/thinkp=
ad-acpi
didn=E2=80=99t work here, it seems, and is deprecated anyways.

What is the right way then?

I=E2=80=99m using 2.6.27.10 from
deb http://kernel-archive.buildserver.net/debian-kernel sid main

Thanks in advance,
Joachim
--=20
Joachim "nomeata" Breitner
  mail: mail@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
  JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/
  Debian Developer: nomeata@debian.org

--=-riUzkxckcKGRZcXqO86L
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAklOWDUACgkQ9ijrk0dDIGx66gCdEANHWv7yWw1hZOGvbIJaNA7v
aYUAoIfLrww1y7OQuXENP676W+J5SpNp
=2gTG
-----END PGP SIGNATURE-----

--=-riUzkxckcKGRZcXqO86L--