Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-07-2007, 11:32 AM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Rep:
|
kbluetoothd invalid arguments to passkey
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:
"Invalid arguments for passkey Request method"
Could anybody please help me?
many thanks
Sergio
|
|
|
10-07-2007, 03:19 PM
|
#2
|
Member
Registered: Sep 2003
Distribution: Slackware
Posts: 626
Rep:
|
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;
|
|
|
10-08-2007, 07:15 AM
|
#3
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
type this and see if it works then:
passkey-agent --default /usr/lib/kdebluetooth/kbluepin
|
|
|
10-08-2007, 12:34 PM
|
#4
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Original Poster
Rep:
|
Thank you for your reply.
I typed the command
Quote:
passkey-agent --default /usr/lib/kdebluetooth/kbluepin
|
but I get the message
Quote:
Can't register passkey agent
Passkey agent already exists
|
my hcid.conf file follows:
Code:
#
# 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;
}
The problem persists
|
|
|
10-08-2007, 01:05 PM
|
#5
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
then type
cat /proc/$(pgrep passkey-agent)/cmdline
and post the output.
|
|
|
10-09-2007, 02:34 PM
|
#6
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Original Poster
Rep:
|
Hi almatic, here is the output of your command:
/usr/bin/passkey-agent--default/usr/lib/kdebluetooth/kbluepin
|
|
|
10-10-2007, 10:11 AM
|
#7
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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 ...
|
|
|
10-10-2007, 12:02 PM
|
#8
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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).
|
|
|
10-15-2007, 10:47 AM
|
#9
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Original Poster
Rep:
|
Many thanks, so let's wait and hope for a future bugfix
Sergio
|
|
|
All times are GMT -5. The time now is 06:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|