Skip to contentSkip to conversation

Fix Apple Wireless keyboard pairing?

PATCH In review Bastien Nocera 3 participants 6 messages Oct 15, 2008 – Oct 23, 2008 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Apple Wireless keyboard pairing?

Heya,

If anyone has an Apple Wireless keyboard to test pairing against. I believe the attached patch to be correct. Otherwise Apple keyboards (which use the same OUI) will get a PIN of 0000.

Cheers

wizard/main.c +4 -3
index 0854913..0340063 100644
@@ -62,9 +62,10 @@ static gboolean pincode_callback(DBusGMethodInvocation *context,
 	const char *pincode = target_pincode;
 	gchar *text;
 
-	/* Apple Wireless and Mighty Mouse */
-	if (g_str_has_prefix(target_address, "00:0A:95:") == TRUE ||
-			g_str_has_prefix(target_address, "00:14:51:") == TRUE)
+	/* Apple Wireless and Mighty Mouse, and just the mice */
+	if ((g_str_has_prefix(target_address, "00:0A:95:") == TRUE ||
+			g_str_has_prefix(target_address, "00:14:51:") == TRUE) &&
+	    target_type == BLUETOOTH_TYPE_MOUSE)
 		pincode = "0000";
 
 	/* Most headsets are using 0000 as pincode */
maintainer
#1 lore raw

Hi Bastien,

Quoted 3 lines

If anyone has an Apple Wireless keyboard to test pairing against. I believe the attached patch to be correct. Otherwise Apple keyboards (which use the same OUI) will get a PIN of 0000.

sounds reasonable. Patch has been applied. Thanks.

Regards

Marcel

#2 lore raw
In reply to Bastien Nocera

Hi Bastien:

I've got one of these Aluminum BT keyboards, but it's MAC address is quite different:

00:1B:63:FA:CD:5A Apple Wireless Keyboard

Where did you get your data from indicating that it shared the same prefix as the mighty mouse?

Regards

Quoted 8 lines · Bastien Nocera

Heya,

If anyone has an Apple Wireless keyboard to test pairing against. I believe the attached patch to be correct. Otherwise Apple keyboards (which use the same OUI) will get a PIN of 0000.

Cheers

Signature · 3 lines
Mario Limonciello
*Dell | Linux Engineering*
[email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 9 lines · Mario Limonciello

Hi Bastien:

I've got one of these Aluminum BT keyboards, but it's MAC address is quite different:

00:1B:63:FA:CD:5A Apple Wireless Keyboard

Where did you get your data from indicating that it shared the same prefix as the mighty mouse?

Some of them would. See bug report at:
https://bugzilla.redhat.com/show_bug.cgi?id=466988

Pairing keyboards still doesn't work as expected, but I should get some hardware soon to fix that.

Cheers

#5 lore raw

Hi Bastien:

Yeah, I'll definitely agree these keyboards are quite finicky to get paired. I was initially hoping your patch would help that, but then realized it won't affect mine. It seems that the only way I've gotten them to improve is if I remove any other devices that were paired with them previously from the proximity and try to find a good combination of pressing buttons in the GUI and pressing the power button on the keyboard.

I think the poster to that bug has the older pre-broadcom series of this hardware, which would explain the similar ID to the mighty mouse.

Regards

Quoted 22 lines · Bastien Nocera
Quoted 10 lines · Mario Limonciello

Hi Bastien:

I've got one of these Aluminum BT keyboards, but it's MAC address is quite different:

00:1B:63:FA:CD:5A Apple Wireless Keyboard

Where did you get your data from indicating that it shared the same prefix as the mighty mouse?

Some of them would. See bug report at:
https://bugzilla.redhat.com/show_bug.cgi?id=466988

Pairing keyboards still doesn't work as expected, but I should get some hardware soon to fix that.

Cheers

Signature · 3 lines
Mario Limonciello
*Dell | Linux Engineering*
[email protected]
maintainer
#6 lore raw

Hi Mario,

Quoted 9 lines

Yeah, I'll definitely agree these keyboards are quite finicky to get paired. I was initially hoping your patch would help that, but then realized it won't affect mine. It seems that the only way I've gotten them to improve is if I remove any other devices that were paired with them previously from the proximity and try to find a good combination of pressing buttons in the GUI and pressing the power button on the keyboard.

I think the poster to that bug has the older pre-broadcom series of this hardware, which would explain the similar ID to the mighty mouse.

please do me favor and stop top-posting.

http://www.bluez.org/development/lists/

Regards

Marcel