Asus rog g15 wifi is working but bluetooth is not even detected

i have installed parrot os on my asus rog g15 2022 model which comes with MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter.wifi is working properly but bluetooth is crashing every time. i tried updating bluez and blueman but both on latest update.parrot os is also up to date.

VERSION_ID=“5.2”
VERSION=“5.2 (Electro Ara)”
VERSION_CODENAME=ara

Kernel version : 6.0.0-12parrot1-amd64

logs :
hciconfig
hci0: Type: Primary Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex (rev 01)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h-19h IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14b8
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
04:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5411 (rev 01)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c8)
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 60)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
06:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller

Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0489:e0e2 Foxconn / Hon Hai Wireless_Device
Bus 001 Device 002: ID 0b05:19b6 ASUSTek Computer, Inc. N-KEY Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I assume the Wi-Fi [which is also the Bluetooth] is a RTL 88*** series you need the exact driver for the wi-fi [there are about 6 different ones I know of]

if you run from a terminal inxi -Nn it will give you the exact chipset including the all important suffixes.

1 Like

ok i let me check …

Network:
Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e
IF: wlo1 state: up mac: 10:6f:d9:33:37:1d
Device-2: Realtek RTL8125 2.5GbE driver: r8169
IF: enp3s0 state: down mac: 50:eb:f6:d2:74:b0

I am not over familiar with this one, but it appears to have the wrong driver, I think it should be the r8168 driver

Device-2: Realtek RTL8125 2.5GbE driver: r8169

thats his Ethernet adapter Brian…

Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e

thats his WiFi and he’s already using the latest in kernel liniux driver for that chipset…

i think thats ethernet controller

ok so why my bluetooth is not working ?

i hope this output may also help :

sudo dmesg | grep mt7921e
[ 3.958139] mt7921e 0000:02:00.0: enabling device (0000 → 0002)
[ 3.977971] mt7921e 0000:02:00.0: ASIC revision: 79220010
[ 4.058755] mt7921e 0000:02:00.0: firmware: direct-loading firmware mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
[ 4.058768] mt7921e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20210727184234a
[ 4.432106] mt7921e 0000:02:00.0: firmware: direct-loading firmware mediatek/WIFI_RAM_CODE_MT7922_1.bin
[ 4.432120] mt7921e 0000:02:00.0: WM Firmware Version: ____000000, Build Time: 20210727184325
[ 5.508808] mt7921e 0000:02:00.0 wlo1: renamed from wlan0

i also found that brickwizard brian has also faced similar thread on ubuntu forum on www.linux.org. in the 2 page of that thread people are claiming that this problem can be fixed just my holding power button for 60seconds. i tried it once but didn’t work.

should i also provide dmesg output ?

[ 4.049280] Bluetooth: Core ver 2.22
[ 4.049304] NET: Registered PF_BLUETOOTH protocol family
[ 4.049305] Bluetooth: HCI device and connection manager initialized
[ 4.049308] Bluetooth: HCI socket layer initialized
[ 4.049310] Bluetooth: L2CAP socket layer initialized
[ 4.049313] Bluetooth: SCO socket layer initialized
[ 4.137320] bluetooth hci0: firmware: failed to load mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin (-2)
[ 4.137329] bluetooth hci0: firmware: failed to load mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin (-2)
[ 4.137331] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin failed with error -2
[ 4.137333] Bluetooth: hci0: Failed to load firmware file (-2)
[ 4.137334] Bluetooth: hci0: Failed to set up firmware (-2)
[ 4.137335] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[ 4.993610] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.993614] Bluetooth: BNEP filters: protocol multicast
[ 4.993617] Bluetooth: BNEP socket layer initialized

guys as you can see the fireware cant load and look at this :
┌─[✗]─[root@parrot]─[/lib/firmware/mediatek]
└──╼ #ls
BT_RAM_CODE_MT7961_1_2_hdr.bin mt7663_n9_v3.bin
mt7610e.bin mt7663pr2h.bin
mt7610u.bin mt7663pr2h_rebb.bin
mt7615_cr4.bin mt7668pr2h.bin
mt7615_n9.bin mt7915_rom_patch.bin
mt7615_rom_patch.bin mt7915_wa.bin
mt7622_n9.bin mt7915_wm.bin
mt7622pr2h.bin mt8173
mt7622_rom_patch.bin mt8183
mt7650e.bin WIFI_MT7922_patch_mcu_1_1_hdr.bin
mt7662u.bin WIFI_MT7961_patch_mcu_1_2_hdr.bin
mt7662u_rom_patch.bin WIFI_RAM_CODE_MT7922_1.bin
mt7663_n9_rebb.bin WIFI_RAM_CODE_MT7961_1.bin

were is that fireware in this output …nope

that only works on some makes, but is a good stand by to try, [but thanks for looking in]

at this point, i would normally suggest uninstalling what MediaTek drivers you have and re-installing from here…config_mt7921e - kernelconfig.io, but you will need to upgrade to Kernel 6.2.6 or higher as well

1 Like

my wifi is working normal but my bluetooth is not.i have found that there was a file named BT_RAM_CODE_MT7922_1_1_hdr.bin was missing from /lib/firmware/mediatek/ but kernel was asking in log and failing to load as its not availabe so i downloaded and puted in that folder but it didn’t fixed it. when i ran hciconfig -a it shows there is no mac and device is down,init,running as before download file it used to show down only.so i try to hciconfig hci0 up then my terminal hangs.currently i have that file but i have removed from the destination.

i think the driver you are mentioning is already installed.if installing you given will fix my bluetooth then i would want to installed it.is it safe to update kernel of parrotos manually ?

Well it will definitely be a driver or firmware isuue, and as Brian’s link shows, the adapter is supported…

If you look at the firmware repo,
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek

There are several firmware images available;
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin

This is the one its using from your output;
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin

and this also available;
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek/WIFI_RAM_CODE_MT7922_1.bin

Try the 2 seperate versions rather than the combined you have, it may help…
( you may have to blacklist this one, [WIFI_MT7922_patch_mcu_1_1_hdr.bin], should tell you how in Brians link)

One thing to note here, on Linux WiFi can always be a pain point, and if drivers don’t work as you expect, then you can always file a bug and hope it gets fixed.
With Open Source software, no one is being paid to write drivers, and typically they have to start by reverse engineer Windblows drivers and then get them working.

Or try compiling your own drivers and firmware as Brickwizard advised above.

Either way, we have helped as much as we can with this!

Your not actually compiling a whole kernel, just compiling a kernel module that gets pulled it at boot up time so the kernel can talk to your devices. From a driver point of view, they are fairly generic across several adapters from a manufactiurer, usually only differing in the needed firmware.

If you have added the needed firmware, and the drivers are installed, and it still doesn’t work, then compiling your own, on the machine you need them on, is always the best way to go, they will be built specifically for your kernel and your system!

It’s really not scary, or difficult, just out of your comfort zone the first time or 2 :slight_smile:

2 Likes

ok let me do these things i will report it soon

Ok so i replaced the files of old with these new one but now wifi and bluetooth but are not working. Am i doing something wrong

Also in the log i saw

mt7921e 0000:02:00.0: hardware init failed

[ 4.159152] bluetooth hci0: firmware: direct-loading firmware mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin
[ 4.159846] BUG: unable to handle page fault for address: ffffb7ca295fd469
[ 4.159849] #PF: supervisor read access in kernel mode
[ 4.159851] #PF: error_code(0x0000) - not-present page

check this :
4.082177] mt7921e 0000:02:00.0: firmware: direct-loading firmware mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
[ 4.082182] mt7921e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20210727184234a

[ 4.091637] mt7921e 0000:02:00.0: firmware: direct-loading firmware mediatek/WIFI_RAM_CODE_MT7922_1.bin
[ 4.091645] mt7921e 0000:02:00.0: WM Firmware Version: ____000000, Build Time: 20210727184325
[ 4.148753] Bluetooth: Core ver 2.22
[ 4.148808] NET: Registered PF_BLUETOOTH protocol family
[ 4.148810] Bluetooth: HCI device and connection manager initialized
[ 4.148917] Bluetooth: HCI socket layer initialized
[ 4.148921] Bluetooth: L2CAP socket layer initialized
[ 4.148927] Bluetooth: SCO socket layer initialized
[ 4.154327] wl: loading out-of-tree module taints kernel.
[ 4.154330] wl: module license ‘MIXED/Proprietary’ taints kernel.
[ 4.154331] Disabling lock debugging due to kernel taint
[ 4.155835] usbcore: registered new interface driver btusb
[ 4.159152] bluetooth hci0: firmware: direct-loading firmware mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin
[ 4.159846] BUG: unable to handle page fault for address: ffffb7ca295fd469
[ 4.159849] #PF: supervisor read access in kernel mode
[ 4.159851] #PF: error_code(0x0000) - not-present page

do i also need to download mt7921e and put it with new drivers ?