Sunday, January 30, 2011

Non-persistent Bluetooth PIN code problem with Ubuntu Maverick Meerkat

After f*cking around with my bluetooth dongle, I found the solution on Ubuntu forum.
In summary, we have:

Problem: Ubuntu can't memorize the PIN code of a Blueetooth device (in my case, Logitech Cordless MediaBoard Pro(TM)). After every boot (or after a while idle) the system will prompt the user to enter a PIN code.

Solution: upgrade bluez to 4.89.

How to:
1. Open Terminal
2. sudo add-apt-repository ppa:brian-rogers/ppa
3. sudo apt-get update
4. sudo apt-get install bluez
5. rm /etc/apt/sources.list.d/brian-rogers-ppa-maverick.list

Don't forget to remove the repository (step 5) before doing a apt-get upgrade otherwise your whole system will match brian-rogers' repository.

NB: Use the repository at your own risk. The official bluez webpage is http://www.bluez.org/ - but there is no .deb package ready to be used, you'll have to build your own in this case.

Here are my outputs:

htpc@htpc:~$ lsusb 

Bus 003 Device 006: ID 0a5c:2148 Broadcom Corp. 
Bus 003 Device 005: ID 0a5c:4503 Broadcom Corp. 
Bus 003 Device 004: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 003 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)


Before upgrading bluez:

htpc@htpc:~$ dpkg -l | grep bluez
ii  bluez 4.69-0ubuntu2 Bluetooth tools and daemons
ii  bluez-alsa 4.69-0ubuntu2      Bluetooth audio support
ii  bluez-cups 4.69-0ubuntu2 Bluetooth printer driver for CUPS
ii  bluez-gstreamer 4.69-0ubuntu2 Bluetooth GStreamer support
ii  bluez-utils 4.69-0ubuntu2 Transitional package



After upgrading bluez:



htpc@htpc:~$ dpkg -l | grep bluez
ii  bluez 4.84-~0maverick Bluetooth tools and daemons
ii  bluez-alsa 4.69-0ubuntu2      Bluetooth audio support
ii  bluez-cups 4.69-0ubuntu2 Bluetooth printer driver for CUPS
ii  bluez-gstreamer 4.69-0ubuntu2 Bluetooth GStreamer support
ii  bluez-utils 4.69-0ubuntu2 Transitional package

No comments:

Post a Comment