Re: Activating Bluetooth on intel AX200,AX201,AX210 modules

From: Lars Tunkrans <drsnx60_at_gmail.com>
Date: Tue, 26 Aug 2025 06:36:02 UTC
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 
> <https://FreeBSD.org>