You are not logged in.

#1 2009-03-22 15:51:53

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Can't get paring of apple bluetooth keyboard to work [SOLVED]

Followed the bluetooth keyboard guide etc on the wiki and also searched the forum without success.

/etc/bluetooth/hcid.conf

device 00:1F:5B:FD:E3:85 {
  name "Apple Wireless Keyboard";
  auth disable;
  encrypt disable;
}

/etc/conf.d/bluetooth

# Bluetooth configuraton file

# Bluetooth services (allowed values are "true" and "false")

# Run the bluetooth HID daemon (default: false)
HIDD_ENABLE="true"

HIDD_OPTIONS="--timeout 8 --master --server --connect 00:1F:5B:FD:E3:8"

hidd --search gives:   Can't create HID controle channel: Connection refused


Can anyone tell me how they got their keyboard working?

Last edited by xd-0 (2009-03-22 16:23:41)

Offline

#2 2009-03-22 16:00:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

When you have hidd performing the search you need to type in a pin on your keyboard (e.g. 1234). If you have Gnome or KDE bluetooth front-ends installed you should get a popup requiring authentication for the keyboard to connect (and be paired). There you should type in the same key, then it should work.

It's kinda pesky. But after that it should work without user intervention, the authentication pin is just for the initial setup.

If you google a bit you'll find lots of hits (mostly Ubuntu) on how to get it to work. I have that same keyboard too, and I love it, but it was a b*tch to get to work, I can tell you that wink. I'm not home so I can't check for the exact commands or configuration options.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-03-22 16:23:06

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

Installed bluez-gnome and paired the keyboard as you mentioned and now it is detected at boot (even after removing bluez-gnome). So I guess mapping the keyboard is all thats left.
But if you have the time later on please post your configs so I can compare them. smile Also if someone knows how to pair the keyboard without the need of more apps than bluez please send me a pm (or post it here).

Thanks for the quick help B!

Offline

#4 2009-03-22 16:25:13

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

Yes, once it's paired the procedure doesn't need repeating smile.

Are you using the latest bluez packages on the repos? I had issues upgrading to the new bluez stack (4.x) so I'm still using the old stuff... Is the keyboard the only bluetooth device you're using, or do you have a bluetooth mouse too?

I haven't found any method to perform the authentication without needing a GUI, unfortunately. I'm not sure if there is one, since the topic has been covered plenty (I'd like to do without too).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-03-22 16:34:49

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

I'm using bluez 4.30-1 from the repo and this keyboard is so far the only bluetooth device.

Offline

#6 2009-06-23 16:51:19

Xeo84
Member
From: Italy
Registered: 2008-08-08
Posts: 39
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

i have same issue but i don't use gnome!!!
i use fluxbox! there is another way to pair the keyboard without gnome-bluez???

when i type
hidd --search
i found the keyboard and if type the pin (0000) i recive connection refused!!

my hcid.conf:

#
# 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";
# PIN helper
# if you want a interactiv query of your pin use /usr/bin/bluepin
# /bin/bluepincat is using the pin in the /etc/bluetooth/pin file
# pin_helper /usr/bin/bluepin;
#pin_helper /bin/bluepincat;

# D-Bus PIN helper
#dbus_pin_helper;
}

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

# Local device class
# e.g.
# 0xsss100 = Computer
# 0xsss104 = Computer Desktop
# 0xsss108 = Computer Server
# 0xsss10c = Computer Laptop
# The 'sss' above defines the service-class (not quite, only the
# first 11 bits, the next 11 define the device-class, than 2 format bits.)
# See https://www.bluetooth.org/foundry/assignnumb/document/baseband
# for more information.
# 0x100bbb stands for "Object Transfer (v-Inbox, v-Folder, ...)"
# 0x020bbb stands for "Networking (LAN, Ad hoc, ...)"
class 0x100100;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
# valid parameters: enable | disable
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;

# Authentication and Encryption (Security Mode 3)
auth disable;
encrypt disable;
}



device 00:22:41:DC:94:48 {
  name "Apple Wireless Keyboard";
  passkey "0000";
  encrypt disable;
}

thanks!

Last edited by Xeo84 (2009-06-23 17:41:39)

Offline

#7 2009-06-23 18:09:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Can't get paring of apple bluetooth keyboard to work [SOLVED]

Open your own topic on this please smile. Old topic is old.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB