Contribute
Register

IOUSBHostFamily Sleep Crash caused by Bluetooth

Status
Not open for further replies.
Joined
Mar 9, 2013
Messages
121
Motherboard
Dell XPS 13 9360
CPU
Intel i7-8550U
Graphics
Intel HD620
Hello!
I have an i7 2018 Matebook X Pro with Catalina 10.15.4. I've patched USB ports using SSDT-UIAC, but I have a strange issue: sleep works just fine most of the times and bluetooth usually works after sleep.

But sometimes after sleep I get "Bluetooth not available", and here is where issues start to arise, because if laptop goes back to sleep with "Bluetooth not available" then I get a kernel panic:

panic(cpu 0 caller 0xffffff8001e91b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x1a9c1.
Failure code:: 0x00000008 00000014

Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff81f61cb900 : 0xffffff80018471e8
0xffffff81f6193c40 : 0xffffff80017433f1
0xffffff81f6193cb0 : 0xffffff8001741c2f
0xffffff81f6193d00 : 0xffffff80018442e9
0xffffff81f6193d40 : 0xffffff8001843b4b
0xffffff81f6193d70 : 0xffffff8001e2d048
0xffffff81f6193da0 : 0xffffff8001e2ff59
0xffffff81f6193e00 : 0xffffff8001e152ea
0xffffff81f6193ea0 : 0xffffff8001e14c14
0xffffff81f6193ec0 : 0xffffff8001763545
0xffffff81f6193f40 : 0xffffff8001763071
0xffffff81f6193fa0 : 0xffffff80016c713e

BSD process name corresponding to current thread: kernel_task
Boot args: dart=0 -cdfon -igfxmlr

Mac OS version:
19E287

Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide: 0x0000000001400000
Kernel text base: 0xffffff8001600000
__HIB text base: 0xffffff8001500000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 2654279643076
last loaded kext at 2407880486425: >!UAudio 322.2 (addr 0xffffff7f864e5000, size 434176)
last unloaded kext at 2163025597265: ru.joedm.SMCSuperIO 1.0.9 (addr 0xffffff7f85638000, size 28672)
loaded kexts:
com.intel.driver.EnergyDriver 3.7.0
com.realtek.driver.RtWlanU 1830.32.b13
com.zxystd.!I!BFirmware 1.0.3
as.acidanthera.voodoo.driver.PS2Keyboard 2.1.0
ru.joedm.SMCSuperIO 1.0.9
com.alexandred.VoodooI2CHID 1
com.alexandred.VoodooI2C 2.3
org.rehabman.driver.NullEthernet 1.0.6
as.acidanthera.voodoo.driver.PS2!C 2.1.0
org.coolstar.VoodooGPIO 1.1
as.vit9696.SMCProcessor 1.0.9
as.vit9696.!AALC 1.4.7
org.tw.CodecCommander 2.7.1
org.vanilla.driver.CPUFriend 1.2.0
as.lvs1974.HibernationFixup 1.3.1
xyz.racermaster.NoTouchID 1.0.3
org.acidanthera.NVMeFix 1.0.2
com.rehabman.driver.USBInjectAll 0.7.1
ru.usrsse2.SMCBatteryManager 1
ru.usrsse2.SMCLightSensor 1
as.vit9696.VirtualSMC 1.0.9
com.alexandred.VoodooI2CServices 1
as.vit9696.WhateverGreen 1.3.8
as.vit9696.Lilu 1.4.3
@filesystems.msdosfs 1.10
@filesystems.smbfs 3.4.2
>AudioAUUC 1.70
@fileutil 20.036.15
@filesystems.autofs 3.0
>!APlatformEnabler 2.7.0d0
>AGPM 111.4.4
>X86PlatformShim 1.0.0
>!AUpstreamUserClient 3.6.8
>!AHDA 283.15
>!AGraphicsDevicePolicy 5.1.16
@AGDCPluginDisplayMetrics 5.1.16
>!AHV 1
|IOUserEthernet 1.0.1
|IO!BSerialManager 7.0.4f6
>pmtelemetry 1
@Dont_Steal_Mac_OS_X 7.0.0
>!A!IKBLGraphics 14.0.5
@private.KextAudit 1.0
>eficheck 1
>!A!IPCHPMC 2.0.1
>!A!IKBLGraphicsFramebuffer 14.0.5
>!ABacklight 180.3
>!A!ISlowAdaptiveClocking 4.0.0
>!ASMCLMU 212
>!AMCCSControl 1.11
>!ATopCaseHIDEventDriver 3430.1
>!AVirtIO 1.0
@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@filesystems.apfs 1412.101.1
>!ASmartBatteryManager 161.0.0
>!ARTC 2.0
>!AACPIButtons 6.1
>!AACPIEC 6.1
>!AHPET 1.8
>!ASMBIOS 2.1
>!AAPIC 1.7
$!AImage4 1
@nke.applicationfirewall 303
$TMSafetyNet 8
@!ASystemPolicy 2.0.0
|EndpointSecurity 1
>!UAudio 322.2
>usb.cdc 5.0.0
@kext.triggers 1.0
>DspFuncLib 283.15
@kext.OSvKernDSPLib 529
>!AGraphicsControl 5.1.16
|IOAVB!F 840.3
>!ASSE 1.0
@!AGPUWrangler 5.1.16
>!AHDA!C 283.15
|IOHDA!F 283.15
@!AGraphicsDeviceControl 5.1.16
|IOAccelerator!F2 438.4.5
>!ABacklightExpert 1.1.0
|IONDRVSupport 575.1
|IOSlowAdaptiveClocking!F 1.0.0
>!ASMBus!C 1.0.18d1
>X86PlatformPlugin 1.0.0
>IOPlatformPlugin!F 6.0.0d8
@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0
|IOSkywalk!F 1
>!AHS!BDriver 3430.1
>IO!BHIDDriver 7.0.4f6
>!AActuatorDriver 3440.1
>!AMultitouchDriver 3440.1
>!AInputDeviceSupport 3440.8
>usb.networking 5.0.0
>usb.!UHostCompositeDevice 1.2
|Broadcom!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CTransport 7.0.4f6
|IO!B!F 7.0.4f6
|IO!BPacketLogger 7.0.4f6
|IOSerial!F 11
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
>usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
|IONVMe!F 2.1.0
>!AEFINVRAM 2.1
>!AEFIRuntime 2.1
>usb.!UXHCIPCI 1.2
>usb.!UXHCI 1.2
|IOGraphics!F 575.1
|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1
|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSMBus!F 1.1
>DiskImages 493.0.0
>!AFDEKeyStore 28.30
>!AEffaceable!S 1.0
>!AKeyStore 2
>!UTDM 489.101.1
|IOSCSIBlockCommandsDevice 422.101.1
>!ACredentialManager 1.0
>KernelRelayHost 1
>!ASEPManager 1.0.1
>IOSlaveProcessor 1
|IOUSBMass!SDriver 157.101.3
|IOSCSIArchitectureModel!F 422.101.1
|IO!S!F 2.1
|IOUSBHost!F 1.2
>!UHostMergeProperties 1.2
>usb.!UCommon 1.0
>!ABusPower!C 1.0
|CoreAnalytics!F 1
>!AMobileFileIntegrity 1.0.5
@kext.CoreTrust 1
|IOTimeSync!F 840.3
|IONetworking!F 3.4
|IOReport!F 47
>!AACPIPlatform 6.1
>!ASMC 3.1.9
>watchdog 1
|IOPCI!F 2.9
|IOACPI!F 1.4
@kec.pthread 1
@kec.corecrypto 1.0
@kec.Libm 1


Even with "Bluetooth not available" in the top bar, bluetooth chip is still shown in port-discovery (using USBMap tool):
Schermata 2020-04-30 alle 17.20.39.png


Also I have checked, and both HS05 and HS07 ports are 0xFF (internal).

Any advice for this? It's my first try on this laptop, so maybe I got something wrong somewhere else.
Thank you
 

Attachments

  • problem_reporting.zip
    16.6 MB · Views: 52
Hello!
I have an i7 2018 Matebook X Pro with Catalina 10.15.4. I've patched USB ports using SSDT-UIAC, but I have a strange issue: sleep works just fine most of the times and bluetooth usually works after sleep.

But sometimes after sleep I get "Bluetooth not available", and here is where issues start to arise, because if laptop goes back to sleep with "Bluetooth not available" then I get a kernel panic:

panic(cpu 0 caller 0xffffff8001e91b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x1a9c1.
Failure code:: 0x00000008 00000014

Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff81f61cb900 : 0xffffff80018471e8
0xffffff81f6193c40 : 0xffffff80017433f1
0xffffff81f6193cb0 : 0xffffff8001741c2f
0xffffff81f6193d00 : 0xffffff80018442e9
0xffffff81f6193d40 : 0xffffff8001843b4b
0xffffff81f6193d70 : 0xffffff8001e2d048
0xffffff81f6193da0 : 0xffffff8001e2ff59
0xffffff81f6193e00 : 0xffffff8001e152ea
0xffffff81f6193ea0 : 0xffffff8001e14c14
0xffffff81f6193ec0 : 0xffffff8001763545
0xffffff81f6193f40 : 0xffffff8001763071
0xffffff81f6193fa0 : 0xffffff80016c713e

BSD process name corresponding to current thread: kernel_task
Boot args: dart=0 -cdfon -igfxmlr

Mac OS version:
19E287

Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide: 0x0000000001400000
Kernel text base: 0xffffff8001600000
__HIB text base: 0xffffff8001500000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 2654279643076
last loaded kext at 2407880486425: >!UAudio 322.2 (addr 0xffffff7f864e5000, size 434176)
last unloaded kext at 2163025597265: ru.joedm.SMCSuperIO 1.0.9 (addr 0xffffff7f85638000, size 28672)
loaded kexts:
com.intel.driver.EnergyDriver 3.7.0
com.realtek.driver.RtWlanU 1830.32.b13
com.zxystd.!I!BFirmware 1.0.3
as.acidanthera.voodoo.driver.PS2Keyboard 2.1.0
ru.joedm.SMCSuperIO 1.0.9
com.alexandred.VoodooI2CHID 1
com.alexandred.VoodooI2C 2.3
org.rehabman.driver.NullEthernet 1.0.6
as.acidanthera.voodoo.driver.PS2!C 2.1.0
org.coolstar.VoodooGPIO 1.1
as.vit9696.SMCProcessor 1.0.9
as.vit9696.!AALC 1.4.7
org.tw.CodecCommander 2.7.1
org.vanilla.driver.CPUFriend 1.2.0
as.lvs1974.HibernationFixup 1.3.1
xyz.racermaster.NoTouchID 1.0.3
org.acidanthera.NVMeFix 1.0.2
com.rehabman.driver.USBInjectAll 0.7.1
ru.usrsse2.SMCBatteryManager 1
ru.usrsse2.SMCLightSensor 1
as.vit9696.VirtualSMC 1.0.9
com.alexandred.VoodooI2CServices 1
as.vit9696.WhateverGreen 1.3.8
as.vit9696.Lilu 1.4.3
@filesystems.msdosfs 1.10
@filesystems.smbfs 3.4.2
>AudioAUUC 1.70
@fileutil 20.036.15
@filesystems.autofs 3.0
>!APlatformEnabler 2.7.0d0
>AGPM 111.4.4
>X86PlatformShim 1.0.0
>!AUpstreamUserClient 3.6.8
>!AHDA 283.15
>!AGraphicsDevicePolicy 5.1.16
@AGDCPluginDisplayMetrics 5.1.16
>!AHV 1
|IOUserEthernet 1.0.1
|IO!BSerialManager 7.0.4f6
>pmtelemetry 1
@Dont_Steal_Mac_OS_X 7.0.0
>!A!IKBLGraphics 14.0.5
@private.KextAudit 1.0
>eficheck 1
>!A!IPCHPMC 2.0.1
>!A!IKBLGraphicsFramebuffer 14.0.5
>!ABacklight 180.3
>!A!ISlowAdaptiveClocking 4.0.0
>!ASMCLMU 212
>!AMCCSControl 1.11
>!ATopCaseHIDEventDriver 3430.1
>!AVirtIO 1.0
@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@filesystems.apfs 1412.101.1
>!ASmartBatteryManager 161.0.0
>!ARTC 2.0
>!AACPIButtons 6.1
>!AACPIEC 6.1
>!AHPET 1.8
>!ASMBIOS 2.1
>!AAPIC 1.7
$!AImage4 1
@nke.applicationfirewall 303
$TMSafetyNet 8
@!ASystemPolicy 2.0.0
|EndpointSecurity 1
>!UAudio 322.2
>usb.cdc 5.0.0
@kext.triggers 1.0
>DspFuncLib 283.15
@kext.OSvKernDSPLib 529
>!AGraphicsControl 5.1.16
|IOAVB!F 840.3
>!ASSE 1.0
@!AGPUWrangler 5.1.16
>!AHDA!C 283.15
|IOHDA!F 283.15
@!AGraphicsDeviceControl 5.1.16
|IOAccelerator!F2 438.4.5
>!ABacklightExpert 1.1.0
|IONDRVSupport 575.1
|IOSlowAdaptiveClocking!F 1.0.0
>!ASMBus!C 1.0.18d1
>X86PlatformPlugin 1.0.0
>IOPlatformPlugin!F 6.0.0d8
@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0
|IOSkywalk!F 1
>!AHS!BDriver 3430.1
>IO!BHIDDriver 7.0.4f6
>!AActuatorDriver 3440.1
>!AMultitouchDriver 3440.1
>!AInputDeviceSupport 3440.8
>usb.networking 5.0.0
>usb.!UHostCompositeDevice 1.2
|Broadcom!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CTransport 7.0.4f6
|IO!B!F 7.0.4f6
|IO!BPacketLogger 7.0.4f6
|IOSerial!F 11
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
>usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
|IONVMe!F 2.1.0
>!AEFINVRAM 2.1
>!AEFIRuntime 2.1
>usb.!UXHCIPCI 1.2
>usb.!UXHCI 1.2
|IOGraphics!F 575.1
|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1
|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSMBus!F 1.1
>DiskImages 493.0.0
>!AFDEKeyStore 28.30
>!AEffaceable!S 1.0
>!AKeyStore 2
>!UTDM 489.101.1
|IOSCSIBlockCommandsDevice 422.101.1
>!ACredentialManager 1.0
>KernelRelayHost 1
>!ASEPManager 1.0.1
>IOSlaveProcessor 1
|IOUSBMass!SDriver 157.101.3
|IOSCSIArchitectureModel!F 422.101.1
|IO!S!F 2.1
|IOUSBHost!F 1.2
>!UHostMergeProperties 1.2
>usb.!UCommon 1.0
>!ABusPower!C 1.0
|CoreAnalytics!F 1
>!AMobileFileIntegrity 1.0.5
@kext.CoreTrust 1
|IOTimeSync!F 840.3
|IONetworking!F 3.4
|IOReport!F 47
>!AACPIPlatform 6.1
>!ASMC 3.1.9
>watchdog 1
|IOPCI!F 2.9
|IOACPI!F 1.4
@kec.pthread 1
@kec.corecrypto 1.0
@kec.Libm 1


Even with "Bluetooth not available" in the top bar, bluetooth chip is still shown in port-discovery (using USBMap tool):
View attachment 466096

Also I have checked, and both HS05 and HS07 ports are 0xFF (internal).

Any advice for this? It's my first try on this laptop, so maybe I got something wrong somewhere else.
Thank you
after you have setup your usb ports, you need to disable the port limit patch in your config.plist
 
Oh god! Thanks I totally missed that.
So, disabled
com.apple.iokit.IOUSBHostFamily
and
com.apple.driver.usb.AppleUSBXHCI
patches.

Do I need to keep USBInjectAll in EFI/Clover right?
Thank you!
 
Oh god! Thanks I totally missed that.
So, disabled and patches.

Do I need to keep USBInjectAll in EFI/Clover right?
Thank you!
yes, otherwise your ssdt for your usb ports won't work :)
 
I'm sorry, but you can explain what you did to fix it. It's not very clear to me. Thank you.
 
I'm sorry, but you can explain what you did to fix it. It's not very clear to me. Thank you.
there is a usb setup guide here:

which should help you
 
It served me well. Thank you.
 
yes, otherwise your ssdt for your usb ports won't work :)

I think I may need to re-open this. The problem occurs a lot less, but today had the same issue again after waking up from sleep: bluetooth was "not available" and the next sleep the same Kernel panic appeared again.

So if before the issue was happening 6 times out of 10 sleeps, now is something like 1 out of 10... but there must be still something wrong.

Thank you


EDIT: I tried to redo the patch following the tutorial you sent above. Let's see how it goes!
I suspect the problem may be related to the USB-C port which is also Thunderbolt 3. Hotplugging for that port does not work, so unable to add that into the patch (as if I connect a device at boot I've noticed that the port name always change).

EDIT2: Problem still there even after patching using the guide above.
Schermata 2020-05-03 alle 18.35.15.png

If after sleep bluetooth has this Icon, then the next sleep will cause a KP. I also noticed that when this happens IORegistryExplorer stops responding, and even if I reopen it it does not open.
Also, if I try to shutdown / reboot system gets stuck.
 

Attachments

  • CLOVER.zip
    15.7 MB · Views: 59
Last edited:
Hello. Still here with the exact same issue. I also tried to re-patch everything with the SSDT-UIAC method + USBInject all. The only strange thing I noticed is that "HS07" is renamed as "BT01" in IORegistryExplorer (but that is the internal camera).

Disabling bluetooth from BIOS seems to solve the sleep issue.
Any Idea?

Thanks
 

Attachments

  • ioreg.ioreg
    8.8 MB · Views: 60
  • CLOVER.zip
    20.2 MB · Views: 61
Status
Not open for further replies.
Back
Top