Ubuntu + Bluetooth + IBM Laptop R51

Marius Gedminas marius at pov.lt
Mon Apr 11 10:05:44 UTC 2005


Hi,

On Sun, Apr 10, 2005 at 01:11:53PM +0200, Pere Ubuntu wrote:
> I'm using Ubuntu Hoary 5.04 on an IBM R51 Laptopt, with integrated
> bluetooth.
> 
> Ubuntu seems to recognize it. 
> 
> With lsmod | grep bluetooth I get:
> 
> bluetooth              46340  4 rfcomm,l2cap
> 
> I think this mean bluetooth has been detected by the kernel/system and
> activated. Isn't it?

No.  Run 'hcitool dev' and see if there are any Bluetooth devices.

On my IBM T40 I have to do

  echo enable > /proc/acpi/ibm/bluetooth

and then the little Bluetooth indicator lights up, and a new USB device
appears in the system.

I've created a script /etc/acpi/bluetooth.sh to enable/disable Bluetooth
when I press Fn-F6.  Here's the script:

  #!/bin/sh
  # Enable/disable builtin Bluetooth on IBM Thinkpads

  if grep -q enabled /proc/acpi/ibm/bluetooth; then
      echo disable > /proc/acpi/ibm/bluetooth
  else
      echo enable > /proc/acpi/ibm/bluetooth
  fi

Here's the corresponding /etc/acpi/events/ibm-bluetooth file:

  # /etc/acpi/events/ibmbluetooth
  # This is called when the user presses Fn-F6 button and calls
  # /etc/acpi/bluetooth.sh for further processing.

  event=ibm/hotkey HKEY 00000080 00001006
  action=/etc/acpi/bluetooth.sh

HTH,
Marius Gedminas
-- 
Stupidity management for the superuser is a user space issue in Unix
systems.
		-- Alan Cox
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050411/f6e5cfb0/attachment.sig>


More information about the ubuntu-users mailing list