From owner-freebsd-bluetooth@freebsd.org Sun Jul 5 02:19:29 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 A7F60A29A for ; Sun, 5 Jul 2015 02:19:29 +0000 (UTC) (envelope-from ccs189@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (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 6ADC41C24 for ; Sun, 5 Jul 2015 02:19:29 +0000 (UTC) (envelope-from ccs189@gmail.com) Received: by oiyy130 with SMTP id y130so98236616oiy.0 for ; Sat, 04 Jul 2015 19:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mF9eE1qeQl81fBr38ZbKZ8/UOmfMeyTDuvtrApQ1XTQ=; b=NFiWzfaCtOUz2N0BWxKqSTXuNqLwFhRyK0gTXEHCPaxSknbytLyKY9RYhAxMfDmaG2 HNICqG+Prch1q9p4YcQfVFCCmegPVJ4z+PuBJDVXdHEkG1p3i96wNEtZAp+r1OzqVFq+ 62rTV7WX0pTTS7/yiaDqj4cErw5PtYdP1145Hqx0NYbEXCnP77LIIktcUiycBruXxVKI MEmRj22GAgLNsn+uIC7/xB3m7W4fG4I35zK9iS68v41Lujqt+BIdKZKc0/kt8jWN0kCY yMIH+8HxAnpd2vj4rtSwW072KR0xtLLP3sGraY1Zd4vReU0TmVlI/zjgT0atSG21cb/2 3r4g== MIME-Version: 1.0 X-Received: by 10.202.53.136 with SMTP id c130mr39815001oia.2.1436062768250; Sat, 04 Jul 2015 19:19:28 -0700 (PDT) Received: by 10.60.42.2 with HTTP; Sat, 4 Jul 2015 19:19:28 -0700 (PDT) Date: Sun, 5 Jul 2015 10:19:28 +0800 Message-ID: Subject: T630 Logitech Bluetooth Mouse not re-connect after disconnect From: Claudius Chan To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Sun, 05 Jul 2015 02:19:29 -0000 Hi FreeBSD Bluetooth team, I currently running FreeBSD-current r279881 and appreciate the quality and 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. ====================== [chan@x1-carbon-bsd ~]$ sudo /usr/sbin/bthidd -d -c /etc/bluetooth/bthidd.conf -H /var/db/bthidd.hids -p /var/run/bthidd.pid bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) bthidd[1490]: Could not connect to 00:1f:20:d4:59:28. Connection reset by peer (54) bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) bthidd[1490]: Could not connect to 00:1f:20:d4:59:28. Host is down (64) bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) bthidd[1490]: Could not connect to 00:1f:20:d4:59:28. Connection reset by peer (54) bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) bthidd[1490]: Could not connect to 00:1f:20:d4:59:28. Connection reset by peer (54) bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) bthidd[1490]: Could not connect to 00:1f:20:d4:59:28. Connection reset by peer (54) bthidd[1490]: Opening outbound session for 00:1f:20:d4:59:28 (new_device=1, reconnect_initiate=1) ======================== **Currently the mouse is still in discover mode. 5. l2ping the mouse: l2ping -a logitech-mouse ** Not too sure why it make the connection working. if not I keep seeing the Connection reset by peers (54) from the bthidd. If need more testing or log I can try my best to do it :) Thanks Chan From owner-freebsd-bluetooth@freebsd.org Mon Jul 6 18:30:16 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 F3FF3A2E8 for ; Mon, 6 Jul 2015 18:30:15 +0000 (UTC) (envelope-from t06224eafa6-eccd16d0b-54350d8f3a854b1595cec3efa399f66a@bounce.twitter.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D50A814C1 for ; Mon, 6 Jul 2015 18:30:15 +0000 (UTC) (envelope-from t06224eafa6-eccd16d0b-54350d8f3a854b1595cec3efa399f66a@bounce.twitter.com) Received: by mailman.ysv.freebsd.org (Postfix) id D4221A2E5; Mon, 6 Jul 2015 18:30:15 +0000 (UTC) Delivered-To: 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 D34B8A2E4 for ; Mon, 6 Jul 2015 18:30:15 +0000 (UTC) (envelope-from t06224eafa6-eccd16d0b-54350d8f3a854b1595cec3efa399f66a@bounce.twitter.com) Received: from spring-chicken-ay.twitter.com (spring-chicken-ay.twitter.com [199.16.156.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83A8D14BE for ; Mon, 6 Jul 2015 18:30:15 +0000 (UTC) (envelope-from t06224eafa6-eccd16d0b-54350d8f3a854b1595cec3efa399f66a@bounce.twitter.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twitter.com; s=dkim-201406; t=1436207405; bh=LeIEwGwGtgpSOR3tO4SE3j32ZnuZMhJHPJd1m2L/YaA=; h=Date:From:To:Subject:MIME-Version:Content-Type:Message-ID; b=l1AM+YmHjHR5C8PXHj9IpZ9cTvsm8GqI/Ioipjx53hd4RJx+0SkNs0CPG/JQ4OxYy J+LqGw1Szv4HIYLAr51RD84Q92yd4+7jr+qhuWI0cLmwT2QOi8IUAVzXsO71KKEQCn IvfYsFgNwJHr6xPqfQvZ5G+QIRAnBxOtfLWqOhJ+r2Q/scE/XGRdhQd+Oh66wIJaqc ln4naYInJvHlWFO4qsqePbSw5RR4N64Si12NEt/pd/M1rlxZnY1CeCJiws4A7Gkm3a 8HIYeGIqe3d+HZoGH12LNS65lBZe2uM71A2xsTU62gAxo0VvZODgH9d2n1kzELKA/s deZ+gi0w2JwLg== X-MSFBL: eyJnIjoiRXZlcnl0aGluZyIsImIiOiJhdGxhLWF4dC0wNy1zcjEtRXZlcnl0aGlu Zy4xODQiLCJyIjoiYmx1ZXRvb3RoQGZyZWVic2Qub3JnIiwidSI6ImJsdWV0b290 aEBmcmVlYnNkLm9yZ0B1c2IjIzI0QDI0NEAzMzYyODQwNDIzQDBAMDBiOTUxZGJh ODc0OTVlNWMwODk2ZjYxNTI0Yzg1OTY5YjMyMzEyNCJ9 Date: Mon, 06 Jul 2015 18:30:05 +0000 From: Twitter To: =?UTF-8?B?2KfZhNi52YbZiNiv?= Subject: =?UTF-8?Q?Confirm_your_Twitt?= =?UTF-8?Q?er_account,_=D8=A7=D9=84=D8=B9=D9=86=D9=88=D8=AF?= MIME-Version: 1.0 Feedback-ID: 0040162518f58f41d1f0:16481b2a2bd9895cc9f3f73eb2597daffdce:none:twitterESP Message-ID: <71.4C.42740.D29CA955@twitter.com> 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: Mon, 06 Jul 2015 18:30:16 -0000 =D8=A7=D9=84=D8=B9=D9=86=D9=88=D8=AF, Confirm your email address to complete your Twitter account. It's easy - ju= st click on the button below. Click on the link below or copy and paste it into a browser: https://twitter.com/i/redirect?url=3Dhttps%3A%2F%2Ftwitter.com%2Faccount%2F= confirm_user_email%2F3362840423%2F62AAH-A27AG-143620%3Ft%3D1%26cn%3DZW1haWx= fY29uZmlybV9pbml0%26sig%3Db23f17aa8e815d75f5e70e42e4535257f1bea53c%26al%3D1= %26iid%3D54350d8f3a854b1595cec3efa399f66a%26ac%3D1%26autoactions%3D14362074= 05%26uid%3D3362840423%26nid%3D244%2B308&t=3D1&cn=3DZW1haWxfY29uZmly= bV9pbml0&sig=3Dc70241c43f37c419f49e9a7de3941c9b0b33df11&iid=3D54350= d8f3a854b1595cec3efa399f66a&uid=3D3362840423&nid=3D244+308 From owner-freebsd-bluetooth@freebsd.org Tue Jul 7 05:40:35 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 49F0E994601 for ; Tue, 7 Jul 2015 05:40:35 +0000 (UTC) (envelope-from takawata@init-main.com) Received: from sana.init-main.com (sana.init-main.com [IPv6:2001:240:28::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB51E1A1A for ; Tue, 7 Jul 2015 05:40:34 +0000 (UTC) (envelope-from takawata@init-main.com) Received: from ns.init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.14.3/8.14.3) with ESMTP id t675d8gm030156; Tue, 7 Jul 2015 14:39:09 +0900 (JST) (envelope-from takawata@ns.init-main.com) Message-Id: <201507070539.t675d8gm030156@sana.init-main.com> To: Claudius Chan Cc: freebsd-bluetooth@freebsd.org Subject: Re: T630 Logitech Bluetooth Mouse not re-connect after disconnect In-reply-to: Your message of "Sun, 05 Jul 2015 10:19:28 +0800." Date: Tue, 07 Jul 2015 14:39:08 +0900 From: Takanori Watanabe 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, 07 Jul 2015 05:40:35 -0000 In message , Claudius Chan さんいわく: >Hi FreeBSD Bluetooth team, > > >I currently running FreeBSD-current r279881 and appreciate the quality and >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 =================================================================== --- ng_l2cap_ulpi.c (revision 285236) +++ ng_l2cap_ulpi.c (working copy) @@ -398,6 +398,7 @@ ip->lcid = ch->scid; ip->psm = ch->psm; ip->ident = ch->ident; + ip->linktype = ch->con->linktype; NG_SEND_MSG_HOOK(error, l2cap->node, msg, l2cap->l2c, 0); } From owner-freebsd-bluetooth@freebsd.org Tue Jul 7 06:09:24 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 2AAEC994B2A for ; Tue, 7 Jul 2015 06:09:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 165D519C6 for ; Tue, 7 Jul 2015 06:09:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t6769NGr062804 for ; Tue, 7 Jul 2015 06:09:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bluetooth@FreeBSD.org Subject: [Bug 199882] Bluetooth mouse connected via USB dongle stopped working after r281198 (L2CA_ConnectRsp) Date: Tue, 07 Jul 2015 06:09:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: takawata@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bluetooth@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 07 Jul 2015 06:09:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199882 --- Comment #1 from Takanori Watanabe --- Created attachment 158471 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158471&action=edit pass linktype in connection indicate message from L2CAP to socket interface. I found a bug on my change. How about applying this patch? -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-bluetooth@freebsd.org Tue Jul 7 17:02:24 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 C98EDA32E for ; Tue, 7 Jul 2015 17:02:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B550518EB for ; Tue, 7 Jul 2015 17:02:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t67H2Osb059260 for ; Tue, 7 Jul 2015 17:02:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bluetooth@FreeBSD.org Subject: [Bug 199882] Bluetooth mouse connected via USB dongle stopped working after r281198 (L2CA_ConnectRsp) Date: Tue, 07 Jul 2015 17:02:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: takawata@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bluetooth@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 07 Jul 2015 17:02:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199882 --- Comment #2 from Takanori Watanabe --- (In reply to Takanori Watanabe from comment #1) I found a bug, which I think related to this, with rfcomm_sppd, So I commit a change set including this code as r285244. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-bluetooth@freebsd.org Sat Jul 11 16:42:31 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 1380799966C for ; Sat, 11 Jul 2015 16:42:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F40F82BD4 for ; Sat, 11 Jul 2015 16:42:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t6BGgUvL029813 for ; Sat, 11 Jul 2015 16:42:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bluetooth@FreeBSD.org Subject: [Bug 199882] Bluetooth mouse connected via USB dongle stopped working after r281198 (L2CA_ConnectRsp) Date: Sat, 11 Jul 2015 16:42:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: takawata@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: takawata@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 11 Jul 2015 16:42:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199882 Takanori Watanabe changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bluetooth@FreeBSD.o |takawata@FreeBSD.org |rg | Status|New |In Progress --- Comment #3 from Takanori Watanabe --- I confirmed to work Bluetooth (classic) mouse in my side. -- You are receiving this mail because: You are the assignee for the bug.