Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2007 13:37:49 -0700
From:      "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com>
To:        "Eric Millbrandt" <emillbrandt@coldhaus.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: bluetooth mouse/keyboard blues
Message-ID:  <bb4a86c70711041237k2f715a8em682c5cfc54bed7a4@mail.gmail.com>
In-Reply-To: <bb4a86c70711041224i36bd2db6v824d92ab9a8655d8@mail.gmail.com>
References:  <472DFCE2.2010707@coldhaus.com> <bb4a86c70711041224i36bd2db6v824d92ab9a8655d8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Eric,

i just tried apple keyboard with

FreeBSD ant.private.org 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Wed Sep 12
20:40:41 PDT 2007
root@ant.private.org:/usr/obj/usr/src/sys/GENERIC  i386

and it works just fine. granted, it almost a couple month old system,
but bthidd(8) code has not changed in a while, so it still should
work.  i'm cvsup'ing RELENG_7 and will build it later.

thanks,
max

On 11/4/07, Maksim Yevmenkin <maksim.yevmenkin@gmail.com> wrote:
> Eric,
>
> > 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.
>
> 1) make sure you have paired bluetooth keyboard/mouse and your pc
>
> 2) what bluetooth keyboard and mouse are you using?
>
> 3) for keyboard, please make sure you have both vkbd(4) and kbdmux(4)
> loaded. also make sure kbdmux(4) keyboard is the default keyboard.
>
> 4) are there any messages from bthidd(8) in /var/log/messages?
>
> 5) try to run bthidd(8) in foreground to see if it prints anything strange
>
> > 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
>
> ok
>
> > 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
>
> this looks mostly ok. please make sure you have bluetooth connection
> between your keyboard and your pc
>
> > 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
> >         };
> > }
>
> this looks fine to me
>
> > 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
>
> this looks fine too.
>
> > 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";
> > }
>
> looks fine
>
> > 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
>
> looks normal (some bluetooth devices will always return 0 bytes in
> l2cap echo response)
>
> > 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
>
> looks normal (some bluetooth devices will always return 0 bytes in
> l2cap echo response)
>
> > rc.conf
> > hcsecd_enable="YES"
> > bthidd_enable="YES"
>
> looks ok
>
> btw, i have apple bluetooth keyboard here, so i will try to reproduce
> the problem.
>
> thanks,
> max
>



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