From nobody Fri Jul 30 08:06:59 2021 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7163F12D865A for ; Fri, 30 Jul 2021 08:06:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gbg3R2jv4z3v3c for ; Fri, 30 Jul 2021 08:06:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4709C21717 for ; Fri, 30 Jul 2021 08:06:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16U86xRY077867 for ; Fri, 30 Jul 2021 08:06:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16U86xJW077866 for wireless@FreeBSD.org; Fri, 30 Jul 2021 08:06:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 255542] Bluetooth Could not connect to HC: 5 Date: Fri, 30 Jul 2021 08:06:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nsonack@outlook.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255542 Nico Sonack changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsonack@outlook.com --- Comment #2 from Nico Sonack --- Chiming in here, since the reporter doesn't answer the request for more information : I have two machines : root@hades:~ # freebsd-version ; uname -a 13.0-RELEASE-p3 FreeBSD hades.herrhotzenplotz.geek 13.0-RELEASE-p3 FreeBSD 13.0-RELEASE-p3 = #0: Tue Jun 29 19:46:20 UTC 2021=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC= =20 amd64 root@triton:~ # freebsd-version ; uname -a 13.0-RELEASE-p3 FreeBSD triton.herrhotzenplotz.geek 13.0-RELEASE-p3 FreeBSD 13.0-RELEASE-p3= #3 releng/13.0-n244752-b368bb75bad: Sun Jul 25 18:53:33 CEST 2021=20=20=20=20 nico@triton.herrhotzenplotz.geek:/usr/obj/usr/src/amd64.amd64/sys/TRITON13= =20 amd64 root@triton:~ # Attached to it is a USB Bluetooth dongle : root@triton:~ # usbconfig -d ugen0.4 dump_device_desc ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DO= N (50mA) bLength =3D 0x0012 bDescriptorType =3D 0x0001 bcdUSB =3D 0x0110 bDeviceClass =3D 0x00e0 bDeviceSubClass =3D 0x0001 bDeviceProtocol =3D 0x0001 bMaxPacketSize0 =3D 0x0040 idVendor =3D 0x1310 idProduct =3D 0x0001 bcdDevice =3D 0x1500 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 bNumConfigurations =3D 0x0001 I have the following script to setup an audio connection to bluetooth headphones : root@hades:~ # cat /usr/home/nico/.local/bin/bt #!/bin/sh service bluetooth restart ubt0 hccontrol -n ubt0hci create_connection headphones trap "sysctl hw.snd.basename_clone=3D1" INT virtual_oss -S -C 2 -c 2 -r 48000 -b 16 -s 1024 -R /dev/null -P /dev/bluetooth/headphones -T /dev/sndstat -d dsp root@hades:~ # On one machine it does the following : root@hades:~ # /usr/home/nico/.local/bin/bt BD_ADDR: headphones Connection handle: 1 Encryption mode: Disabled [0] hw.snd.basename_clone: 1 -> 0 backend_bt: PSM=3D0x19 backend_bt: No frequency and mode match backend_bt: No frequency and mode match ...And I can listen to whatever I want. On the other machine however : root@triton:~ # /usr/home/nico/.local/bin/bt BD_ADDR: headphones Connection handle: 1 Encryption mode: Disabled [0] hw.snd.basename_clone: 1 -> 0 backend_bt: PSM=3D0x19 backend_bt: Could not connect to HC: 5 backend_bt: PSM=3D0x19 backend_bt: Could not connect to HC: 5 backend_bt: PSM=3D0x19 backend_bt: Could not connect to HC: 5 backend_bt: PSM=3D0x19 backend_bt: Could not connect to HC: 5 backend_bt: PSM=3D0x19 backend_bt: Could not connect to HC: 5 ^Chw.snd.basename_clone: 0 -> 1 root@triton:~ # ... And it doesn't work. I suspect, that the issue is related to virtual_oss. Let me know, if you need any more information or want me to test something here. Please bear in mind that the 'hades' machine runs pretty much only binary ports and patches from freebsd-update but the 'triton' machine runs a custom kernel. I don't think that this is a huge difference though. --=20 You are receiving this mail because: You are the assignee for the bug.=