LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-26-2007, 08:49 PM   #1
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Rep: Reputation: 19
Bluetooth pairing problems


Well, the thing is that on my Slack 12.0 box, I've installed kbluetooth and it's requirements.

The problem is that i can see my phone, (a motorola a1000 smartphone) and i can send files to the phone from the computer.

But the phone can only see my computer. I cannot send files to the computer, nor can i pair it.

The configuration - paired/trusted devices window mentions that a device will be paired automatically if the connection requires it.

If i go to configuration - input devices, i get nothing listed (but the computer does a search)

How can i manually pair my phone from the computer? if i initialize the pairing procedure from the phone, works well, but that does not solve the file transfer problem.

Any suggestions?
 
Old 11-27-2007, 05:22 AM   #2
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
Hi,i had a problem like yours and i have solved it this way:
First,give the command
Code:
rm -r /var/lib/bluetooth/*
Then edit your /etc/rc.d/rc.bluetooth.conf like this:
Code:
# Bluetooth configuraton file

# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true

# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"

# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true

# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true

# Arguments to hidd
HIDD_OPTIONS=""

# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=true

# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=true

# Config file for rfcomm
 RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

# Start dund (allowed values are "true" and "false")
DUND_ENABLE=false


# Arguments to dund
DUND_OPTIONS="--listen --persist"

# Start pand (allowed values are "true" and "false")
PAND_ENABLE=false

# Arguments to pand
PAND_OPTIONS="--listen --role NAP"
Then edit your /etc/bluetooth/hcid.conf like this:
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 "0000";
}

# Default settings for HCI devices
device {
       # Local device name
       #   %d - device id
       #   %h - host name
       name "gafran (%d)";

       # Local device class
       class 0x3e0100;
       discovto 0;

       # 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;
 }
Then give the command
Code:
/etc/rc.d/rc.bluetooth restart
Cya.
 
1 members found this post helpful.
Old 11-27-2007, 08:22 AM   #3
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Thanks. I'll give it a try and let you know if it worked.
 
Old 11-27-2007, 08:39 AM   #4
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
So far, i got only this.
Code:
bash-3.1# /etc/rc.d/rc.bluetooth restart
Stopping Bluetooth subsystem:  pand dund rfcomm hidd sdpd hcid.
Starting Bluetooth subsystem:  hcid sdpdCan't listen on HID control channel: Address already in use
 hidd hid2hci rfcomm passkeys
I'll give it a restart, see if things work.
 
Old 11-27-2007, 09:03 AM   #5
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Nope, even at boot i still get this "Can't listen on HID control channel: Address already in use". And the BT does not seem to work at all. Any suggestions?
 
Old 11-27-2007, 09:12 AM   #6
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Ok, i've stopped sdpd manually, then rc.bluetooth stop then rc.bluetooth start

No errors

rc.bluetooth restart just to be sure, still no errors.


But BT still does not work. I'm pretty much out of ideas.
 
Old 11-27-2007, 11:49 AM   #7
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
Which is your version of Kdebluetooth?You need Kdebluetooth 1.0-beta8.
You can download it here:
Code:
http://www.slacky.eu/repository/slackware-12.0/network/kdebluetooth/1.0_beta8/
 
Old 11-27-2007, 03:47 PM   #8
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Got it from here: http://www.linuxpackages.net/pkg_details.php?id=11706

I don't suppose this build is different. It has the same version though.
 
Old 11-28-2007, 01:08 AM   #9
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
Your version is beta1,mine is beta8.Maybe this makes the difference.
P.S.:if you install beta8 ,i think you will have to repeat all the steps i have told you above.

Last edited by dreyfuss; 11-28-2007 at 01:11 AM.
 
Old 11-29-2007, 10:46 AM   #10
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Nope, it's the same version: 1.0 beta 8 (rightmost column, first info box from top)
 
Old 11-29-2007, 05:06 PM   #11
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
Did you set the passkey in hcid.conf?
 
Old 11-30-2007, 03:59 PM   #12
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
These are my config files:

/etc/rc.d/rc.bluetooth.conf
Code:
# Bluetooth configuraton file

# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true

# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"

# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true

# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true

# Arguments to hidd
HIDD_OPTIONS=""

# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=true

# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=true

# Config file for rfcomm
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

# Start dund (allowed values are "true" and "false")
DUND_ENABLE=false

# Arguments to dund
DUND_OPTIONS="--listen --persist"

# Start pand (allowed values are "true" and "false")
PAND_ENABLE=false

# Arguments to pand
PAND_OPTIONS="--listen --role NAP"
/etc/bluetooth/hcid.conf
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 "DSA";

	# 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;
}

hope you can help me
 
Old 11-30-2007, 04:32 PM   #13
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
In your /etc/bluetooth/hcid.conf edit "local device class" section like this:
Code:
# Local device class
	class 0x3e0100;
        discovto 0;
Then restart.
 
Old 11-30-2007, 04:33 PM   #14
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
ok, i'll do that tomorrow and let you know how it went.

tanks
 
Old 12-01-2007, 03:28 AM   #15
kkmic
Member
 
Registered: Jul 2004
Location: Romania
Distribution: Slackware 13.0
Posts: 55

Original Poster
Rep: Reputation: 19
Works like a dream. Thank You.

The only issue is the "sdpdCan't listen on HID control channel: Address already in use" message during startup.

I've notice in another thread a similar problem that had this solution:
Quote:
I turned off starting of sdpd by rc.bluetooth and this stops the error, and my mouse and keyboard are working fine now.
Does anyone know why this error happened? Could sdpd be starting up elsewhere perhaps??
I'll try the same to see if things go right.

Thanks again.
 
  


Reply



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
Bluetooth Pairing problems in Slackware12 with KBluetooth gopi.d Slackware 1 11-08-2007 04:16 AM
Pairing Bluetooth devices - dongle can't see device? Mark_667 Ubuntu 1 05-11-2007 04:18 PM
bluetooth LG CU500 pairing problems txmedic03 Linux - Wireless Networking 0 01-22-2007 10:52 PM
Bluetooth pairing Dj Blaze Linux - Laptop and Netbook 0 01-28-2006 05:46 AM
bluetooth pairing meknb Linux - Hardware 0 01-05-2006 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration