Contribute
Register

Computer restarted after bluetooth keyboard turn on

Status
Not open for further replies.
Joined
Nov 10, 2013
Messages
190
Motherboard
Asus Maximus IX Formula Z270
CPU
i7-7700
Graphics
UHD 630
Mobile Phone
  1. iOS
Hello guys,

I just recently installed Ventura. Whenever I start the pc, I lose the bluetooth connection of the keyboard.

And as soon as I turn off and turn on my Apple Magic bluetooth keyboard, I have a crash that restarts the pc. I have a debug .txt generated in which it is marked:

panic(cpu 4 caller 0xffffff8019065d25): A kext releasing a(n) IOBluetoothL2CAPChannel has corrupted the registry. @OSObject.cpp:224
Panicked task 0xffffff951c0de218: 203 threads: pid 0: kernel_task
Backtrace (CPU 4), panicked thread: 0xffffff951c00e598, Frame : Return Address
0xffffffdfdf3ab9d0 : 0xffffff80189edf9d mach_kernel : _handle_debugger_trap + 0x4ad
0xffffffdfdf3aba20 : 0xffffff8018b5b786 mach_kernel : _kdp_i386_trap + 0x116
0xffffffdfdf3aba60 : 0xffffff8018b4aa10 mach_kernel : _kernel_trap + 0x3e0
0xffffffdfdf3abab0 : 0xffffff8018988951 mach_kernel : _return_from_trap + 0xc1
0xffffffdfdf3abad0 : 0xffffff80189ee27d mach_kernel : _DebuggerTrapWithState + 0x5d
0xffffffdfdf3abbc0 : 0xffffff80189ed929 mach_kernel : _panic_trap_to_debugger + 0x1a9
0xffffffdfdf3abc20 : 0xffffff80191e0ecb mach_kernel : _panic + 0x84
0xffffffdfdf3abd10 : 0xffffff8019065d25 mach_kernel : __ZNK8OSObject13taggedReleaseEPKvi + 0x95
0xffffffdfdf3abd20 : 0xffffff801b01d10b com.apple.iokit.IOBluetoothFamily : __ZN17IOBluetoothDevice13removeChannelEP23IOBluetoothL2CAPChannel + 0xab
0xffffffdfdf3abdc0 : 0xffffff801b020397 com.apple.iokit.IOBluetoothFamily : __ZN23IOBluetoothL2CAPChannel6stopWLEv + 0x65
0xffffffdfdf3abde0 : 0xffffff80191162f4 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0xb4
0xffffffdfdf3abe40 : 0xffffff801b0202f1 com.apple.iokit.IOBluetoothFamily : __ZN23IOBluetoothL2CAPChannel4stopEP9IOService + 0x33
0xffffffdfdf3abe60 : 0xffffff80190e4dde mach_kernel : __ZN9IOService10actionStopEPS_S0_PvS1_S1_ + 0xde
0xffffffdfdf3abea0 : 0xffffff80191134ae mach_kernel : __ZN10IOWorkLoop9runActionEPFiP8OSObjectPvS2_S2_S2_ES1_S2_S2_S2_S2_ + 0x3e
0xffffffdfdf3abee0 : 0xffffff80190e3e04 mach_kernel : __ZN9IOService15terminateWorkerEj + 0xa54
0xffffffdfdf3abf60 : 0xffffff80190f0337 mach_kernel : __ZN9IOService15terminateThreadEPvi + 0x97
0xffffffdfdf3abfa0 : 0xffffff801898819e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOBluetoothFamily(9.0)[2E3F1375-D153-3EC5-AA56-20E7EDCF11B1]@0xffffff801b003000->0xffffff801b03afff
dependency: com.apple.iokit.IOACPIFamily(1.4)[55E86E16-9FC5-3768-880B-ADFECF403215]@0xffffff801af8f000->0xffffff801af90fff
dependency: com.apple.iokit.IOReportFamily(47)[3115840D-90F4-383F-8991-D3CF8891C24C]@0xffffff801b440000->0xffffff801b442fff
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[B4181B36-426B-3C0A-89A5-9C3F3ABAA418]@0xffffff801b7a0000->0xffffff801b814fff

Process name corresponding to current thread (0xffffff951c00e598): kernel_task
Boot args: -v keepsyms=1 debug=0x100 alcid=1

Mac OS version:
22A380

Kernel version:
Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
Kernel UUID: BF7C9676-EF23-3E8D-A2E2-25DAC63091B6
roots installed: 0
KernelCache slide: 0x0000000018600000
KernelCache base: 0xffffff8018800000
Kernel slide: 0x00000000186dc000
Kernel text base: 0xffffff80188dc000
__HIB text base: 0xffffff8018700000
System model name: iMac19,1 (Mac-AA95B1D000000000)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 109985284095
Last Sleep: absolute base_tsc base_nano
Uptime : 0x000000199ba24293
Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000
Wake : 0x0000000000000000 0x000000176c28cbf8 0x0000000000000000
Compressor Info: 0% of compressed pages limit (OK) and 0% of segments limit (OK) with 0 swapfiles and OK swap space
Zone info:
Zone map: 0xffffff804dd09000 - 0xffffffa04dd09000
. PGZ : 0xffffff804dd09000 - 0xffffff8051d0a000
. VM : 0xffffff8051d0a000 - 0xffffff851e03d000
. RO : 0xffffff851e03d000 - 0xffffff86b76a3000
. GEN0 : 0xffffff86b76a3000 - 0xffffff8b839d6000
. GEN1 : 0xffffff8b839d6000 - 0xffffff904fd09000
. GEN2 : 0xffffff904fd09000 - 0xffffff951c03c000
. GEN3 : 0xffffff951c03c000 - 0xffffff99e836f000
. DATA : 0xffffff99e836f000 - 0xffffffa04dd09000
Metadata: 0xffffffab49509000 - 0xffffffab69509000
Bitmaps : 0xffffffab69509000 - 0xffffffab75509000


Has anyone had this bug before? I wonder what kext could be causing this crash.
 
Last edited:
Which Bluetooth module are you using?

Is it a standalone or combo Bluetooth module, i.e. USB dongle or a WiFi/BT card?

Which if any kexts are you using with your Bluetooth module?

This section of the debug text might point you in the direction of the cause of the KP.

A kext releasing a(n) IOBluetoothL2CAPChannel has corrupted the registry.

So you need to see which kext is not functioning correctly.
 
Hi @Edhawh,

Thanks for your answer.

I use a Broadcom BCM943602 wifi + bluetooth card, installed in a PCI-e port.
I use BlueToolFixup.kext with.

But I wonder if this problem is not my USB ports which need to be patched correctly?
I have with Hackintool generated the file containing the state of all my USB / PCI ports.

My ports are not mapped correctly.
With Monterey, I managed to create my USBPorts.kext file, using UsbinjectAll.kext to patch my ports. But it is no longer compatible with Ventura

Her my pcidevices ports:

DEBUG VID DID SVID SDID ASPM Vendor Name Device Name Class Name SubClass Name IOReg Name IOReg IOName Device Path
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00:00.0 8086 591F 1043 872F Disabl Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge Bridge Host bridge /pci8086,591f@0 pci8086,591f PciRoot(0x0)/Pci(0x0,0x0)
00:02.0 8086 5912 1043 872F Disabl Intel Corporation Intel HD Graphics 630 Display controller VGA compatible contr /PCI0@0/IGPU@2 display PciRoot(0x0)/Pci(0x2,0x0)
00:14.0 8086 A2AF 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Contro Serial bus controlle USB controller /PCI0@0/XHC@14 pci8086,a2af PciRoot(0x0)/Pci(0x14,0x0)
00:16.0 8086 A2BA 1043 872F Disabl Intel Corporation 200 Series PCH CSME HECI #1 Communication contro Communication contro /PCI0@0/IMEI@16 pci8086,a2ba PciRoot(0x0)/Pci(0x16,0x0)
00:17.0 8086 A282 1043 872F Disabl Intel Corporation 200 Series PCH SATA controller [AHCI mode] Mass storage control SATA controller /PCI0@0/SAT0@17 pci8086,a282 PciRoot(0x0)/Pci(0x17,0x0)
00:1B.0 8086 A2E7 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #17 Bridge PCI bridge /PCI0@0/RP17@1B pci-bridge PciRoot(0x0)/Pci(0x1B,0x0)
00:1B.4 8086 A2EB 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #21 Bridge PCI bridge CI0@0/RP21@1B,4 pci-bridge PciRoot(0x0)/Pci(0x1B,0x4)
00:1C.0 8086 A290 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #1 Bridge PCI bridge /PCI0@0/RP01@1C pci-bridge PciRoot(0x0)/Pci(0x1C,0x0)
00:1C.1 8086 A291 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #2 Bridge PCI bridge CI0@0/RP02@1C,1 pci-bridge PciRoot(0x0)/Pci(0x1C,0x1)
00:1C.4 8086 A294 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #5 Bridge PCI bridge CI0@0/RP05@1C,4 pci-bridge PciRoot(0x0)/Pci(0x1C,0x4)
00:1C.6 8086 A296 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #7 Bridge PCI bridge CI0@0/RP07@1C,6 pci-bridge PciRoot(0x0)/Pci(0x1C,0x6)
00:1D.0 8086 A298 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #9 Bridge PCI bridge /PCI0@0/RP09@1D pci-bridge PciRoot(0x0)/Pci(0x1D,0x0)
00:1F.2 8086 A2A1 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family Power Management Co Memory controller Memory controller CI0@0/PPMC@1F,2 pci8086,a2a1 PciRoot(0x0)/Pci(0x1F,0x2)
00:1F.0 8086 A2C5 1043 872F Disabl Intel Corporation 200 Series PCH LPC Controller (Z270) Bridge ISA bridge /PCI0@0/LPCB@1F pci8086,a2c5 PciRoot(0x0)/Pci(0x1F,0x0)
00:1F.3 8086 A2F0 1043 8735 Disabl Intel Corporation 200 Series PCH HD Audio Multimedia controlle Audio device CI0@0/HDEF@1F,3 pci8086,a2f0 PciRoot(0x0)/Pci(0x1F,0x3)
00:1F.4 8086 A2A3 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller Serial bus controlle SMBus CI0@0/SBUS@1F,4 pci8086,a2a3 PciRoot(0x0)/Pci(0x1F,0x4)
00:1F.6 8086 15B8 1043 8672 Disabl Intel Corporation Ethernet Connection (2) I219-V Network controller Ethernet controller CI0@0/GLAN@1F,6 ethernet PciRoot(0x0)/Pci(0x1F,0x6)
02:00.0 14E4 43BA 106B 014A Disabl Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless LAN SoC Network controller Network controller P21@1B,4/PXSX@0 pci14e4,43ba PciRoot(0x0)/Pci(0x1B,0x4)/Pci(0x0,0x0)
07:00.0 144D A809 144D A801 Disabl Samsung Electronics Co Ltd NVMe SSD Controller 980 Mass storage control Non-Volatile memory /RP09@1D/PXSX@0 pci144d,a809 PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)
04:00.0 168C 003E 1043 86CD Disabl Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter Network controller Network controller P02@1C,1/PXSX@0 pci168c,3e PciRoot(0x0)/Pci(0x1C,0x1)/Pci(0x0,0x0)
 
Bluetooth:
You don't need to use BlueToolFixup.kext with a natively supported WiFi/BT card. I have a number of systems using native Apple/Broadcom WiFi/BT cards on PCIe adapters and none of them need any help for the BT to work.

The whole idea of using a natively supported Broadcom WiFi/BT card is that you don't need to add anything to have the WiFi and Bluetooth work in macOS.

BlueToolFixup.kext is part of the BrcmPatchRam kexts, which are meant for use with Non-Apple Bluetooth modules.

Remove any and all Bluetooth related kexts you may have added to your macOS setup.

WiFi:
If you need AirportBrcmFixup.kext for the WiFi that is fine, but you should only need this if the country-code or something else is not working correctly.


We are using the same Broadcom WiFi/BT card and I only have AirportBrcmFixup.kext and the country-code boot argument in my OC setup.

Windows:
Regarding using an Apple/Broadcom WiFi/BT card in Windows 10 or 11, all I have ever required are the two drivers/exe's attached below.

I have never had any issues using my Apple BT/Wireless Keyboards or mice with my dual-boot systems.

Dual WiFi cards:
What might not be helping you is the fact you also have an Atheros WiFi card in your system. You should either physically remove this card or disable it in the bios if possible, so any clashes with the Broadcom card are eliminated.

Pasting the PCIe Device information in the post above was not helpful in the format you used. The screenshot below is the same information but it is much easier to read and navigate in this format.

Screenshot 2022-11-15 at 19.55.20.png

Hope this helps.
 

Attachments

  • AppleBluetoothBroadcom64.zip
    2.2 MB · Views: 23
  • BroadcomWirelessWin8x64.exe.zip
    3.8 MB · Views: 24
Hi @Edhawh,

Thanks for your answer.

I use a Broadcom BCM943602 wifi + bluetooth card, installed in a PCI-e port.
I use BlueToolFixup.kext with.

But I wonder if this problem is not my USB ports which need to be patched correctly?
I have with Hackintool generated the file containing the state of all my USB / PCI ports.

My ports are not mapped correctly.
With Monterey, I managed to create my USBPorts.kext file, using UsbinjectAll.kext to patch my ports. But it is no longer compatible with Ventura

Her my pcidevices ports:

DEBUG VID DID SVID SDID ASPM Vendor Name Device Name Class Name SubClass Name IOReg Name IOReg IOName Device Path
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00:00.0 8086 591F 1043 872F Disabl Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge Bridge Host bridge /pci8086,591f@0 pci8086,591f PciRoot(0x0)/Pci(0x0,0x0)
00:02.0 8086 5912 1043 872F Disabl Intel Corporation Intel HD Graphics 630 Display controller VGA compatible contr /PCI0@0/IGPU@2 display PciRoot(0x0)/Pci(0x2,0x0)
00:14.0 8086 A2AF 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Contro Serial bus controlle USB controller /PCI0@0/XHC@14 pci8086,a2af PciRoot(0x0)/Pci(0x14,0x0)
00:16.0 8086 A2BA 1043 872F Disabl Intel Corporation 200 Series PCH CSME HECI #1 Communication contro Communication contro /PCI0@0/IMEI@16 pci8086,a2ba PciRoot(0x0)/Pci(0x16,0x0)
00:17.0 8086 A282 1043 872F Disabl Intel Corporation 200 Series PCH SATA controller [AHCI mode] Mass storage control SATA controller /PCI0@0/SAT0@17 pci8086,a282 PciRoot(0x0)/Pci(0x17,0x0)
00:1B.0 8086 A2E7 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #17 Bridge PCI bridge /PCI0@0/RP17@1B pci-bridge PciRoot(0x0)/Pci(0x1B,0x0)
00:1B.4 8086 A2EB 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #21 Bridge PCI bridge CI0@0/RP21@1B,4 pci-bridge PciRoot(0x0)/Pci(0x1B,0x4)
00:1C.0 8086 A290 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #1 Bridge PCI bridge /PCI0@0/RP01@1C pci-bridge PciRoot(0x0)/Pci(0x1C,0x0)
00:1C.1 8086 A291 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #2 Bridge PCI bridge CI0@0/RP02@1C,1 pci-bridge PciRoot(0x0)/Pci(0x1C,0x1)
00:1C.4 8086 A294 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #5 Bridge PCI bridge CI0@0/RP05@1C,4 pci-bridge PciRoot(0x0)/Pci(0x1C,0x4)
00:1C.6 8086 A296 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #7 Bridge PCI bridge CI0@0/RP07@1C,6 pci-bridge PciRoot(0x0)/Pci(0x1C,0x6)
00:1D.0 8086 A298 0000 0000 Disabl Intel Corporation 200 Series PCH PCI Express Root Port #9 Bridge PCI bridge /PCI0@0/RP09@1D pci-bridge PciRoot(0x0)/Pci(0x1D,0x0)
00:1F.2 8086 A2A1 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family Power Management Co Memory controller Memory controller CI0@0/PPMC@1F,2 pci8086,a2a1 PciRoot(0x0)/Pci(0x1F,0x2)
00:1F.0 8086 A2C5 1043 872F Disabl Intel Corporation 200 Series PCH LPC Controller (Z270) Bridge ISA bridge /PCI0@0/LPCB@1F pci8086,a2c5 PciRoot(0x0)/Pci(0x1F,0x0)
00:1F.3 8086 A2F0 1043 8735 Disabl Intel Corporation 200 Series PCH HD Audio Multimedia controlle Audio device CI0@0/HDEF@1F,3 pci8086,a2f0 PciRoot(0x0)/Pci(0x1F,0x3)
00:1F.4 8086 A2A3 1043 872F Disabl Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller Serial bus controlle SMBus CI0@0/SBUS@1F,4 pci8086,a2a3 PciRoot(0x0)/Pci(0x1F,0x4)
00:1F.6 8086 15B8 1043 8672 Disabl Intel Corporation Ethernet Connection (2) I219-V Network controller Ethernet controller CI0@0/GLAN@1F,6 ethernet PciRoot(0x0)/Pci(0x1F,0x6)
02:00.0 14E4 43BA 106B 014A Disabl Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless LAN SoC Network controller Network controller P21@1B,4/PXSX@0 pci14e4,43ba PciRoot(0x0)/Pci(0x1B,0x4)/Pci(0x0,0x0)
07:00.0 144D A809 144D A801 Disabl Samsung Electronics Co Ltd NVMe SSD Controller 980 Mass storage control Non-Volatile memory /RP09@1D/PXSX@0 pci144d,a809 PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)
04:00.0 168C 003E 1043 86CD Disabl Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter Network controller Network controller P02@1C,1/PXSX@0 pci168c,3e PciRoot(0x0)/Pci(0x1C,0x1)/Pci(0x0,0x0)


Yes you are right. I will disable the Atheros card in the Bios. Then I will delete all Kexts intended for bluetooth.
But in the devices listed here, we see some like broadcom, are disabled.

To activate the necessary ones, shouldn't i also patch the usb ports correctly, and in "DeviceProperties" of the config.plist, have these devices recognized?
for example;

<key>PciRoot(0x0)/Pci(0x1B,0x4)/Pci(0x0,0x0)</key>
<dict>
<key>AAPL,slot-name</key>
<string>[email protected]/0.0</string>
<key>device_type</key>
<string>Network controller</string>
<key>model</key>
<string>BCM43602 802.11ac Wireless LAN SoC</string>
</dict>
 
The drivers for the Broadcom card are not disabled.

The PCIe Device information is saying that ASPM is Disabled, not that the drivers or anything important is disabled.

All of the PCIe devices listed have ASPM set as disabled, if you look at the information in the screenshot I posted.

It is not necessary/essential to add the Broadcom cards DeviceProperties to the config.plist, as it is already being found, activated and identified correctly in macOS.
 
The drivers for the Broadcom card are not disabled.

The PCIe Device information is saying that ASPM is Disabled, not that the drivers or anything important is disabled.

All of the PCIe devices listed have ASPM set as disabled, if you look at the information in the screenshot I posted.

It is not necessary/essential to add the Broadcom cards DeviceProperties to the config.plist, as it is already being found, activated and identified correctly in macOS.

Hi,

Ok i understand. I will delete all kexts for the Broadcom card.

Other thing for mapping USB ports, i have discovered this site which allows to
download the dsdt for my Asus Maximus IX Formula motherboard.
I believe this file can allow me to correctly map my USB ports, but I don't know how to use it.

 
Yuo don’t want or need someone else’s DSDT.aml.

What you need to do is to read and follow the USB configuration guid, if you don’t have a custom USBPorts.kext.

 
Status
Not open for further replies.
Back
Top