From nobody Mon Jul 21 15:34:44 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 4bm4G324Pqz62n2Y; Mon, 21 Jul 2025 15:34:51 +0000 (UTC) (envelope-from drsnx60@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 4bm4G20pVpz3ljV; Mon, 21 Jul 2025 15:34:50 +0000 (UTC) (envelope-from drsnx60@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=EizdiTTp; spf=pass (mx1.freebsd.org: domain of drsnx60@gmail.com designates 2a00:1450:4864:20::12d as permitted sender) smtp.mailfrom=drsnx60@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5550dca1241so3968790e87.0; Mon, 21 Jul 2025 08:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753112087; x=1753716887; darn=freebsd.org; h=in-reply-to:content-language:references:cc:to:from:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Dmx2bUXyhHoT70110S/l6cWAGfJEYKhlfOEwUxgTwys=; b=EizdiTTpN/JQnBp0YFteoASwl5bFS80RmoaB84JgJ1KhCbmyM8nM/AU+HlLg4mbSlm taP0aCVkeZIOrXul83/1AWjH1E1Mb1DNs8w4O4b1CkOfGtEmKN60rVSmFC41sJhKdEqd B6aK+G+vMBg8rNZvcA32JXHDzujVTm+SPUhCLKnfMphMqE5An9gtoB1CiKjcJxfcc0xd OeDiyGJrU9Qxs15RSGhlbfsC1tHiwWajZW5LaCVkg583tJoKo0V4X5CqvzzVqK/lOEW0 A5/MMBltJLrvEEwUU1sBXn0e6/yAu9k8psAAExOXuOeCntoS7128BRgFWsbFeODVTa9h BLDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753112087; x=1753716887; h=in-reply-to:content-language:references:cc:to:from:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Dmx2bUXyhHoT70110S/l6cWAGfJEYKhlfOEwUxgTwys=; b=CHttbRGbswiPSG32LN+rsl8oDYO/2otT5mqFHOko0dKBM65+fFJXwR6hPpAHIIJUxS g03UVoPfKr1oRXeEK9rBGbWWe2q6mCQk+Rlz60ma2defTKnxBV1muvy8hGSoHv8L08LV 2d4bEObQvM+S1J3gQZKi3EgxEZAFPvUwOiP4JkrGRXZBJQE+5GBheFpUadH+/jo4S4Mc zCeuKhwIjW5i9AhoLB3exlZLl1HPsZHOdpO4z25FCZAokJiXeprgRLJ2wtoFX7FupWnB 9wBLJFxZjlzw4ECKFdRXOi6uwseFnMfa65vNNXG5EjetS7vqNRxZNaXL3NBwBbW+svSL MBCQ== X-Forwarded-Encrypted: i=1; AJvYcCX0XmecqH58+M5JxxDUCfg7hJvTlKhISCpNaw9Zi/OplsKSN3Kmb/PRj6dl2aOcb07fuuKMerCMlrgm7vdoz9+y@freebsd.org X-Gm-Message-State: AOJu0Yzv0rC/78jgLLBxYmtserT6ojhWfStxtxGoFq+bfN45339FfZOx zzA4w2qVBeozKbaWkP1X5ajVLxFWo9ltjXgfiZgGOw1v1m2tWcBu9xAQUL14yQ== X-Gm-Gg: ASbGncs2b4IUabCGVTL/ZnUPCCW1keui9TJDhHRl5Yqe5kT7+wFGxplR62TjXNgzL4E YE4w0UO7ZU+88PDn0uyY8zyLSsf3NZbiOUYahX4Yn5wqKrqxn78alcEqQqqS2W22bBOSwVhTqaK Xr0u6qSwHFxoQtrRtfmaS0iRKvFuTTN+PU6ZUJUrqAIR++mvr9UUCKKzb/a3JAJwgPkLtR/Rww5 9F48J2zm0mO7UkpSkdhvBFvHKYv5SxceOubz9nmWpyK7VRGI3BRHIV1Pm4sbmvMsRLeNgroXOZg ANmurXyI7EKIm+/sFAd9xV8pymUU1jcAOw4SfANdZ83/5XSlhQSx8+rCUirWeWkzHlDpE+DTEVG AL8amUQETBVOur7qSOmMm9eEbwrcCTyjaiYYcFA2Wpm8= X-Google-Smtp-Source: AGHT+IFRCscO0wpGwIKWRBmj6YP5AjdlxDEXNBfTaJDsyBXtakrLUup2Sg9dSIaa6+mSt42AYyJxZg== X-Received: by 2002:a05:6512:b19:b0:553:241d:4e77 with SMTP id 2adb3069b0e04-55a23efbfd8mr5437159e87.22.1753112087129; Mon, 21 Jul 2025 08:34:47 -0700 (PDT) Received: from [192.168.1.101] (2.71.93.156.mobile.tre.se. [2.71.93.156]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-55a31dad1f7sm1599156e87.207.2025.07.21.08.34.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jul 2025 08:34:46 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------ZP4xuHinC09soXBlkKcxdLOc" Message-ID: Date: Mon, 21 Jul 2025 17:34:44 +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 From: Lars Tunkrans To: "Bjoern A. Zeeb" Cc: freebsd-bluetooth@FreeBSD.org, freebsd-wireless@freebsd.org References: <30nnq627-nr7s-6623-3opp-n21p66ss1n57@SerrOFQ.bet> <048d304e-65d1-44c3-a137-562de6e5c9da@gmail.com> Content-Language: en-US In-Reply-To: <048d304e-65d1-44c3-a137-562de6e5c9da@gmail.com> X-Spamd-Result: default: False [-0.54 / 15.00]; NEURAL_HAM_LONG(-0.83)[-0.831]; NEURAL_SPAM_MEDIUM(0.67)[0.672]; NEURAL_SPAM_SHORT(0.62)[0.621]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12d:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-bluetooth@freebsd.org,freebsd-wireless@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4bm4G20pVpz3ljV X-Spamd-Bar: / This is a multi-part message in MIME format. --------------ZP4xuHinC09soXBlkKcxdLOc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit   HI     this  command  in  the /etc/rc.d/bluetooth    start script     fails  with   exit  status  1   , unless  mutilple iwmbt  firmware  loads  is executed beforehand, * #    ngctl mkpeer ubt0: hci hook drv* ngctl mkpeer ubt0: hci hook drv + return 1 + bluetooth_shutdown_stack ubt0 + dev=ubt0 + ngctl shutdown ubt0hci: + ngctl shutdown ubt0l2cap: + return 0 + err 1 'Unable to setup Bluetooth stack for device ubt0' //Lars On 7/21/25 12:48 AM, Lars Tunkrans wrote: > > Hi Björn > >   #1  running   Current -15   updated  on  12:th  of  july from  > github sources, on  this laptop. > >    #2   yes,  I   have an 0x0026 entry in > /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c: > >     #3   If  I   issue  iwmbtf   install  command    4 times > consecutively    the  "service bluetooth start ubt0 " command  > appears  to  work  , > >            hccontrol  commands   appear  to  run, > >            btsockstat    runs > > >       # usbconfig show_ifdrv      says: > >               ugen0.6: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON (100mA) > *   ugen0.6.0: ubt0: 2.01/0.02, addr 5>* > > *        device is  available* > >     SO  is  the conclusion  that   the  AX201 BT module needs   to  > be  wacked   on  the head  4  times    to   bother waking  up  ? > >        shouldnt  device initialization  at system  startup take  care  > of  that, ´? > >     I  dont     have a bluetooth mouse with me  presently  but will  > try one  next week . > > >                      //Lars > > > > On 7/20/25 11:14 PM, Bjoern A. Zeeb wrote: >> On Sun, 20 Jul 2025, Lars Tunkrans wrote: >> >> Hi Lars, >> >>> I  have  a   3 years  Old  FUjitsu Celsius H7510   with I7-10885H  >>> CPU  and   AX201 >>> instructions in the Handbook talks about inserting a Bluetooth >>> dongle in a USB port. >>> This is obviously not the case here as the AX201 M.2. card includes >>> the Bluetooth circuitry and the Bluetooth antenna is pre-installed >>> in the laptop. >>> >>>   As Bjoern.Zeeb    has  done  an  enormous  job  on  the AX200 >>> IWLWIFI  side,   this  bluetooth  part  of the  same circut-board  >>> may interact  with  the  WIFI    part  ....... >> >> Not my domain of expertise but: >> (a) which ersion of FreeBSD are you on? >> (b) Check if you have an 0x0026 entry in >> /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c: { >> USB_VPI(USB_VENDOR_INTEL2, 0x0026, UBT_INTEL_DEVICE_8260) }, >> (c) did you install firmware?  There is an iwmbt-firmware package.  >> Looks like you have. >> >> (d) last time I tried I with an AX210 I had to try to start it 1..4 >> times until eventually it worked. >> >> Reading below I think you are in the (d) category. >> >> Here's notes I left someone else for that trial: >> >> ------------------------------------------------------------------------ >> I installed the iwmbt-firmware package manually and then manually loaded >> it, twice; the 2nd time with -DI and then started >> /etc/rc.d/bluetooth start ubt0 >> one more time and then it was there.. >> >> [337612.962319] ubt0 on uhub0 >> [337612.962354] ubt0: > 2.01/0.00, addr 3> on usbus0 >> [337927.563193] ng_hci_process_command_timeout: ubt0hci - unable to >> complete HCI command OGF=0x3, OCF=0x3. Timeout >> >> Following >> https://freebsdfoundation.org/resource/networking-basics-wifi-and-bluetooth/ >> >> # hccontrol -n ubt0hci inquiry >> Inquiry result, num_responses=1 >> Inquiry result #0 >>         BD_ADDR: xx:xx:xx:xx:xx:xx >>         Page Scan Rep. Mode: 0x1 >>         Page Scan Period Mode: 00 >>         Page Scan Mode: 00 >>         Class: xx:xx:xx >>         Clock offset: 0x22f7 >> Inquiry complete. Status: No error [00] >> ------------------------------------------------------------------------ >> >>> # iwmbtfw -I -d ugen0.6 >>> iwmbt_is_supported: found iwmbtfw compatible >>> main: Firmware has already been downloaded >>> main: Firmware download is successful! >>> >>> # ps -ax | grep hcsec >>> 51253  -  Is      0:00.00 /usr/sbin/hcsecd -f >>> /etc/bluetooth/hcsecd.conf >>> >>> # ps -ax | grep sdpd >>> 58045  -  Is      0:00.00 /usr/sbin/sdpd -c /var/run/sdp -g nobody >>> -u nobody >>> >>> >>> >>> Looks like the Hardware should work but : >>> >>> # service bluetooth start ubt0 >>> /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for >>> device ubt0 >>> >>> >>>    PLS   advise   how  to  further  diagnose  the  case, >> --------------ZP4xuHinC09soXBlkKcxdLOc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


  HI  

    this  command  in  the /etc/rc.d/bluetooth    start  script     fails  with   exit  status  1   , unless  mutilple iwmbt  firmware  loads  is executed beforehand,


 #    ngctl mkpeer ubt0: hci hook drv

ngctl mkpeer ubt0: hci hook drv
+ return 1
+ bluetooth_shutdown_stack ubt0
+ dev=ubt0
+ ngctl shutdown ubt0hci:
+ ngctl shutdown ubt0l2cap:
+ return 0
+ err 1 'Unable to setup Bluetooth stack for device ubt0'

//Lars 


On 7/21/25 12:48 AM, Lars Tunkrans wrote:

Hi Björn  

  #1  running   Current -15   updated  on  12:th  of  july  from  github sources, on  this laptop. 

   #2   yes,  I   have an 0x0026 entry in /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c: 

    #3   If  I   issue  iwmbtf   install  command    4 times   consecutively    the  "service bluetooth start ubt0 "     command  appears  to  work  ,

           hccontrol  commands   appear  to  run,  

           btsockstat    runs


      # usbconfig show_ifdrv      says:  

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

        device is  available

    SO  is  the conclusion  that   the  AX201 BT module     needs   to  be  wacked   on  the head  4  times    to   bother  waking  up  ? 

       shouldnt  device initialization  at system  startup  take  care  of  that, ´?  

    I  dont     have a bluetooth mouse with me  presently  but  will  try one  next week . 


                     //Lars       



On 7/20/25 11:14 PM, Bjoern A. Zeeb wrote:
On Sun, 20 Jul 2025, Lars Tunkrans wrote:

Hi Lars,

I  have  a   3 years  Old  FUjitsu Celsius H7510   with I7-10885H  CPU  and   AX201
instructions in the Handbook talks about inserting a Bluetooth dongle in a USB port.
This is obviously not the case here as the AX201 M.2. card includes the Bluetooth circuitry and the Bluetooth antenna is pre-installed in the laptop.

  As Bjoern.Zeeb    has  done  an  enormous  job  on  the  AX200 IWLWIFI  side,   this  bluetooth  part  of the  same circut-board  may interact  with  the  WIFI    part  .......

Not my domain of expertise but:
(a) which ersion of FreeBSD are you on?
(b) Check if you have an 0x0026 entry in /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c:     { USB_VPI(USB_VENDOR_INTEL2, 0x0026, UBT_INTEL_DEVICE_8260) },
(c) did you install firmware?  There is an iwmbt-firmware package.  Looks like you have.

(d) last time I tried I with an AX210 I had to try to start it 1..4
times until eventually it worked.

Reading below I think you are in the (d) category.

Here's notes I left someone else for that trial:

------------------------------------------------------------------------
I installed the iwmbt-firmware package manually and then manually loaded
it, twice; the 2nd time with -DI and then started
/etc/rc.d/bluetooth start ubt0
one more time and then it was there..

[337612.962319] ubt0 on uhub0
[337612.962354] ubt0: <vendor 0x8087 product 0x0032, class 224/1, rev 2.01/0.00, addr 3> on usbus0
[337927.563193] ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout

Following https://freebsdfoundation.org/resource/networking-basics-wifi-and-bluetooth/

# hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
Inquiry result #0
        BD_ADDR: xx:xx:xx:xx:xx:xx
        Page Scan Rep. Mode: 0x1
        Page Scan Period Mode: 00
        Page Scan Mode: 00
        Class: xx:xx:xx
        Clock offset: 0x22f7
Inquiry complete. Status: No error [00]
------------------------------------------------------------------------

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

# ps -ax | grep hcsec
51253  -  Is      0:00.00 /usr/sbin/hcsecd -f /etc/bluetooth/hcsecd.conf

# ps -ax | grep sdpd
58045  -  Is      0:00.00 /usr/sbin/sdpd -c /var/run/sdp -g nobody -u nobody



Looks like the Hardware should work but :

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


   PLS   advise   how  to  further  diagnose  the  case,

--------------ZP4xuHinC09soXBlkKcxdLOc--