Contribute
Register

Apple Airport card + Hackintosh = Instant Wake issue

Status
Not open for further replies.
First of all thanks so much for your help. I'm sorry if I come across as annoying but I've been struggling with this damn thing so long now.

The motherboard might unfortunately to be a non-standard one. The computer is a Fujitsu Esprimo Q520 mini PC and in the manual it mentions Mainboard type D3223 / Form Factor Proprietary / Chipset Intel H81

Inside the computer there are no USB ports that I can see. All I did was to plug in the Apple airport card into a mini pci adapter and connect it to the computer. No extra USB connections or anything. It seems to find a bluetooth device all on its own and map it to wherever.

I have managed to disable the bluetooth device completely from the system by mapping out the relevant USB port, but the computer will still wake up from sleep.

I'll remove the kext and report back. Thanks!

Okay. I have seen a photo of your motherboard and can understand more clearly.

I'm a bit in the dark here but check which device ID you use in your SSDT. System Report will probably show both EHC and XHC controllers as USB 2.0 Hub and USB 3.0 Hub respectively. When configuring the USB ports on XHC in the template I think the correct Device ID is 8086_9c31 (I don't have access to a motherboard to check).

You should spot it easily in System Report.

:)
 
Okay. I have seen a photo of your motherboard and can understand more clearly.

I'm a bit in the dark here but check which device ID you use in your SSDT. System Report will probably show both EHC and XHC controllers as USB 2.0 Hub and USB 3.0 Hub respectively. When configuring the USB ports on XHC in the template I think the correct Device ID is 8086_9c31 (I don't have access to a motherboard to check).

You should spot it easily in System Report.

:)

If you are referring to the USB section in System report, it has the following:

USB 2.0 Bus:
Host Controller Driver: AppleUSBEHCIPCI
PCI Device ID: 0x8c2d
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

Hub:
Product ID: 0x8008
Vendor ID: 0x8087 (Intel Corporation)

----

USB 2.0 Bus:
Host Controller Driver: AppleUSBEHCIPCI
PCI Device ID: 0x8c26
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

Hub:
Product ID: 0x8000
Vendor ID: 0x8087 (Intel Corporation)

-----

USB 3.0 Bus:
Host Controller Driver: AppleUSBXHCILPTH
PCI Device ID: 0x8c31
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

USB3.0 Card Reader:
Product ID: 0x0326
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)

Keyboard Hub:
Product ID: 0x1006
Vendor ID: 0x05ac (Apple Inc.)

USB Receiver:
Product ID: 0xc52f
Vendor ID: 0x046d (Logitech Inc.)

Apple Keyboard:
Product ID: 0x0221
Vendor ID: 0x05ac (Apple Inc.)

USB2.0-CRW:
Product ID: 0x0129
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)

BRCM20702 Hub:
Product ID: 0x4500
Vendor ID: 0x0a5c (Broadcom Corp.)

Bluetooth USB Host Controller:
Product ID: 0x828b
Vendor ID: 0x05ac (Apple Inc.)


Can't see any device ID as such. Whatever the ID turns out to be, should I go and plug that in the SSDT for the ports? They are enumerating properly as it is now. (I am currently using "8086_8xxx" since I have an H81 chipset and all...)
 
If you are referring to the USB section in System report, it has the following:

USB 2.0 Bus:
Host Controller Driver: AppleUSBEHCIPCI
PCI Device ID: 0x8c2d
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

Hub:
Product ID: 0x8008
Vendor ID: 0x8087 (Intel Corporation)

----

USB 2.0 Bus:
Host Controller Driver: AppleUSBEHCIPCI
PCI Device ID: 0x8c26
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

Hub:
Product ID: 0x8000
Vendor ID: 0x8087 (Intel Corporation)

-----

USB 3.0 Bus:
Host Controller Driver: AppleUSBXHCILPTH
PCI Device ID: 0x8c31
PCI Revision ID: 0x0004
PCI Vendor ID: 0x8086

USB3.0 Card Reader:
Product ID: 0x0326
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)

Keyboard Hub:
Product ID: 0x1006
Vendor ID: 0x05ac (Apple Inc.)

USB Receiver:
Product ID: 0xc52f
Vendor ID: 0x046d (Logitech Inc.)

Apple Keyboard:
Product ID: 0x0221
Vendor ID: 0x05ac (Apple Inc.)

USB2.0-CRW:
Product ID: 0x0129
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)

BRCM20702 Hub:
Product ID: 0x4500
Vendor ID: 0x0a5c (Broadcom Corp.)

Bluetooth USB Host Controller:
Product ID: 0x828b
Vendor ID: 0x05ac (Apple Inc.)


Can't see any device ID as such. Whatever the ID turns out to be, should I go and plug that in the SSDT for the ports? They are enumerating properly as it is now. (I am currently using "8086_8xxx" since I have an H81 chipset and all...)

Yes, the product / device ID is probably "8086_8c31" then. That should be the XHCI controller.

Make sure that is the one in your SSDT then just try removing the FakePCIID_XHCIMux.kext and see how that changes IOReg reports of your USB ports. (It diverts USB2.0 connections to EHCI. Not sure if it's confusing the issue).

:)
 
Last edited:
@UtterDisbelief I will try your suggestion. In the meantime, the mystery thickens.
What would you say if I told you that I managed to get the computer to sleep two times today? What did I do? Absolutely nothing.

I noticed that if you leave the computer turned off overnight, the very first time you boot up you can actually get the computer to sleep normally!

More specifically:
I turned the computer on. Booted up and logged into my account. Wifi was active, internet connection was live.
Selected Apple -> Sleep and went to sleep perfectly. Woke it up by the power button (as all the usb prw functions are now disabled) and a minute later I tried again. Slept like a baby.
Woke it up again and tried for a third time about a minute later. This time? No sleep! :banghead:

Look at my power mgt log from this session. Pay attention at the times.
Boot up 15:05:18
First sleep 15:06:34
Wakes up by power button 15:07:02

Second sleep 15:08:17
Wakes up by power button 15:08:34

Third sleep 15:09:19
Wakes up on its own 15:09:27

Fourth sleep (ever so hopeful...) 15:11:13
Wakes up on its own again 15:11:22

This is crazy!

Code:
15:05:18.848827 +0300    powerd    powerd process is started
15:05:18.853492 +0300    powerd    Summary- [System: No Assertions] Using AC
15:05:20.083226 +0300    powerd    Kernel Idle sleep preventers: IODisplayWrangler
15:05:20.088711 +0300    powerd    Display is turned on
15:05:29.411726 +0300    powerd    [System: DeclUser BGTask kDisp]
15:06:19.393785 +0300    powerd    Display is turned off
15:06:19.393924 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.393974 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.394013 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.394054 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.394090 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.394125 +0300    powerd    [System: PrevIdle DeclUser BGTask kDisp]
15:06:19.399222 +0300    powerd    Kernel Idle sleep preventers: -None-
15:06:19.399831 +0300    powerd    [System: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]
15:06:19.585385 +0300    powerd    [System: DeclUser BGTask SRPrevSleep IPushSrvc kCPU kDisp]
15:06:19.587824 +0300    powerd    [System: DeclUser BGTask SRPrevSleep IPushSrvc kCPU kDisp]
15:06:28.594716 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:06:34.410020 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:06:34.410254 +0300    powerd    Summary- [System: DeclUser BGTask kDisp] Using AC
15:06:34.416097 +0300    powerd    Entering Sleep state due to 'Software Sleep pid=97':
15:06:41.540111 +0300    powerd    [System: DeclUser BGTask kDisp]
15:07:02.427424 +0300    powerd    
15:07:31.003814 +0300    powerd    
15:07:31.038481 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:07:31.062142 +0300    powerd    Kernel Idle sleep preventers: IODisplayWrangler
15:07:31.063528 +0300    powerd    Display is turned on
15:07:31.072090 +0300    powerd    [System: DeclUser BGTask kDisp]
15:07:32.715531 +0300    powerd    Wake from Normal Sleep [CDNVA] due to PWRB XHC/User:
15:07:32.715691 +0300    powerd    hibmode=0 standbydelay=43200
15:07:32.716720 +0300    powerd    
15:07:32.716921 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:07:36.635013 +0300    powerd    [System: DeclUser BGTask SRPrevSleep IPushSrvc kCPU kDisp]
15:07:43.686466 +0300    powerd    Display is turned off
15:07:43.686561 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:07:43.686616 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:07:43.690753 +0300    powerd    Kernel Idle sleep preventers: -None-
15:07:43.691103 +0300    powerd    Entering DarkWake state due to 'Software Sleep pid=97':
15:07:43.691478 +0300    powerd    [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
15:07:58.701778 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:07:58.701921 +0300    powerd    Summary- [System: DeclUser SRPrevSleep kCPU kDisp] Using AC
15:08:17.712231 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:08:17.712485 +0300    powerd    Summary- [System: DeclUser kDisp] Using AC
15:08:17.718242 +0300    powerd    Entering Sleep state due to 'Software Sleep pid=97':
15:08:18.644605 +0300    powerd    [System: DeclUser BGTask kDisp]
15:08:18.644697 +0300    powerd    [System: DeclUser BGTask kDisp]
15:08:20.686240 +0300    powerd    
15:08:33.007327 +0300    powerd    
15:08:33.038330 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:33.041810 +0300    powerd    [System: DeclUser BGTask kDisp]
15:08:33.061503 +0300    powerd    Kernel Idle sleep preventers: IODisplayWrangler
15:08:33.062465 +0300    powerd    Display is turned on
15:08:34.711050 +0300    powerd    Wake from Normal Sleep [CDNVA] due to PWRB XHC/User:
15:08:34.711185 +0300    powerd    hibmode=0 standbydelay=43200
15:08:34.712126 +0300    powerd    
15:08:34.712311 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:56.263657 +0300    powerd    Display is turned off
15:08:56.263775 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:56.263825 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:56.264034 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:56.267679 +0300    powerd    Kernel Idle sleep preventers: -None-
15:08:56.271291 +0300    powerd    Entering DarkWake state due to 'Software Sleep pid=97':
15:08:56.271689 +0300    powerd    [System: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]
15:08:58.663641 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:09:11.281992 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:09:11.282136 +0300    powerd    Summary- [System: DeclUser SRPrevSleep kCPU kDisp] Using AC
15:09:19.292453 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:09:19.292705 +0300    powerd    Summary- [System: DeclUser kDisp] Using AC
15:09:19.298501 +0300    powerd    Entering Sleep state due to 'Software Sleep pid=97':
15:09:22.314190 +0300    powerd    
15:09:26.004910 +0300    powerd    
15:09:26.038348 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:09:26.062625 +0300    powerd    Kernel Idle sleep preventers: IODisplayWrangler
15:09:26.063963 +0300    powerd    Display is turned on
15:09:26.077590 +0300    powerd    [System: DeclUser BGTask kDisp]
15:09:27.721167 +0300    powerd    Wake from Normal Sleep [CDNVA] due to XHC/:
15:09:27.721316 +0300    powerd    hibmode=0 standbydelay=43200
15:09:27.722130 +0300    powerd    
15:09:27.722394 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:10:12.727591 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:10:58.854145 +0300    powerd    Display is turned off
15:10:58.854212 +0300    powerd    [System: DeclUser kDisp]
15:10:58.859384 +0300    powerd    [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
15:10:58.862286 +0300    powerd    Kernel Idle sleep preventers: -None-
15:11:13.865382 +0300    powerd    [System: DeclUser SRPrevSleep kCPU kDisp]
15:11:13.871315 +0300    powerd    Entering Sleep state due to 'Software Sleep pid=97':
15:11:16.865990 +0300    powerd    
15:11:21.004149 +0300    powerd    
15:11:21.038346 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:11:21.062135 +0300    powerd    Kernel Idle sleep preventers: IODisplayWrangler
15:11:21.063662 +0300    powerd    Display is turned on
15:11:21.077038 +0300    powerd    [System: DeclUser BGTask kDisp]
15:11:22.724871 +0300    powerd    Wake from Normal Sleep [CDNVA] due to XHC/:
15:11:22.725005 +0300    powerd    hibmode=0 standbydelay=43200
15:11:22.725809 +0300    powerd    
15:11:22.725996 +0300    powerd    [System: DeclUser BGTask SRPrevSleep kCPU kDisp]
15:11:36.634365 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.635232 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.635961 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.636232 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.636495 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.636648 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.636836 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.636947 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.637133 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.637243 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.637439 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.637549 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.637761 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638140 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638279 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638390 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638515 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638610 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638721 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.638866 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639028 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639146 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639336 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639467 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639639 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639748 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639873 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.639975 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.640085 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
15:11:36.640188 +0300    powerd    [System: DeclUser SRPrevSleep IPushSrvc kCPU kDisp]
 
I have same problem, before I install my pcie wifi bcm943602cs ,It was able to sleep well.

And I fine out the Bluetooth that connect internal USB2.0 port make the problem!

When I pull off Bluetooth (under EH02) .My Machine sleep well . But I have tried set EH02 port to 255 and info shows it is build in ...

Is there any other suggestions? thank you!
PS: gigabyte z77 d3h / 3770k / gigabyte rx580 8g
 
Something else that may or may not be useful: In the Diagnostic Messages in Console, the process powerd logged all sleep attempts (failed or not).

The first two which were successful have the following output:
com.apple.message.domain: com.apple.sleepwake.type
com.apple.message.signature: Normal Sleep
com.apple.message.signature2: Software Sleep
com.apple.message.signature3: User
com.apple.message.signature4: User
com.apple.message.result: pass
com.apple.message.summarize: YES
SenderMachUUID: 733D8044-DA55-3FE9-A76D-5E3459622CC0


All the rest which have failed have the following:
com.apple.message.domain: com.apple.sleepwake.type
com.apple.message.signature: Normal Sleep
com.apple.message.signature2: Software Sleep
com.apple.message.result: pass
com.apple.message.summarize: YES
SenderMachUUID: 733D8044-DA55-3FE9-A76D-5E3459622CC0

What I'm seeing here is that "com.apple.message.signature3: User" and "com.apple.message.signature4: User" are missing from the latter attempts. What are these things and could they be relevant to the mystery?
 
I have same problem, before I install my pcie wifi bcm943602cs ,It was able to sleep well.

And I fine out the Bluetooth that connect internal USB2.0 port make the problem!

When I pull off Bluetooth (under EH02) .My Machine sleep well . But I have tried set EH02 port to 255 and info shows it is build in ...

Is there any other suggestions? thank you!
PS: gigabyte z77 d3h / 3770k / gigabyte rx580 8g


You say that when you pull BT out from under EH02 the computer sleeps? Interesting! I got the Bluetooth disabled via SSDT mapping but it still wakes the damn thing.

Update: Tried again. Mapped all the ports. Named XHCI properly. Mapped out the Bluetooth port HS05. Bluetooth is NOT appearing in System Report. Tried to sleep. Wakes up.

I give up. :(
I'll toss the f2@cking wifi card in the garbage bin and be done with it.
 
Last edited:
Update:

Find 2 way to solve.

1.Patch DSDT with _PRW 0x0 method. But it will make you can't wake by usb device. Only power button can.

2.Use usb2 9 pine to usb 3 cable. I find out all success cases are on xch=>usb3, So I plug it to internal usb3 port and change port to 255. Everything works now but lost two usb3 in the front of the pc case.
 
Same problem here with my Fenvi BCM4360.
Already revised USB patch and last changes applied.
Actually, the machine was working (and sleeping) pretty well just before the wifi card install.
Thanks to gn01650966, will try to connect it to the USB 3 internal connector as a workaround.
 
Status
Not open for further replies.
Back
Top