Gigabyte-GA-Z77X-macOS-Install icon indicating copy to clipboard operation
Gigabyte-GA-Z77X-macOS-Install copied to clipboard

Sleep wifi usb BCM943602CS (GA-Z77X-D3H)

Open domeOo opened this issue 7 years ago • 16 comments

System information

  • macOS 10.12.4
  • GA-Z77X macOS Install v2.0.8
  • GA-Z77X-D3H
  • Intel Core i5-XXXXK
  • NVIDIA GeForce GTX 660ti

Issue description

Hello, In connection with the BCM943602CS Wifi Bluetooth combo card sleep isn't working because the USB port where Bluetooth of the card is connect to, isn't marked as internal port (0x255). Maybe u can add a Patch for it. My Board has 2 internal USB 2.0 Header.

domeOo avatar Jun 20 '17 01:06 domeOo

Hi, can you post a IOReg? What port (look for the ACPI device name in IORegistryExplorer) isn't marked as internal?

al3xtjames avatar Jun 20 '17 03:06 al3xtjames

bildschirmfoto 2017-06-20 um 12 47 34 bildschirmfoto 2017-06-20 um 12 48 05 bildschirmfoto 2017-06-20 um 12 48 08 bildschirmfoto 2017-06-20 um 12 48 11 bildschirmfoto 2017-06-20 um 12 48 15 bildschirmfoto 2017-06-20 um 12 48 20 bildschirmfoto 2017-06-20 um 12 48 22

domeOo avatar Jun 20 '17 11:06 domeOo

Hi, I have the same problem with BCM943602CS (switch with my old TP-LINK for the moment), i've also tried to connect my corsairLink usb (PSU) on internal hub and Sleep is broken too. Basically with any device connected to this internal hub, sleep is not working. if you know how to rename it as internal?

10.12.5 GA-Z77X-UD5H NVIDIA GeForce GTX 660ti

i'v attached my ioreg with USB "corsairlink" connected (not desingned to work on osx but just to show you the problematic port). it's the same port noticed by domeOo zedoc iMac 13,2.ioreg.zip

zedocrob avatar Jun 24 '17 01:06 zedocrob

The bluetooth is connected to intern USB 2 Pin header.

domeOo avatar Jul 01 '17 19:07 domeOo

Yes, this one is my front case USB header with a Bluetooth dongle on it. Because when i use the BCM943602CS BT card on plugged on internal usb header it wakes from sleep like yours.

zedocrob avatar Jul 03 '17 00:07 zedocrob

Can you elaborate as to how sleep is broken? Does it instantly wake? If so, can you see Wake reason in Console?

al3xtjames avatar Jul 03 '17 02:07 al3xtjames

It instantly wake, in ioreg i see "wake reason: EH01" sans-titre

zedocrob avatar Jul 03 '17 11:07 zedocrob

The Computer is going in into sleep but wake up as soon he hits deep sleep

domeOo avatar Jul 03 '17 11:07 domeOo

yes exactly, 1 or 2 seconds after entering deep sleep, it wakes up.

zedocrob avatar Jul 03 '17 11:07 zedocrob

After Hours of investigation with the help of USBinjectAll kext I figured out that the problem is within the Hub driver from Apple. Because the Hub ports Ignore the UsbConnector values. Hint if I Try a port connected to the XHC (Only to front usb 3 connected with internal USB3 Header) where usbConnector is set to 255/0xFF sleep works.

For the GA-Z77X-D3H:

All internal USB 2 Headers are at EH01 as child of a Hub.

All USB 2 Port on Backpanel are at EH02 (also as child of a hub) also the USB 2 ports of the USB3 Connectors on Backpanel are on EH02 (also child of a hub)

The USB 3 Ports of USB 3 Connectors of Backpanel are at XHC

The USB3 Ports of USB 3 internal header are at XHC and the USB2 Ports are also at XHC(These are working with USBConnector value set to 255/0xff

Because the USBConnector flag is ignored the solution may be setting usbType to another value? So far I found out there is no explanation for all possible values... I tried 0, 2, and 4 without success.

domeOo avatar Jul 03 '17 16:07 domeOo

I managed to make it sleep on my Z97MX-gaming 5 build: i routed all usb to XHC removing "FakePCIID_XHCIMux.kext" see end of this post: https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/ tested all ports and set internal "HS07" and "HS08" in my case (internal usb2 ports where BT is plugged in) to 255. now sleep is working with bluetooth plugged in! now i will try on my Z77-UD5H when possible. (i've attached my ssdt for USBinjectAll kext (used on Z97-MX-gaming 5))

SSDT-USB-ALL.dsl.zip

zedocrob avatar Jul 16 '17 20:07 zedocrob

Most 8/9 chipset boards route all USB ports (including USB 2 ports) to XHC. This isn't possible on 7 series, as USB 2 ports are wired to EHC. Only USB 3 ports are wired to XHC.

al3xtjames avatar Jul 16 '17 20:07 al3xtjames

Thanks for the information. Looks like i will need another BT card for my Z77 build then...

zedocrob avatar Jul 16 '17 20:07 zedocrob

@zedocorb I use a long USB cable an Connet it via USB 3 hub. So I can set it to 255 and sleep works fine. But don't forget to deactivate wake from network or else your wifi will be very slow after wake.

domeOo avatar Jul 17 '17 04:07 domeOo

Could you please try v2.0.9? The internal chipset hubs on EHC1/EHC2 should now be marked as internal. I'm not sure if hubs under that will be counted though.

al3xtjames avatar Jul 22 '17 19:07 al3xtjames

I will try next week when I'm back at home. But I also tried this my self last time and it didn't work.

domeOo avatar Jul 28 '17 13:07 domeOo