LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 10-07-2007, 11:32 AM   #1
sfrdll
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
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
 
Old 10-07-2007, 03:19 PM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
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;
 
Old 10-08-2007, 07:15 AM   #3
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
type this and see if it works then:

passkey-agent --default /usr/lib/kdebluetooth/kbluepin
 
Old 10-08-2007, 12:34 PM   #4
sfrdll
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 10-08-2007, 01:05 PM   #5
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
then type

cat /proc/$(pgrep passkey-agent)/cmdline

and post the output.
 
Old 10-09-2007, 02:34 PM   #6
sfrdll
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi almatic, here is the output of your command:

/usr/bin/passkey-agent--default/usr/lib/kdebluetooth/kbluepin
 
Old 10-10-2007, 10:11 AM   #7
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
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 ...
 
Old 10-10-2007, 12:02 PM   #8
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
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).
 
Old 10-15-2007, 10:47 AM   #9
sfrdll
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Many thanks, so let's wait and hope for a future bugfix

Sergio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KBluetoothD - transfer of files tytower Suse/Novell 0 06-03-2007 04:19 PM
Kbluetoothd Startup problem Guitarist88 Linux - Software 3 01-15-2007 04:36 AM
BitTorrent problem (Can Read The Passkey is my guess) Unknowndeepness Linux - Software 1 05-10-2006 03:48 PM
kbluetoothd dialup meknb Linux - Software 5 01-20-2006 04:17 PM
Failed to open device gt68xxLlibusb 004:002 invalid arguments error message radatan71 Linux - Hardware 1 10-24-2005 08:07 PM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration