Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem on pairing Apple bluetooth keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Wed Jun 02, 2010 8:23 pm    Post subject: Problem on pairing Apple bluetooth keyboard Reply with quote

Hello there

Bluetooth on Gentoo is giving me a HARD time. I'm suffering every moment with it's setup like I had never suffered with Gentoo! :(
And all I want is using my bluetooth keyboard, but after reading TONS of documents, I'm about to give up, once and for all.
I emerged bluez-tools with the "old-daemons" USE flag, so I could get hidd, to follow the bluetooth HOWTO's in the gentoo wiki.

Let's see:

Code:

commodore~ # hidd --connect 00:22:41:DC:06:49
Can't create HID control channel: connection refused


Relevant files are as follow:

/etc/conf.d/bluetooth

Code:
# Bluetooth configuraton file

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

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

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

HCID_ENABLE=true
HIDD_ENABLE=true
HIDD_OPTIONS="--connect 00:22:41:DC:06:49"



/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 auto;

   # 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 "BlueZ (%d)";

   # Local device class
   class 0x000100;

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

device 00:22:41:DC:06:49 {
   name "applekeys";
   auth enable;
   encrypt enable;
}




/etc/bluetooth/pin

Code:
1234



Of course, 1234 is the code I enter (on the Apple bt keyboard) when I try to pair the kayboard...
When I push ENTER, I get that error: Can't create HID control channel: connection refused.

Any help would be appreciated...

thanks!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Thu Jun 03, 2010 7:43 pm    Post subject: Reply with quote

Hi,
I resolved bluetooth authentification issues with PIN by creating in /var/lib/bluetooth/xx:xx:xx:xx:xx:xx (for MAC bluetooth host address of hcix) a text file named pincodes where I write, one by line, the MAC address of the bluetooth devices I want to pair with, separated by a space and the pincode to use. For you it will be
Code:
00:22:41:DC:06:49 1234

With that, every bluetooth host communication using hcix to pair with this remote device it correctly authentificated. This is the only way I am sure to succeed for pincodes exchanges between remote and host for bluetooth. If your authentification with your bluetooth keyboard failed, I understand that the host "Can't create HID control channel: connection refused".
_________________
Paul
Back to top
View user's profile Send private message
drtebi
n00b
n00b


Joined: 20 Mar 2003
Posts: 44
Location: San Francisco

PostPosted: Sun Feb 03, 2013 9:14 am    Post subject: Reply with quote

Thank you, this just made my day. Amazing how much easier it is to create a little text file as opposed to clicking through three or four menus 20 times...
_________________
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." -- Albert Einstein
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Feb 03, 2013 1:00 pm    Post subject: Reply with quote

i had problems until i got bluez.... sudo emerge bluez

i still cant pair a headset though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum