Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2007 12:09:54 -0500
From:      Eric Millbrandt <emillbrandt@coldhaus.com>
To:        freebsd-bluetooth@freebsd.org
Cc:        Eric Millbrandt <emillbrandt@coldhaus.com>
Subject:   bluetooth mouse/keyboard blues
Message-ID:  <472DFCE2.2010707@coldhaus.com>

next in thread | raw e-mail | index | archive | help
I am having trouble setting up a bluetooth mouse and keyboard on FreeBSD 
7.0-BETA1.  I followed the instructions from the handbook and what I 
found on google here... 
http://destari.blogspot.com/2006/01/setting-up-bluetooth-mouse-on-freebsd.html 
.  The keyboard does not work at all, but I am able to pull a 
configuration from bthidcontrol.  The mouse buttons work, but I can't 
move the cursor.  These issues occur in both on the console and in X.  I 
included log messages and config files below.  Any help would be greatly 
appreciated.

Thanks
Eric Millbrandt

11:58 emillbrandt@slate:/home/emillbrandt# uname -a
FreeBSD slate.coldhaus.com 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Mon Oct 29 
23:40:03 EDT 2007     
emillbrandt@slate.coldhaus.com:/usr/obj/usr/src/sys/SLATE  i386

from dmesg
Nov  4 10:57:38 slate kernel: ubt0: <vendor 0x0a12 product 0x0001, class 
224/1, rev 2.00/19.58, addr 2> on uhub3
Nov  4 10:57:38 slate kernel: ubt0: Interface 0 endpoints: 
interrupt=0x81, bulk-in=0x82, bulk-out=0x2
Nov  4 10:57:38 slate kernel: ubt0: Interface 1 (alt.config 5) 
endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, 
buffer size=294
Nov  4 10:57:38 slate kernel: WARNING: attempt to 
net_add_domain(bluetooth) after domainfinalize()
Nov  4 10:57:38 slate kernel: WARNING: attempt to 
net_add_domain(netgraph) after domainfinalize()
Nov  4 11:51:27 slate bthidd[1453]: Opening outbound session for 
00:1b:63:fc:6c:2c (new_device=1, reconnect_initiate=1)
Nov  4 11:51:57 slate bthidd[1453]: Could not connect to 
00:1b:63:fc:6c:2c. Host is down (64)
Nov  4 11:52:27 slate kernel: kbd3 at vkbd0

10:59 emillbrandt@slate:/home/emillbrandt# bthidcontrol -a keyboard query
device {
        bdaddr                  00:1b:63:fc:6c:2c;
        control_psm             0x11;
        interrupt_psm           0x13;
        reconnect_initiate      true;
        battery_power           false;
        normally_connectable    true;
        hid_descriptor          {
                0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01
                0x05 0x07 0x19 0xe0 0x29 0xe7 0x15 0x00
                0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02
                0x75 0x08 0x95 0x01 0x81 0x01 0x75 0x01
                0x95 0x05 0x05 0x08 0x19 0x01 0x29 0x05
                0x91 0x02 0x75 0x03 0x95 0x01 0x91 0x01
                0x75 0x08 0x95 0x06 0x15 0x00 0x26 0xff
                0x00 0x05 0x07 0x19 0x00 0x2a 0xff 0x00
                0x81 0x00 0xc0 0x05 0x0c 0x09 0x01 0xa1
                0x01 0x85 0x47 0x05 0x01 0x09 0x06 0xa1
                0x02 0x05 0x06 0x09 0x20 0x15 0x00 0x26
                0xff 0x00 0x75 0x08 0x95 0x01 0x81 0x02
                0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01
                0x85 0x11 0x15 0x00 0x25 0x01 0x75 0x01
                0x95 0x03 0x81 0x01 0x75 0x01 0x95 0x01
                0x05 0x0c 0x09 0xb8 0x81 0x02 0x06 0xff
                0x00 0x09 0x03 0x81 0x02 0x75 0x01 0x95
                0x03 0x81 0x01 0x05 0x0c 0x85 0x12 0x15
                0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x09
                0xcd 0x81 0x02 0x09 0xb3 0x81 0x02 0x09
                0xb4 0x81 0x02 0x09 0xb5 0x81 0x02 0x09
                0xb6 0x81 0x02 0x81 0x01 0x81 0x01 0x81
                0x01 0x85 0x13 0x15 0x00 0x25 0x01 0x75
                0x01 0x95 0x01 0x06 0x01 0xff 0x09 0x0a
                0x81 0x02 0x75 0x01 0x95 0x07 0x81 0x01
                0xc0
        };
}
10:59 emillbrandt@slate:/home/emillbrandt# bthidcontrol -a mouse query
device {
        bdaddr                  00:12:5a:57:a6:9a;
        control_psm             0x11;
        interrupt_psm           0x13;
        reconnect_initiate      true;
        battery_power           true;
        normally_connectable    false;
        hid_descriptor          {
                0x05 0x0c 0x09 0x01 0xa1 0x01 0x05 0x01
                0x09 0x02 0x85 0x14 0x06 0x00 0xff 0x0a
                0x12 0xfe 0x95 0x01 0x75 0x02 0x15 0x00
                0x25 0x03 0x81 0x02 0x0a 0x11 0xfe 0x75
                0x01 0x25 0x01 0x81 0x02 0x95 0x05 0x81
                0x01 0xc0 0x05 0x01 0x09 0x02 0xa1 0x01
                0x05 0x01 0x09 0x02 0x85 0x11 0x09 0x01
                0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x04
                0x95 0x04 0x75 0x01 0x25 0x01 0x81 0x02
                0x75 0x04 0x95 0x01 0x81 0x01 0x05 0x01
                0x09 0x30 0x09 0x31 0x09 0x38 0x00 0x00
                0x00 0x00 0x00 0x00 0x25 0x7f 0x81 0x06
                0x95 0x01 0x81 0x01 0xc0 0xc0 0x05 0x0c
                0x09 0x01 0xa1 0x01 0x85 0x19 0x06 0x00
                0xff 0x1a 0x18 0xff 0x2a 0x22 0xff 0x95
                0x0b 0x75 0x08 0x15 0x00 0x26 0xff 0x00
                0xb1 0x02 0x0a 0x23 0xff 0x95 0x01 0x75
                0x01 0x25 0x01 0xb1 0x02 0x75 0x07 0xb1
                0x01 0xc0
        };
}
I added both of these to bthidd.conf


from hcsecd.conf
device {
       bdaddr    00:1b:63:fc:6c:2c;
       name    "Apple Wireless Keyboard";
       key    nokey;
       pin    "5625264";
}

device {
       bdaddr    00:12:5a:57:a6:9a;
       name    "Microsoft Bluetooth Notebook Mouse 5000";
       key    nokey;
       pin    "0000";
}

DING! emillbrandt@slate:/home/emillbrandt# l2ping -a keyboard
0 bytes from keyboard seq_no=0 time=1905.898 ms result=0
0 bytes from keyboard seq_no=1 time=38.023 ms result=0
0 bytes from keyboard seq_no=2 time=13.141 ms result=0

11:45 emillbrandt@slate:/home/emillbrandt# l2ping -a mouse
0 bytes from mouse seq_no=0 time=1428.790 ms result=0
0 bytes from mouse seq_no=1 time=47.168 ms result=0
0 bytes from mouse seq_no=2 time=53.263 ms result=0

rc.conf
hcsecd_enable="YES"
bthidd_enable="YES"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?472DFCE2.2010707>