Hi misc@, An Apple wireless keyboard has come into my possession, and i'm trying to get it working on -current.
I rebuilt the kernel/userland based on cvs update on Friday with all the bluetooth devices enabled. I also installed bluetooth-tools and bluetooth-libs ports. Initially my bt dongle was claimed by aue*, so i disabled this using config -e and rebooted; it is correctly claimed by ubt*. Below are the steps i've taken to configure the keyboard, followed by a dmesg. I am able to query ubt0 and get the address of the keyboard, generate the pin to pair with it, and send sdp messages. However I'm never prompted to enter the pin on the keyboard, i.e. when i btdevctl it, which i understood was necessary, and when i issue the final command to attach, the btkbd is attached to bthidev0 and ubt0, then to wskbd, but ultimately bthidev0 is disconnecting, and the keyboard doesn't work... I've tried google, archives, and perusing the source of all the bt drivers but can't figure out why it's disconnecting, any ideas/advice/solutions would be appreciated. Cheers, John Shirley. #sdpd #pgrep sdpd => 17600 #bthcid #pgrep bthcid =>15662 #btconfig ubt0 up pscan switch class 0x02010c #btconfig -vvv =>ubt0: bdaddr 00:0a:3a:7c:9f:86 flags=3<UP,RUNNING> num_cmd = 1 num_acl = 5, acl_mtu = 1017 num_sco = 0, sco_mtu = 64 HCI version: 2.0 class: [0x000000] name: "BCM2045B3 Initialization Configuration Record File w/o UHE" voice: [0x0060] Input Coding: Linear PCM [16-bit, pos 0], 2's complement Air Coding: CVSD pin: variable options: -iscan -pscan -auth -encrypt -switch -hold -sniff -park -rssi ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 page timeout: 20 ms #btconfig ubt0 inquiry =>Device Discovery from device: ubt0 .... 1 response 1: bdaddr 00:1e:52:6e:12:15 : name "Apple Wireless Keyboard" : class: [0x002540] Peripheral Keyboard <Limited Discoverable> : page scan rep mode 0x01 : clock offset 32614 #btpin -d ubt0 -a 00:1e:52:6e:12:15 -r =>PIN: 2339 #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv =>Performing SDP query for service 'HID'.. local bdaddr: 00:0a:3a:7c:9f:86 remote bdaddr: 00:1e:52:6e:12:15 link mode: encrypt device type: HID control psm: 0x0011 interrupt psm: 0x0013 Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range 0..255 End collection Collection page=Consumer usage=Consumer_Control Collection page=Generic_Desktop usage=Keyboard Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical range 0..255 End collection End collection Input id=17 size=1 count=3 page=0x0000 usage=0x0000 Const, logical range 0..1 Collection page=Consumer usage=Consumer_Control Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical range 0..1 Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical range 0..1 Input id=17 size=1 count=3 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=1 count=1 page=Consumer usage=Pause/Play Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Fast_Forward Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Rewind Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Next_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Previous_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=19 size=1 count=1 page=0xff01 usage=0x000a Variable, logical range 0..1 Input id=19 size=1 count=7 page=0x0000 usage=0x0000 Const, logical range 0..1 End collection #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv -A =>Performing SDP query for service 'HID'.. local bdaddr: 00:0a:3a:7c:9f:86 remote bdaddr: 00:1e:52:6e:12:15 link mode: encrypt device type: HID control psm: 0x0011 interrupt psm: 0x0013 Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range 0..255 End collection Collection page=Consumer usage=Consumer_Control Collection page=Generic_Desktop usage=Keyboard Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical range 0..255 End collection End collection Input id=17 size=1 count=3 page=0x0000 usage=0x0000 Const, logical range 0..1 Collection page=Consumer usage=Consumer_Control Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical range 0..1 Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical range 0..1 Input id=17 size=1 count=3 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=1 count=1 page=Consumer usage=Pause/Play Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Fast_Forward Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Rewind Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Next_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Previous_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=18 size=0 count=1 page=0x0000 usage=0x0000 Const, logical range 0..1 Input id=19 size=1 count=1 page=0xff01 usage=0x000a Variable, logical range 0..1 Input id=19 size=1 count=7 page=0x0000 usage=0x0000 Const, logical range 0..1 End collection ###DMESG### using parent NVDA,Parent:: memaddr a0000000 size 10000000, : consaddr a2000000, : ioaddr 91000000, size 1000000: memtag 8000, iotag 8000: width 1920 linebytes 2048 height 1200 depth 8 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org <http://www.openbsd.org/> OpenBSD 4.3-current (GENERIC-W-BT) #0: Fri May 23 22:42:28 EST 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/macppc/compile/GENERIC-W-BT real mem = 1342177280 (1280MB) avail mem = 1287204864 (1227MB) mainbus0 at root: model PowerBook6,8 cpu0 at mainbus0: 7447A (Revision 0x102): 1499 MHz: 512KB L2 cache mem0 at mainbus0 spdmem0 at mem0: no EEPROM found spdmem1 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5 memc0 at mainbus0: uni-n "hw-clock" at memc0 not configured kiic0 at memc0 offset 0xf8001000 iic0 at kiic0 adt0 at iic0 addr 0x2e: adt7467 rev 0x71 asms0 at iic0 addr 0x58: rev 1.34, version 0.1 mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff pci0 at mpcpcibr0 bus 0 pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00 vgafb0 at pci0 dev 16 function 0 "NVIDIA GeForce FX Go 5200" rev 0xa1, mmio wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation) mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x5 pci1 at mpcpcibr1 bus 0 pchb1 at pci1 dev 11 function 0 "Apple UniNorth PCI" rev 0x00 bwi0 at pci1 dev 18 function 0 "Broadcom BCM4306" rev 0x03: irq 52, address 00:11:24:94:14:cb macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00 openpic0 at macobio0 offset 0x40000: version 0x4614 little endian macgpio0 at macobio0 offset 0x50 "modem-reset" at macgpio0 offset 0x1d not configured "modem-power" at macgpio0 offset 0x1c not configured "accelerometer-1" at macgpio0 offset 0x13 not configured "accelerometer-2" at macgpio0 offset 0x14 not configured "headphone-mute" at macgpio0 offset 0x1f not configured "amp-mute" at macgpio0 offset 0x20 not configured "hw-reset" at macgpio0 offset 0x25 not configured "linein-detect" at macgpio0 offset 0xc not configured "headphone-detect" at macgpio0 offset 0x17 not configured macgpio1 at macgpio0 offset 0x9 irq 47 "programmer-switch" at macgpio0 offset 0x11 not configured "cpu-vcore-select" at macgpio0 offset 0x6b not configured "gpio4" at macgpio0 offset 0x1e not configured "escc-legacy" at macobio0 offset 0x12000 not configured zsc0 at macobio0 offset 0x13000: irq 22,23 zstty0 at zsc0 channel 0 zstty1 at zsc0 channel 1 snapper0 at macobio0 offset 0x0: irq 30,1,2 "timer" at macobio0 offset 0x15000 not configured adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 2 targets akbd0 at adb0 addr 2: PowerBook G4 keyboard (Inverted T) wskbd0 at akbd0: console keyboard, using wsdisplay0 abtn0 at adb0 addr 7: brightness/volume/eject buttons apm0 at adb0: battery flags 0x5, 92% charged piic0 at adb0 iic1 at piic0 "battery" at macobio0 offset 0x0 not configured "backlight" at macobio0 offset 0xf300 not configured kiic1 at macobio0 offset 0x18000 iic2 at kiic1 wdc0 at macobio0 offset 0x20000 irq 24: DMA atapiscsi0 at wdc0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <MATSHITA, CD-RW CW-8123, CA14> ATAPI 5/cdrom removable cd0(wdc0:0:0): using BIOS timings, DMA mode 2 audio0 at snapper0 ohci0 at pci1 dev 24 function 0 "Apple Intrepid USB" rev 0x00: irq 0, version 1.0, legacy support ohci1 at pci1 dev 25 function 0 "Apple Intrepid USB" rev 0x00: irq 0, version 1.0, legacy support ohci2 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29, version 1.0, legacy support ohci3 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0 ohci4 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0 ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1 usb2 at ohci1: USB revision 1.0 uhub2 at usb2 "Apple OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci2: USB revision 1.0 uhub3 at usb3 "Apple OHCI root hub" rev 1.00/1.00 addr 1 usb4 at ohci3: USB revision 1.0 uhub4 at usb4 "NEC OHCI root hub" rev 1.00/1.00 addr 1 usb5 at ohci4: USB revision 1.0 uhub5 at usb5 "NEC OHCI root hub" rev 1.00/1.00 addr 1 mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x6 pci2 at mpcpcibr2 bus 0 pchb2 at pci2 dev 11 function 0 "Apple UniNorth PCI" rev 0x00 kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00 wdc1 at kauaiata0 irq 39: DMA wd0 at wdc1 channel 0 drive 0: <HTS721010G9AT00> wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 "Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41, address 00:11:24:82:74:4c bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4 uhub6 at uhub0 port 2 "Standard Microsystems product 0x2512" rev 2.00/0.00 addr 2 uhub7 at uhub6 port 1 "Standard Microsystems product 0x2602" rev 2.00/0.00 addr 3 umass0 at uhub7 port 1 configuration 1 interface 0 "Generic Flash Card Reader" rev 2.00/5.39 addr 4 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets sd0 at scsibus1 targ 1 lun 0: <Generic, Flash HS-CF, 5.39> SCSI0 0/direct removable sd0(umass0:1:0): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present sd0(umass0:1:0): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present sd0: drive offline sd1 at scsibus1 targ 1 lun 1: <Generic, Flash HS-COMBO, 5.39> SCSI0 0/direct removable sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present sd1: drive offline ubt0 at uhub7 port 4 "Broadcom Corp BELKIN BLUETOOTH USB ADAPTER CL. 1" rev 2.00/4.13 addr 5 uhub8 at uhub4 port 1 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2 "Apple Computer ADB device" rev 2.00/17.92 addr 2 at uhub3 port 1 not configured rum0 at uhub8 port 1 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 3 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:1b:11:13:ee:20 uhidev0 at uhub3 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Trackpad" rev 2.00/0.06 addr 3 uhidev0: iclass 3/1 tpms0 at uhidev0: 12 inch PowerBook Trackpad wsmouse0 at tpms0 mux 0 uhidev1 at uhub8 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 1.10/15.00 addr 4 uhidev1: iclass 3/1 ums0 at uhidev1: 8 buttons, Z dir wsmouse1 at ums0 mux 0 softraid0 at root sd0(umass0:1:0): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present bootpath: /[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]:/bsd root on wd0a swap on wd0b dump on wd0b bthub0 at ubt0 00:0a:3a:7c:9f:86 bthidev0 at bthub0 00:1e:52:6e:12:15 encrypt btkbd0 at bthidev0 reportid 1 wskbd1 at btkbd0 mux 1 wskbd1: connecting to wsdisplay0 bthidev0: reportid 17 not configured bthidev0: reportid 18 not configured bthidev0: reportid 19 not configured bthidev0: reportid 71 not configured bthidev0: disconnected