Solved.

Went to ASUS ProArt X870E-Creator WiFi Support Page.
Select Windows 11 64-bit as your operating system.
Expand the Bluetooth category and download
  DRV_Bluetooth_MTK_MT7925_27_TP_W11_64_V111470610_20260706R.zip
Unziped into $HOME/asus-bt-driver directory
cd $HOME/asus-bt-driver/BT.
Noted that there was NO "mtkbt.dat" file but there was a "mtkbt_v2.dat" file.
  Assmed that ASUS bumped the version of the file changing the file's name.
Re-wrote extraction script found at:
  https://gist.github.com/vitaliemiron/c23d7b2e47ab67a7a0851f6ef0cada39
in file extract.sh:

SCRIPT START
#!/bin/bash

# NOTE: in this case "mtkbt_v2.dat"
if [[ $# -ne 1 ]]; then
  echo "Usage: $0 path/to/BT/mtkbt.dat"
  exit 1
fi

declare -r IN_FILE="$1"
if [[ ! -f "$IN_FILE" ]]; then
  echo "File does not exist: $IN_FILE"
  exit 1
fi


# Extract BT firmware from the Windows driver's mtkbt.dat file
# Replace 'path/to/BT/mtkbt.dat' with the actual path to the extracted file
python3 -c "
import struct, sys
data = open(sys.argv[1], 'rb').read()
offset = 0x10
name = data[offset:offset+48].split(b'\x00')[0].decode()
data_offset = struct.unpack_from('<I', data, offset + 64)[0]
data_size = struct.unpack_from('<I', data, offset + 68)[0]
fw = data[data_offset:data_offset + data_size]
open('BT_RAM_CODE_MT6639_2_1_hdr.bin', 'wb').write(fw)
print(f'Extracted {name}: {len(fw)} bytes')
" "$IN_FILE"
SCRIPT END

And extracted BT_RAM_CODE_MT6639_2_1_hdr.bin by running:
./extract.sh mtkbt_v2.dat

Then, as root:
# cp BT_RAM_CODE_MT6639_2_1_hdr.bin /lib/firmware/mediatek/mt7927/

Result:
  warning lines stopped being written to /var/log/messages.
  dmseg nolonger has Failed messages.

So, ASUS changed name of file from "mtkbt.dat" to "mtkbt_v2.dat"
and no one noticed.
Thanks again.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to