Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I have a debian lenny distro and I'm trying to pair my mobile phone to the computer.
By using kbluetoothd I choose the File Exchange service: the phone asks me the PIN; I enter it and after some seconds I get a pairing error.
Looking around over the Internet I read that I had to see on the pc a popup window asking for the PIN, but that's not my case.
On the console output of kbluetoothd I get this error:
You probably need to edit your /etc/bluetooth/hcid.conf file.
If you want to be prompted for a passkey each time, edit as follows:
Code:
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
The "multi" option allows prompt-less pairing with previously paired devices:
Code:
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# Default PIN code for incoming connections
passkey "1234";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
}
I have now tried myself and can confirm this problem in both directions (phone to pc and pc to phone). hcid says something like
Code:
Passkey agent replied with an error: org.freedesktop.DBus.Error.UnknownMethod, Method "Request" with signature "ss" on interface "org.bluez.PasskeyAgent" doesn't exist
and passkey-agent gives the same error as you described. This is on a debian lenny/sid. This has worked all right some weeks ago, so it must have come in with an update.
Maybe someone else has information on the issue ...
I experimented around a bit and the only way for pairing seems to be working around the dbus passkey-agent.
Change your security mode from 'security user' to 'security auto'. Then the passkey in your hcid.conf will be accepted. This is for incoming connections only, so you have to pair from the phone to the pc.
I have also tried the package out of unstable (1.0-beta8) but this version is completely non-functional for me (doesn't find devices, doesn't connect, crashes all over).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.