From owner-freebsd-bluetooth@freebsd.org Sun Mar 1 09:46:10 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 245B826B60C for ; Sun, 1 Mar 2020 09:46:10 +0000 (UTC) (envelope-from jason-fbsd-bluetooth@shalott.net) Received: from waffle.shalott.net (waffle.shalott.net [209.151.236.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.shalott.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Vdh00X1Vz4bw8 for ; Sun, 1 Mar 2020 09:46:07 +0000 (UTC) (envelope-from jason-fbsd-bluetooth@shalott.net) Received: (qmail 5758 invoked by uid 2034); 1 Mar 2020 09:45:59 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 1 Mar 2020 09:45:59 -0000 Date: Sun, 1 Mar 2020 01:45:59 -0800 (PST) From: jason-fbsd-bluetooth@shalott.net X-X-Sender: jason@waffle.shalott.net To: freebsd-bluetooth@freebsd.org Subject: ath3k USB bluetooth card not detected by ng_ubt, possible regression Message-ID: User-Agent: Alpine 2.22 (LRH 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 48Vdh00X1Vz4bw8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jason-fbsd-bluetooth@shalott.net designates 209.151.236.43 as permitted sender) smtp.mailfrom=jason-fbsd-bluetooth@shalott.net X-Spamd-Result: default: False [-1.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.06)[-0.058,0]; IP_SCORE(-0.01)[country: US(-0.05)]; R_SPF_ALLOW(-0.20)[+mx:shalott.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[shalott.net]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_NO_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:11051, ipnet:209.151.224.0/19, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 09:46:10 -0000 Hello. I am trying to get an ath3k-based USB bluetooth adapter working. I previously had this adapter working under FreeBSD, several years ago (FreeBSD-8 or FreeBSD-9 timeframe); but it doesn't seem to work now on my current FreeBSD-12 box. After loading the firmware, it is not detected by ng_ubt. The card is an ASUS USB-BT211, and shows up as vendor 0x0cf3 product 0x3000. Attempts to use the ath3kfw utility fail: # ath3kfw -D -d ugen1.4 -f /usr/local/share/ath3k-firmware -I ath3kfw: opening dev 1.4 ath3k_get_state: libusb_control_transfer() failed: code=-4 main: ath3k_get_state() failed! However, the old kernel-based firmware loader (https://people.freebsd.org/~emax/) still seems to work. After building and loading ath3k-1.ko and ubtath3kfw.ko and inserting my card, I get: ugen1.4: at usbus1 ubtath3kfw0 on uhub5 ubtath3kfw0: on usbus1 ugen1.4: at usbus1 (disconnected) ubtath3kfw0: at uhub5, port 2, addr 4 (disconnected) ubtath3kfw0: detached ugen1.4: at usbus1 The switch from 0x3000 to 0x3002 seems to indicate that the card is, in fact, loading the firmware correctly. However, when I load ng_ubt.ko, it does not seem to detect the card, and no ubt0 device ever shows up. The machine is an amd64 box, running 12.1-STABLE; the card is plugged into a USB2 port, though the machine does have a USB3 controller as well. Please let me know what other info I can provide or what I can try to help figure out why the card is not being detected correctly by the ng_ubt driver. It would also be nice to figure out why the user-space firmware loader consistently fails but the old kernel-based firmware loader consistently succeeds; but as long as there's a method to load the firmware at all, this is less urgent. Thanks. -Jason From owner-freebsd-bluetooth@freebsd.org Mon Mar 2 22:40:13 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 169F825C9F2 for ; Mon, 2 Mar 2020 22:40:13 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (mx1.dismail.de [78.46.223.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.dismail.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48WZpg31fgz4NYy for ; Mon, 2 Mar 2020 22:40:11 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id ab6c14a2; Mon, 2 Mar 2020 23:40:08 +0100 (CET) Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id cd441dd9; Mon, 2 Mar 2020 23:40:07 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 1278ae44; Mon, 2 Mar 2020 23:40:07 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 88b57884 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 2 Mar 2020 23:40:07 +0100 (CET) Date: Mon, 2 Mar 2020 17:39:57 -0500 From: ajtiM To: Iain Hibbert Cc: Dirk Engling , freebsd-bluetooth@freebsd.org Subject: Re: problem with apple magic mouse Message-ID: <20200302173957.1dcc6f01@dismail.de> In-Reply-To: References: <20200223150218.361332e4@dismail.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48WZpg31fgz4NYy X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[dismail.de:s=20190914]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:78.46.223.134]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.16)[ip: (-9.91), ipnet: 78.46.0.0/15(0.69), asn: 24940(-1.56), country: DE(-0.02)]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[134.223.46.78.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[dismail.de:+]; DMARC_POLICY_ALLOW(-0.50)[dismail.de,reject]; DWL_DNSWL_MED(-2.00)[dismail.de.dwl.dnswl.org : 127.0.5.2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:78.46.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 22:40:13 -0000 On Thu, 27 Feb 2020 07:50:16 +0000 (GMT) Iain Hibbert wrote: > On Wed, 26 Feb 2020, Dirk Engling wrote: >=20 > > On 23.02.20 21:02, ajtiM via freebsd-bluetooth wrote: > >=20 > > > I am using long time Apple Magic Mouse and it works without > > > problems. Now I have a problem (doesn't work), middle > > > click/scrolling. I got messages: > > >=20 > > > Accepted control connection from 7c:d1:c3:69:8b:67 > > > bthidd[38707]: Accepted interrupt connection from > > > 7c:d1:c3:69:8b:67 bthidd[38707]: Remote device 7c:d1:c3:69:8b:67 > > > has closed control connection bthidd[38707]: Accepted control > > > connection from 7c:d1:c3:69:8b:67 bthidd[38707]: Accepted > > > interrupt connection from 7c:d1:c3:69:8b:67 bthidd[38707]: Could > > > not process mouse events from 7c:d1:c3:69:8b:67.Invalid argument > > > (22) > > >=20 > > > I didn't change anything. > >=20 > > Hmm, maybe the CONS_MOUSECTL ioctl has changed. What OS version are > > you using? I wonder why that would suddenly appear. Need to check > > with my Magic Mouse, I do only have access to in 2 weeks time. >=20 > I use a Magic Mouse, and generally see this kind of disconnecting=20 > behaviour when the battery is exhausted - is there any other data > sent from the mouse? It does send battery reports sometimes (# 0x30 > and 0x47) >=20 > iain I put the new battery and I have the same problem. Is it something wrong with the mouse, please? --=20 =E2=80=9CThere is only one good, knowledge, and one evil, ignorance.=E2=80= =9D =E2=80=95 Socrates=20 From owner-freebsd-bluetooth@freebsd.org Wed Mar 4 23:16:01 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ABCD1255013 for ; Wed, 4 Mar 2020 23:16:01 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (mx1.dismail.de [78.46.223.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.dismail.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48XqW12Qbnz4cl1 for ; Wed, 4 Mar 2020 23:15:56 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id e5a45813; Thu, 5 Mar 2020 00:15:52 +0100 (CET) Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id d7cf93ac; Thu, 5 Mar 2020 00:15:51 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 1a0a8fc2; Thu, 5 Mar 2020 00:15:51 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 46a8e9df (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 5 Mar 2020 00:15:51 +0100 (CET) Date: Wed, 4 Mar 2020 18:15:42 -0500 From: ajtiM To: Iain Hibbert Cc: Dirk Engling , freebsd-bluetooth@freebsd.org Subject: Re: problem with apple magic mouse Message-ID: <20200304181542.3e7dbf68@dismail.de> In-Reply-To: References: <20200223150218.361332e4@dismail.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48XqW12Qbnz4cl1 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[dismail.de:s=20190914]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:78.46.223.134]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.16)[ip: (-9.91), ipnet: 78.46.0.0/15(0.69), asn: 24940(-1.56), country: DE(-0.02)]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[134.223.46.78.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[dismail.de:+]; DMARC_POLICY_ALLOW(-0.50)[dismail.de,reject]; DWL_DNSWL_MED(-2.00)[dismail.de.dwl.dnswl.org : 127.0.5.2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:78.46.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 23:16:01 -0000 On Thu, 27 Feb 2020 07:50:16 +0000 (GMT) Iain Hibbert wrote: > On Wed, 26 Feb 2020, Dirk Engling wrote: >=20 > > On 23.02.20 21:02, ajtiM via freebsd-bluetooth wrote: > >=20 > > > I am using long time Apple Magic Mouse and it works without > > > problems. Now I have a problem (doesn't work), middle > > > click/scrolling. I got messages: > > >=20 > > > Accepted control connection from 7c:d1:c3:69:8b:67 > > > bthidd[38707]: Accepted interrupt connection from > > > 7c:d1:c3:69:8b:67 bthidd[38707]: Remote device 7c:d1:c3:69:8b:67 > > > has closed control connection bthidd[38707]: Accepted control > > > connection from 7c:d1:c3:69:8b:67 bthidd[38707]: Accepted > > > interrupt connection from 7c:d1:c3:69:8b:67 bthidd[38707]: Could > > > not process mouse events from 7c:d1:c3:69:8b:67.Invalid argument > > > (22) > > >=20 > > > I didn't change anything. > >=20 > > Hmm, maybe the CONS_MOUSECTL ioctl has changed. What OS version are > > you using? I wonder why that would suddenly appear. Need to check > > with my Magic Mouse, I do only have access to in 2 weeks time. >=20 > I use a Magic Mouse, and generally see this kind of disconnecting=20 > behaviour when the battery is exhausted - is there any other data > sent from the mouse? It does send battery reports sometimes (# 0x30 > and 0x47) >=20 > iain More info. Today I try to setup mouse again. I run: hccontrol read_node_list Name ID Num hooks ubt0hci 00000007 3 I hccontrol -n 00000007 inquiryd and I got: Could not execute command "inquiry". Operation timed out Thank you. =E2=80=9CThere is only one good, knowledge, and one evil, ignorance.=E2=80= =9D =E2=80=95 Socrates=20 From owner-freebsd-bluetooth@freebsd.org Thu Mar 5 08:01:04 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C4272618CF for ; Thu, 5 Mar 2020 08:01:04 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 48Y38t6LKjz4GYC for ; Thu, 5 Mar 2020 08:01:02 +0000 (UTC) (envelope-from plunky@ogmig.net) X-Originating-IP: 188.29.138.93 Received: from galant.ogmig.net (188.29.138.93.threembb.co.uk [188.29.138.93]) (Authenticated sender: plunky@ogmig.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 60485E0005; Thu, 5 Mar 2020 08:00:59 +0000 (UTC) Received: by galant.ogmig.net (Postfix, from userid 1000) id 8B11C60B5E; Thu, 5 Mar 2020 08:00:52 +0000 (GMT) Date: Thu, 5 Mar 2020 08:00:52 +0000 (GMT) From: Iain Hibbert To: ajtiM cc: Dirk Engling , freebsd-bluetooth@freebsd.org Subject: Re: problem with apple magic mouse In-Reply-To: <20200304181542.3e7dbf68@dismail.de> Message-ID: References: <20200223150218.361332e4@dismail.de> <20200304181542.3e7dbf68@dismail.de> User-Agent: Alpine 2.21 (NEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 48Y38t6LKjz4GYC X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of plunky@ogmig.net designates 217.70.183.196 as permitted sender) smtp.mailfrom=plunky@ogmig.net X-Spamd-Result: default: False [-4.01 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[196.183.70.217.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:217.70.183.192/28]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ogmig.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988,0]; IP_SCORE(-1.63)[ip: (-5.28), ipnet: 217.70.176.0/20(-1.57), asn: 29169(-1.28), country: FR(0.00)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[196.183.70.217.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[93.138.29.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 08:01:04 -0000 On Wed, 4 Mar 2020, ajtiM wrote: > More info. > Today I try to setup mouse again. > I run: > > hccontrol read_node_list > Name ID Num hooks > ubt0hci 00000007 3 > > I hccontrol -n 00000007 inquiryd > and I got: > Could not execute command "inquiry". Operation timed out the hcidump program in ports can (maybe) help, it will show how your host system is attempting to communicate with the mouse the above hccontrol error just means that it did not respond to a device inquiry. I don't know exactly what states the mouse would be in and when it would respond to such, if it was not connected it might only do that for a short time after being turned on (for instance) but hcidump would reveal more iain From owner-freebsd-bluetooth@freebsd.org Thu Mar 5 09:33:11 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 71B79263C48 for ; Thu, 5 Mar 2020 09:33:11 +0000 (UTC) (envelope-from jason-fbsd-bluetooth@shalott.net) Received: from waffle.shalott.net (waffle.shalott.net [209.151.236.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.shalott.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Y5C86QbGz4Tp4 for ; Thu, 5 Mar 2020 09:33:08 +0000 (UTC) (envelope-from jason-fbsd-bluetooth@shalott.net) Received: (qmail 13894 invoked by uid 2034); 5 Mar 2020 09:33:01 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Mar 2020 09:33:01 -0000 Date: Thu, 5 Mar 2020 01:33:01 -0800 (PST) From: jason-fbsd-bluetooth@shalott.net X-X-Sender: jason@waffle.shalott.net To: freebsd-bluetooth@freebsd.org Subject: Re: ath3k USB bluetooth card not detected by ng_ubt, possible regression In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (LRH 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 48Y5C86QbGz4Tp4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jason-fbsd-bluetooth@shalott.net designates 209.151.236.43 as permitted sender) smtp.mailfrom=jason-fbsd-bluetooth@shalott.net X-Spamd-Result: default: False [-0.79 / 15.00]; ARC_NA(0.00)[]; IP_SCORE(-0.01)[country: US(-0.05)]; R_SPF_ALLOW(-0.20)[+mx:shalott.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[shalott.net]; NEURAL_SPAM_MEDIUM(0.52)[0.521,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_NO_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:11051, ipnet:209.151.224.0/19, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 09:33:11 -0000 > Hello. I am trying to get an ath3k-based USB bluetooth adapter working. > I previously had this adapter working under FreeBSD, several years ago > (FreeBSD-8 or FreeBSD-9 timeframe); but it doesn't seem to work now on > my current FreeBSD-12 box. After loading the firmware, it is not > detected by ng_ubt. > > The card is an ASUS USB-BT211, and shows up as vendor 0x0cf3 product > 0x3000. > The switch from 0x3000 to 0x3002 seems to indicate that the card is, in > fact, loading the firmware correctly. I tracked this down: https://svnweb.freebsd.org/base?view=revision&revision=249178 Looks like this device (and many others) were blacklisted from the driver. Reverting this commit and rebuilding ng_ubt.ko fixes my problem: ubtath3kfw0 on uhub5 ubtath3kfw0: on usbus1 ugen1.4: at usbus1 (disconnected) ubtath3kfw0: at uhub5, port 2, addr 4 (disconnected) ubtath3kfw0: detached ugen1.4: at usbus1 ubt0 on uhub5 ubt0: on usbus1 # hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: 75:10:27:18:59:c5 [...] Can someone explain why these devices were blacklisted from the ng_ubt driver? It seems like the devices will fail to work if the firmware is not loaded to the device before ng_ubt is loaded into the kernel; but it seems like the failure mode is just that those devices don't work in that case. So blacklisting them from the driver seems a lot worse... Couldn't the driver do something like just log a warning that if the device isn't working, unload ng_ubt, ensure that any required firmware is pushed, and then reload it? Or something else more clever? Thanks. -Jason From owner-freebsd-bluetooth@freebsd.org Thu Mar 5 10:13:53 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0EFC12648A1 for ; Thu, 5 Mar 2020 10:13:53 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (mx1.dismail.de [78.46.223.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.dismail.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Y66639WJz4fc3 for ; Thu, 5 Mar 2020 10:13:49 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b59a46da; Thu, 5 Mar 2020 11:13:45 +0100 (CET) Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 82f512cd; Thu, 5 Mar 2020 11:13:45 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id bccd7787; Thu, 5 Mar 2020 11:13:45 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id b005312a (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 5 Mar 2020 11:13:44 +0100 (CET) Date: Thu, 5 Mar 2020 05:13:41 -0500 From: ajtiM To: Iain Hibbert , freebsd-bluetooth@freebsd.org Subject: Re: problem with apple magic mouse Message-ID: <20200305051341.04f8b163@dismail.de> In-Reply-To: References: <20200223150218.361332e4@dismail.de> <20200304181542.3e7dbf68@dismail.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48Y66639WJz4fc3 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[dismail.de:s=20190914]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:78.46.223.134]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.16)[ip: (-9.91), ipnet: 78.46.0.0/15(0.69), asn: 24940(-1.56), country: DE(-0.02)]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[dismail.de.dwl.dnswl.org : 127.0.5.2]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[134.223.46.78.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[dismail.de:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[dismail.de,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:78.46.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 10:13:53 -0000 On Thu, 5 Mar 2020 08:00:52 +0000 (GMT) Iain Hibbert wrote: > On Wed, 4 Mar 2020, ajtiM wrote: >=20 > > More info. > > Today I try to setup mouse again. > > I run: > >=20 > > hccontrol read_node_list > > Name ID Num hooks > > ubt0hci 00000007 3 > >=20 > > I hccontrol -n 00000007 inquiryd > > and I got: > > Could not execute command "inquiry". Operation timed out >=20 > the hcidump program in ports can (maybe) help, it will show how your > host system is attempting to communicate with the mouse >=20 > the above hccontrol error just means that it did not respond to a > device inquiry. I don't know exactly what states the mouse would be > in and when it would respond to such, if it was not connected it > might only do that for a short time after being turned on (for > instance) but hcidump would reveal more >=20 > iain I did install but when I try with hccontrol -n 00000007 inquiryd it didn't shows anything. I connected mouse with old settings and still middle "button" doesn't works and hundreds of error messages which I posted in the fir email shows and hcidump shows: > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . " . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . ( . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . 0 . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . 6 . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . > . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . B . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . 7 . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report . . 7 . . .=20 > ACL data: handle 0x000c flags 0x02 dlen 11 L2CAP(d): cid 0x47 len 7 [psm 19] HIDP: Data: Input report .... .... Thank you. --=20 =E2=80=9CThere is only one good, knowledge, and one evil, ignorance.=E2=80= =9D =E2=80=95 Socrates=20 From owner-freebsd-bluetooth@freebsd.org Thu Mar 5 15:14:14 2020 Return-Path: Delivered-To: freebsd-bluetooth@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E33BA26C31E for ; Thu, 5 Mar 2020 15:14:14 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx2.dismail.de (mx2.dismail.de [159.69.191.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.dismail.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48YDmj1B2Sz4HkN for ; Thu, 5 Mar 2020 15:14:12 +0000 (UTC) (envelope-from starikarp@dismail.de) Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 28eb3f24; Thu, 5 Mar 2020 16:14:10 +0100 (CET) Received: from smtp1.dismail.de ( [10.240.26.11]) by mx2.dismail.de (OpenSMTPD) with ESMTP id e8084e4f; Thu, 5 Mar 2020 16:14:10 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id af35a74f; Thu, 5 Mar 2020 16:14:10 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id f87890fb (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 5 Mar 2020 16:14:09 +0100 (CET) Date: Thu, 5 Mar 2020 10:14:06 -0500 From: ajtiM To: Iain Hibbert Cc: Dirk Engling , freebsd-bluetooth@freebsd.org Subject: Re: problem with apple magic mouse Message-ID: <20200305101406.0e970520@dismail.de> In-Reply-To: References: <20200223150218.361332e4@dismail.de> <20200304181542.3e7dbf68@dismail.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48YDmj1B2Sz4HkN X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.95 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[dismail.de:s=20190914]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:159.69.191.136]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.25)[ip: (-9.91), ipnet: 159.69.0.0/16(0.24), asn: 24940(-1.56), country: DE(-0.02)]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[136.191.69.159.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[dismail.de:+]; DMARC_POLICY_ALLOW(-0.50)[dismail.de,reject]; DWL_DNSWL_MED(-2.00)[dismail.de.dwl.dnswl.org : 127.0.5.2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 15:14:15 -0000 On Thu, 5 Mar 2020 08:00:52 +0000 (GMT) Iain Hibbert wrote: > On Wed, 4 Mar 2020, ajtiM wrote: >=20 > > More info. > > Today I try to setup mouse again. > > I run: > >=20 > > hccontrol read_node_list > > Name ID Num hooks > > ubt0hci 00000007 3 > >=20 > > I hccontrol -n 00000007 inquiryd > > and I got: > > Could not execute command "inquiry". Operation timed out >=20 > the hcidump program in ports can (maybe) help, it will show how your > host system is attempting to communicate with the mouse >=20 > the above hccontrol error just means that it did not respond to a > device inquiry. I don't know exactly what states the mouse would be > in and when it would respond to such, if it was not connected it > might only do that for a short time after being turned on (for > instance) but hcidump would reveal more >=20 > iain I solved the problem. I had in /etc/sysctl.conf=20 sysctl kern.evdev.rcpt_mask=3D12 as recommended for xserver 12 and I pud back to 3 and everything works as before :). Thank you. --=20 =E2=80=9CThere is only one good, knowledge, and one evil, ignorance.=E2=80= =9D =E2=80=95 Socrates=20