Contribute
Register

Apple Airport card + Hackintosh = Instant Wake issue

Status
Not open for further replies.
Joined
Sep 30, 2012
Messages
21
Motherboard
Fujitsu Esprimo Q520 D3223
CPU
i3-4130T/H81
Graphics
HD 4400
Mac
  1. Mac mini
Hey all,

I need your help.
Recently I installed an authentic Apple Airport card (Broadcom BCM94331CD) on my Hackintosh together with a PCI-E adapter card.
It worked OOB, without any added kexts or additional settings, so I was initially very happy.

However, I soon realised that the computer would just not go to sleep. Or to be precise, it would sleep but would wake up again immediately.

I checked all the possible suggestions online.

1. I followed Rehabman's guide for creating a custom SSDT for USBInjectAll, disabling all unused USB ports, giving proper names etc.
2. I installed the AirportBrcmFixup kext together with the appropriate kexts for bluetooth etc for my card.
3. I extracted the computer's DSDT and went through it, deleting all PWR instances and saved as custom DSDT to EFI/Clover partition.
4. As #3 had no effect I went through DSDT again changing the PWR hex values to various suggestions.

Nothing worked. The computer stubbornly refuses to stay asleep.

NOTES:
- Wake reason is always XHC. I know this refers to USB activity but it is 100% an issue with the wifi card. When I remove the card the computer sleeps perfectly, every single time.
- The computer is running MacOS Sierra 10.12.6 and everything else is working 100%.
- Up until I installed the card, sleep & shutdown were working fine.
- I can get the computer to stay asleep by deleting the com.apple.airport.preferences file in /Library/Preferences/SystemConfiguration folder and selecting Turn WiFi Off from the settings panel. By doing this the wifi card is simply sitting there doing nothing; no selected network connection.
If I leave it like that it will sleep perfectly (but of course there is no internet).

What could be the issue here? I'll follow up with all relevant files and outputs as per Rehabman's instructions on other similar threads.

Any help will be greatly appreciated!
Nick
 
If you have already assigned the USB port type to be 255, then it's possible you have a defective AirPort card. I experienced the exact same issue with a BCM94360CDAX. I replaced the card with a new one while using the same PCI-e adaptor and sleep immediately worked.
 
That would be the only thing I'd wish wouldn't be the case; it took a while to source this card off the net and I don't really want to have to pay more money for this.

Let's see if we can get anywhere with this though; here are the system files and logs.
ioreg and Clover folder as per links below: (can't attach files here)

CLOVER

IOREG 1.2

Terminal output for kextstat/pmset:
Code:
Last login: Wed May  8 09:34:09 on console

Mac-mini:~ Nick$ kextstat|grep -y acpiplat
   13    1 0xffffff7f83496000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>

Mac-mini:~ Nick$ kextstat|grep -y appleintelcpu

Mac-mini:~ Nick$ kextstat|grep -y applelpc

Mac-mini:~ Nick$ kextstat|grep -y applehda
   99    1 0xffffff7f830c2000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (279.48) ED51F180-19C8-3DE1-AF81-0E389D98ADDE <98 97 96 12 7 6 5 4 3 1>
  124    0 0xffffff7f83244000 0xb5000    0xb5000    com.apple.driver.AppleHDA (279.48) 806B8C17-50CA-3C6B-90B3-195F38D8FB89 <123 109 99 98 97 96 6 5 4 3 1>
  131    0 0xffffff7f830be000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (279.48) 14690424-1048-3F1D-8A3D-41657C97EB67 <4 3>

Mac-mini:~ Nick$ pmset -g assertions
2019-05-08 09:37:48 +0300
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 180(coreaudiod): [0x0000001d000180a1] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1B,2,1,1:0.context.preventuseridlesleep"
    Created for PID: 356.
   pid 180(coreaudiod): [0x0000001d00018091] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.DPSReflectorEngine:0.context.preventuseridlesleep"
    Created for PID: 356.
   pid 104(hidd): [0x0000000a00098037] 00:03:53 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968212.17"
    Timeout will fire in 235 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14700000 owner=USB3.0 Card Reader
   id=501  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14800000 owner=Keyboard Hub
   id=506  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14830000 owner=USB Receiver
Idle sleep preventers: IODisplayWrangler

Terminal output for kext cache refresh:

Code:
Last login: Wed May  8 20:38:49 on console
Mac-mini:~ Nick$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_LPCSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_CPUSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_ACPISensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AHCI_Intel_Generic_SATA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext WhateverGreen.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooTSCSync.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext NullCPUPowerManagement.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext Lilu.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelMausiEthernet.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_XHCIMux.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HD_Graphics.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleUSBCardReader.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleALC.kext
KernelCache ID: 6AE79766B9EB782DC60683B91ABAFC08
 
Last edited:
That would be the only thing I'd wish wouldn't be the case; it took a while to source this card off the net and I don't really want to have to pay more money for this.

Let's see if we can get anywhere with this though; here are the system files and logs.
ioreg and Clover folder as per links below: (can't attach files here)

CLOVER

IOREG 1.2

Terminal output for kextstat/pmset:
Code:
Last login: Wed May  8 09:34:09 on console

Mac-mini:~ Nick$ kextstat|grep -y acpiplat
   13    1 0xffffff7f83496000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>

Mac-mini:~ Nick$ kextstat|grep -y appleintelcpu

Mac-mini:~ Nick$ kextstat|grep -y applelpc

Mac-mini:~ Nick$ kextstat|grep -y applehda
   99    1 0xffffff7f830c2000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (279.48) ED51F180-19C8-3DE1-AF81-0E389D98ADDE <98 97 96 12 7 6 5 4 3 1>
  124    0 0xffffff7f83244000 0xb5000    0xb5000    com.apple.driver.AppleHDA (279.48) 806B8C17-50CA-3C6B-90B3-195F38D8FB89 <123 109 99 98 97 96 6 5 4 3 1>
  131    0 0xffffff7f830be000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (279.48) 14690424-1048-3F1D-8A3D-41657C97EB67 <4 3>

Mac-mini:~ Nick$ pmset -g assertions
2019-05-08 09:37:48 +0300
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 180(coreaudiod): [0x0000001d000180a1] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1B,2,1,1:0.context.preventuseridlesleep"
    Created for PID: 356.
   pid 180(coreaudiod): [0x0000001d00018091] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.DPSReflectorEngine:0.context.preventuseridlesleep"
    Created for PID: 356.
   pid 104(hidd): [0x0000000a00098037] 00:03:53 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968212.17"
    Timeout will fire in 235 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14700000 owner=USB3.0 Card Reader
   id=501  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14800000 owner=Keyboard Hub
   id=506  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.14830000 owner=USB Receiver
Idle sleep preventers: IODisplayWrangler

Terminal output for kext cache refresh:

Code:
Mac-mini:~ Nick$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_LPCSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_CPUSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_ACPISensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
FakePCIID_XHCIMux.kext - no compatible dependency found for org.rehabman.driver.FakePCIID.
FakePCIID_XHCIMux.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_XHCIMux.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AHCI_Intel_Generic_SATA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext WhateverGreen.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooTSCSync.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext NullCPUPowerManagement.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext Lilu.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelMausiEthernet.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HD_Graphics.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleUSBCardReader.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleALC.kext
FakePCIID_XHCIMux.kext - no compatible dependency found for org.rehabman.driver.FakePCIID.
FakePCIID_XHCIMux.kext - no compatible dependency found for org.rehabman.driver.FakePCIID.
Prelink failed for org.rehabman.driver.FakePCIID.XHCIMux; omitting from prelinked kernel.
KernelCache ID: B883710AD6DB21A2A51D5FCF00BC2370

NullCPUPowerManagement definitely won't help with sleep. I'm surprised you had sleep working prior to installing the card with this kext...

Also, coreaudiod seems to be preventing sleep.
 
Update:

Previously I noticed that the kext output was complaining that the FakePCIID_XHCIMux.kext was not loading due to being a different version to the FakePCIID.kext. I got the latest kexts from Rehabman and after rebooting all the kexts are loading properly (as shown above in the last terminal section).

Now, when I do a pmset I get:
Code:
Mac-mini:~ Nick$ pmset -g assertions
2019-05-08 20:42:29 +0300
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0


Listed by owning process:
   pid 179(coreaudiod): [0x0000003b000180cb] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1B,2,1,1:0.context.preventuseridlesleep"
    Created for PID: 295.
   pid 179(coreaudiod): [0x0000003b000180bb] 00:03:34 PreventUserIdleSystemSleep named: "com.apple.audio.DPSReflectorEngine:0.context.preventuseridlesleep"
    Created for PID: 295.
   pid 104(hidd): [0x0000001400098072] 00:04:16 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968252.17"

    Timeout will fire in 235 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=502  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.1a110000 owner=BRCM20702 Hub
   id=505  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.1d150000 owner=USB3.0 Card Reader
   id=506  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.1d160000 owner=Keyboard Hub
   id=508  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.1d163000 owner=USB Receiver
   id=509  level=255 0x4=USB mod=01/01/1970, 02:00 description=com.apple.usb.externaldevice.1a120000 owner=USB2.0-CRW
Idle sleep preventers: IODisplayWrangler

Previously the only kernel assertions were my USB 3.0 card reader, my keyboard and the mouse.
Now on top of these three I also get a BRCM20702 Hub (the WiFi card?) and a USB 2.0 CRW -which is probably the integrated card reader of the computer which never worked with MacOS.
 
Last edited:
NullCPUPowerManagement definitely won't help with sleep. I'm surprised you had sleep working prior to installing the card with this kext...

Also, coreaudiod seems to be preventing sleep.

First of all, thanks for your help. I removed the NullCPUPowerManagement kext, cleared caches & reboot but still nothing. Goes to sleep and wakes up immediately.
 
First of all, thanks for your help. I removed the NullCPUPowerManagement kext, cleared caches & reboot but still nothing. Goes to sleep and wakes up immediately.

I'm not sure why coreaudiod is listed as preventing sleep... Is your bluetooth connected to speakers or something? Does the system sleep if nothing is paired to Bluetooth?
 
I have no idea why coreaudiod would be preventing sleep.
As I say, the computer is sleeping happily if I remove the Apple Airport card without any other changes.

The bluetooth is embedded in the wifi card itself. I say this because I've seen cards that need an internal usb connection to the BT for it to work. This has none.
If it helps, the card is this one:

The bluetooth is not connected to anything; I never use it. And, no, the system will not sleep bluetooth or not.
 
I have no idea why coreaudiod would be preventing sleep.
As I say, the computer is sleeping happily if I remove the Apple Airport card without any other changes.

The bluetooth is embedded in the wifi card itself. I say this because I've seen cards that need an internal usb connection to the BT for it to work. This has none.
If it helps, the card is this one:

The bluetooth is not connected to anything; I never use it. And, no, the system will not sleep bluetooth or not.

I'm assuming you are using one of these cards with a mini-PCI adaptor such as:

These cards have USB D+ and D- connections that need to be connected to a USB port.
s-l500.jpg714xwIcvaHL._SX425_.jpg
 
The adaptor card is this:

There are no USB connectors on it. Again, I don't mind at all; I don't use the bluetooth anyway, but as I said the Bluetooth seems to be present and functioning.
 

Attachments

  • Screen Shot 2019-05-08 at 21.56.36.png
    Screen Shot 2019-05-08 at 21.56.36.png
    141.1 KB · Views: 159
Status
Not open for further replies.
Back
Top