From nobody Tue Aug 26 06:36:02 2025 X-Original-To: freebsd-bluetooth@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 4c9ybq42S4z66Lqw; Tue, 26 Aug 2025 06:36:07 +0000 (UTC) (envelope-from drsnx60@gmail.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c9ybq1v0Dz3SkM; Tue, 26 Aug 2025 06:36:07 +0000 (UTC) (envelope-from drsnx60@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-336763f6fb8so15146031fa.1; Mon, 25 Aug 2025 23:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756190164; x=1756794964; darn=freebsd.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=2iXwzFhOT3Tg9TYQGcnEhIryBnxMyNTl9Y8Px6x1NkE=; b=WUMas+9CLiDtFXVYdTPoEMqHNH2TL84rUqWXoJ53f23JoLV4hy0GkEum4c0FZH361S APe7vSypsZyaeo8BMNj6j0eK0+4PQqRIcU7NV4DLSZNhvS2i9jLM49uBUt8DU9Hs0qXw 6qbfTy3igvc+R/voM8PD5oCJlFvwcIGLSPARXK+cgBOZINLaomfyOlw+Vze6wbCQeRua PlAwZq/iQRfFyTxMVXSs8jpRQtl4JYSPrKIok9IZG15fr0Y34LgF/4TiqAsu1RI3tY91 yK4JkirgrBE6MCimfzfFvKuUrnkGtqeIzDCGNlUqgFHwGJf4bQIDrQH3ykOr7k6o457M gQJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756190164; x=1756794964; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=2iXwzFhOT3Tg9TYQGcnEhIryBnxMyNTl9Y8Px6x1NkE=; b=k3LEgMjVCurzG0FlI+0c6n8/5/GfptXgHd+7oSMisY1c07XKp1XlTfTUHaIKYU/EgR IR6FkOvpAA41P2bbDLOV6ZJL5zKAQ3Yz7RvoCLNOo4UvHn23f9fVqFctyRMVgNajvq7O ILoaIYaEc0dV6kXVmPCKhQKU0jQeYG+aimtB5rVoclKF1yRk9RWH88ERO9aKXz4KYvPf OcFBEj9etpSCInphOBqZsQDVY05HVFT1mKn3sypDEJT6XULsMBGEdXVbPJ1HJMtwyVlG 8D0u1KAUDBgHr/MNH/YqaWynMOEr5/rsUhdFtHAQWAdiqb8Hg5ymq9QgIkPDnXcGKBQY lgAw== X-Forwarded-Encrypted: i=1; AJvYcCVuOIpQ9TForK/o/Ngk1TLFAzAMxWSI+T3g5LN7PxSjyBL45/z9jvDWyN2YKawdhRnWB2OvEyYxhwWgrB/qI8FfZA==@freebsd.org, AJvYcCWDht+0npWTENsx7WJflOeUAdO+UmwlArbwY1GNE10qIqMduvwYqKN9BXIZlxV+p+L5JftlpAqBX5EZpSKutOOdnQ==@freebsd.org X-Gm-Message-State: AOJu0YyjcVRVPk2B9iNDoyd9Ydi4KxMMrXEDb7CROdJHCXDsWXJf+Y4g x8Fc4gJpo3bPru4HgS4B7HmNc9M7XhyjzUhCf8xG2kzw/45EvVRfXnyaU7fseHo1 X-Gm-Gg: ASbGncud5M2UexowW6RR92YuR1vO5MpDgQhpODLciRtAGkFloATgxHkCsuw7piHM0FR +30Vx7H5EstkaCl7wq7RZk3iU6eoi/mOGpXKbj6L4AynAsA6zP+vvLAbl4cRfdTQQqvQZTwKz9+ RYaqNzFu1gJX0D6QQveDhAWIIVyqtMfeUcysF+xx5a0KQc1NV5lA1UGvaavCaZmFuO5I6ZyqW19 jxcYDRRWqQiO8cr/vXd9D0KkPvhPaLb9zqGasO5vZIXpjbyvLk3xKbYjefRHKA7TKX6A3as9V3/ 7WuQAZ0Hg1VvFucHEn8AgK9tbNwAIGswhBJDwztCu90utUCVfC0QBwOK38ZgrcS5EowHJp5eKD4 NOsQOJtfR9sXDknIJ6+zIXqiJCSlRaZT2lD7lszW8cd6LOcJyKb3r X-Google-Smtp-Source: AGHT+IHzVH/c4fLcq/vBux1r3DFPrNctFL14FdcVGEUxcAdgZhMzU0hdIbrQLk7wvSo5DPlIQKNw3A== X-Received: by 2002:a2e:b806:0:b0:336:72e1:7f4d with SMTP id 38308e7fff4ca-3368b720d57mr900801fa.22.1756190163971; Mon, 25 Aug 2025 23:36:03 -0700 (PDT) Received: from [192.168.2.131] (host.62.13.8.86.bitcom.se. [62.13.8.86]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3365e5fbd17sm19522001fa.67.2025.08.25.23.36.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Aug 2025 23:36:03 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------LRnYcfHy3ynotfXQD0Jt1Rtz" Message-ID: Date: Tue, 26 Aug 2025 08:36:02 +0200 List-Id: Using Bluetooth in FreeBSD environments List-Archive: https://lists.freebsd.org/archives/freebsd-bluetooth List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bluetooth@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Activating Bluetooth on intel AX200,AX201,AX210 modules To: Nuno Teixeira Cc: "Bjoern A. Zeeb" , freebsd-bluetooth@freebsd.org, freebsd-wireless@freebsd.org References: <30nnq627-nr7s-6623-3opp-n21p66ss1n57@SerrOFQ.bet> <048d304e-65d1-44c3-a137-562de6e5c9da@gmail.com> <50ro8345-8770-n078-r7nr-417r81598o18@SerrOFQ.bet> <09rq988q-1131-7rq9-601s-4qr0no45n4os@SerrOFQ.bet> <04de7d1f-6ebb-4d1a-99d7-3b6ab2b0c26f@gmail.com> <818de79a-7eba-464d-93f7-e9b3ee513532@gmail.com> <542oo65n-4q9p-8363-7341-5383oo109455@SerrOFQ.bet> Content-Language: en-US From: Lars Tunkrans In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c9ybq1v0Dz3SkM This is a multi-part message in MIME format. --------------LRnYcfHy3ynotfXQD0Jt1Rtz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit HI      it is   the  hccontrol  'reset'   command   on line 130  of the  /etc/rc.d/bluetooth  start script that  times  out.   Bjoern  has  a  fix  for  it  that  loops  the  reset  untill it  succeeds.   but  it  does not  seem  to have  been  added  to the  source  tree  yet , https://reviews.freebsd.org/differential/changeset/?ref=1332283  ( at  least  i cant  find a commit  message  with  that comment  )   then  there  is  some  additional  issues  that  I  have  not investigated  yet.       //Lars On 25/08/2025 21:30, Nuno Teixeira wrote: > Hello, > > I also have an AX201 so I can test too: > > iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz > ubt0: 5> on usbus0 > ugen0.6: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON (100mA) > > # iwmbtfw -DI -d ugen0.6 > main: opening dev 0.6 > iwmbt_is_supported: found iwmbtfw compatible > main: Firmware has already been downloaded > main: Firmware download is successful! > > # service bluetooth start ubt0 > /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device > ubt0 > > > ng_hci_process_command_timeout: ubt0hci - unable to complete HCI > command OGF=0x3, OCF=0x3. Timeout > > # hccontrol -n ubt0hci inquiry > > > Cheers! > > Lars Tunkrans escreveu (quinta, 31/07/2025 à(s) > 05:40): > > Hi.   The reset loop inthe patch to th rc.d/bluetooth script is  > looped  once on my laptop   ,  the second reset attempt  works.  >  It appers to improve the script. > After a laptop reboot the BT stack appers to be active,  before > running the rc.d/bluetooth script. > Script needs to be run with STOP  argument before it can be run > with START argument. > >    Not clear whats the cause of this behavior. > > //Lars. > > > Den tis 29 juli 2025 17:21Bjoern A. Zeeb skrev: > > On Tue, 22 Jul 2025, Lars Tunkrans wrote: > > Hi, > > let me re-cap: > > (1) the changes to the startup script helped -- so I should go > ahead and >      push them in? > > (2) there is a check missing somewhere loading BT despite it > not being >      enabled in rc.conf? > > /bz > > -- > Bjoern A. Zeeb          r15:7 > > > > -- > Nuno Teixeira > FreeBSD UNIX:    Web: https://FreeBSD.org > --------------LRnYcfHy3ynotfXQD0Jt1Rtz Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

HI  

     it is   the  hccontrol  'reset'   command   on line 130  of the  /etc/rc.d/bluetooth  start script that  times  out. 

  Bjoern  has  a  fix  for  it  that  loops  the  reset  untill  it  succeeds.   but  it  does not  seem  to have  been  added  to  the  source  tree  yet ,

   https://reviews.freebsd.org/differential/changeset/?ref=1332283

 ( at  least  i cant  find a commit  message  with  that  comment  )   

  then  there  is  some  additional  issues  that  I  have  not  investigated  yet.

      //Lars  

 

On 25/08/2025 21:30, Nuno Teixeira wrote:
Hello,

I also have an AX201 so I can test too:

iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz
ubt0: <vendor 0x8087 product 0x0026, class 224/1, rev 2.01/0.02, addr 5> on usbus0
ugen0.6: <AX201 Bluetooth Intel Corp.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

# iwmbtfw -DI -d ugen0.6
main: opening dev 0.6
iwmbt_is_supported: found iwmbtfw compatible
main: Firmware has already been downloaded
main: Firmware download is successful!

# service bluetooth start ubt0
/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0

<dmesg>
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout

# hccontrol -n ubt0hci inquiry
<shows nothing>

Cheers!

Lars Tunkrans <drsnx60@gmail.com> escreveu (quinta, 31/07/2025 à(s) 05:40):
Hi.   The reset loop inthe patch to th rc.d/bluetooth script is  looped  once on my laptop   ,  the second reset attempt  works.   It appers to improve the script.   
After a laptop reboot the BT stack appers to be active,  before running the rc.d/bluetooth script.  
Script needs to be run with STOP  argument before it can be run with START argument.   

   Not clear whats the cause of this behavior. 

//Lars.

  

Den tis 29 juli 2025 17:21Bjoern A. Zeeb <bz@freebsd.org> skrev:
On Tue, 22 Jul 2025, Lars Tunkrans wrote:

Hi,

let me re-cap:

(1) the changes to the startup script helped -- so I should go ahead and
     push them in?

(2) there is a check missing somewhere loading BT despite it not being
     enabled in rc.conf?

/bz

--
Bjoern A. Zeeb                                                     r15:7


--
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
--------------LRnYcfHy3ynotfXQD0Jt1Rtz--