From owner-freebsd-bluetooth@freebsd.org Tue Jul 14 07:56:48 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2914199C686 for ; Tue, 14 Jul 2015 07:56:48 +0000 (UTC) (envelope-from ccs189@gmail.com) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4D51AE7 for ; Tue, 14 Jul 2015 07:56:47 +0000 (UTC) (envelope-from ccs189@gmail.com) Received: by obnw1 with SMTP id w1so1252116obn.3 for ; Tue, 14 Jul 2015 00:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aqud5s47OxREq2OwYrxpNnstO5ZFh1lQV2J2CoFmvuQ=; b=OTg+kbyj/56L+LAE6wj0vqF7Vkpe65r1j1EjSmZNzkc2CLZpZsf1+yQc+JaYSVi22K +tqtOC/MErih22xI1Hnvf+Nbg3/hyLUN6ZgPaNHx9jAK0g3SwUhBb9zogaoKWtDlbY9c 1VgsSjeR+O+WVw8Uz3qtPcomK3YYe4XCTZxkpTTrUm/EeU/WNW6lUQfLqucoGVsn1P8q d8gpG5ZW0XP6N6XlZNTNczmSI6MA4AVNcYxZku+Z4NyRZNLckyPFG4OZQ5wxenOQT2l7 9q8UA5dc9ikmFf8b4B6MmKBSBBSmx6jg6bKD87jldIbrD90WJCuST+n0uKQW3W9OaY89 Hbpg== MIME-Version: 1.0 X-Received: by 10.182.165.71 with SMTP id yw7mr33860225obb.16.1436860607245; Tue, 14 Jul 2015 00:56:47 -0700 (PDT) Received: by 10.60.42.2 with HTTP; Tue, 14 Jul 2015 00:56:47 -0700 (PDT) In-Reply-To: <201507070539.t675d8gm030156@sana.init-main.com> References: <201507070539.t675d8gm030156@sana.init-main.com> Date: Tue, 14 Jul 2015 15:56:47 +0800 Message-ID: Subject: Re: T630 Logitech Bluetooth Mouse not re-connect after disconnect From: Claudius Chan To: Takanori Watanabe Cc: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 07:56:48 -0000 Hi Takanori, I updated to latest release of FreeBSD-Current r285346, seems like still the same. On Tue, Jul 7, 2015 at 1:39 PM, Takanori Watanabe wrote: > In message < > CAAVaLNeq2H_aU0e_+bwOnz06tTZtWEndyDVrhfiNRhsH5HhRHg@mail.gmail.com> > , Claudius Chan =E3=81=95=E3=82=93=E3=81=84=E3=82=8F=E3=81=8F: > >Hi FreeBSD Bluetooth team, > > > > > >I currently running FreeBSD-current r279881 and appreciate the quality a= nd > >stability of the FreeBSD. It would be perfect if my mouse working > >flawlessly. > > > > > >I have issue with my T630 bluetooth mouse to my X1 Carbon Laptop. Every > >time the mouse disconnect (turn off/on) or wake up OS wake up from sleep= , > >the mouse just can't re-connect. I have to set my mouse to discover mode > >and re-connect the mouse. I tried with another bluetooth mouse(sony > >bluetooth mouse) is working fine. Not sure what went wrong. > > > >The following steps is what I done in order to reconnect the mouse: > > > >1. Set the mouse to discover mode > > > >2. Stop bthidd daemon > > > >3. run the commad: sudo bthidcontrol -a logitech-mouse forget > > > >4. start the bthidd daemon and doing mouse activity such as click or > moving > >mouse. > > > > I found a bug on my change. > How about this patch ? > > Index: ng_l2cap_ulpi.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- ng_l2cap_ulpi.c (revision 285236) > +++ ng_l2cap_ulpi.c (working copy) > @@ -398,6 +398,7 @@ > ip->lcid =3D ch->scid; > ip->psm =3D ch->psm; > ip->ident =3D ch->ident; > + ip->linktype =3D ch->con->linktype; > > NG_SEND_MSG_HOOK(error, l2cap->node, msg, l2cap->l2c, 0); > } >