Package: bluez-utils
Version: 2.10-5
Severity: important

Hi,

I got a new mobile and had to re-pair it with my pc.

Pairing BT devices with a pin seems completely broken.

There are three security settings in hcid.conf: none/auto/user

I tried auto and user

auto should do something like "cat /etc/bluetooth/pin" to get the pin
and auto should call the binary set with pin_helper

Neither of them works.

What I tried with setting "auto":

I tried file format "1234" and "PIN:1234", result:

My mobile asks me for a pin, then:

hcid[8642]: pin_code_request (sba=00:xx:xx:xx:xx:xx, dba=00:xx:xx:xx:xx:xx)
hcid[8658]: PIN helper exited abnormally with code 256

(BT ids hidden by me)

Now I tried setting "user" which should start the bluez-pin app and show
me the PIN dialog. But same error. No popup.
Starting "bluez-pin out 00:xx:xx:xx:xx:xx" from console does work though... 
(so the bluez-pin app itself works)

Then I created a little shell script to test:

/usr/local/bin/bluez-pin:
---------------------------------
#!/bin/bash
echo "$*" > /tmp/bluez-pin.args
echo "PIN:1234"
---------------------------------

and set "pin_helper /usr/local/bin/bluez-pin;" in hcid.conf

Result: now a link_key file gets created and connection to my mobile
works.

/tmp/bluez-pin.args contains "out 00:xx:xx:xx:xx:xx" which is fine, but:

   The file is owned by root (!). I think that may be the reason why no
         popup window appeard on my screen. root has no permission to write to
         my X screen.

Comments?

-Marc

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=en_US, [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: LC_ALL 
set to [EMAIL PROTECTED])

Versions of packages bluez-utils depends on:
ii  bluez-pin                   0.24-1       Bluetooth PIN helper with D-BUS su
ii  dbus-1                      0.22-4       simple interprocess messaging syst
ii  libbluetooth1               2.11-1       Library to use the BlueZ Linux Blu
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libusb-0.1-4                1:0.1.8-17   Userspace USB programming library
ii  module-init-tools           3.1-rel-2    tools for managing Linux kernel mo
ii  modutils                    2.4.26-1.2   Linux module utilities
ii  sysvinit                    2.86.ds1-1   System-V like init

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to