Closed cattyhouse closed 4 years ago
As a curious Hackintosh user, was this with OpenCore or Clover? And by the way, your issue may be related to Issue #17.
I use OpenCore 0.5.9
In acidanthera’s version 1.0.2 , the wolCapable was also set to false in the code, but wol works when mac is sleeping. I don’t think turning this on will help.
Because of these codes:
/* Setup power management. */
if (provider->findPCICapability(kIOPCIPowerManagementCapability, &pmCapOffset)) {
pmCap = provider->extendedConfigRead16(pmCapOffset + kIOPCIPMCapability);
DebugLog("Ethernet [IntelMausi]: PCI power management capabilities: 0x%x.\n", pmCap);
if (pmCap & (kPCIPMCPMESupportFromD3Cold | kPCIPMCPMESupportFromD3Hot)) {
wolCapable = true;
DebugLog("Ethernet [IntelMausi]: PME# from D3 (cold/hot) supported.\n");
}
pciPMCtrlOffset = pmCapOffset + kIOPCIPMControl;
} else {
IOLog("Ethernet [IntelMausi]: PCI power management unsupported.\n");
}
provider->enablePCIPowerManagement();
@nyhtml
just tried to set these 2 options to true, and wol works now, thanks for your information.
then i think in latest commit, something is wrong here :
@cattyhouse
Cool. 😀 And with OpenCore 0.5.9. 👍
I'm still waiting the rest of my parts to finish my second build to make the switch. Shipping is slower now due to the pandemic so I'm stuck waiting for parts from overseas and glad I didn't pull apart my current Clover system (yet) to upgrade.
No, there is nothing wrong with the driver and your issue also has nothing to do with the latest commit. WoL support works as specified because it is only enabled when the hardware reports that it supports WoL. Otherwise it will be disabled. In case you've got trouble getting WoL to work, please fix your system to report WoL support properly.
@Mieze Hi, Mieze thanks for your reply, can you take a look at the debug log of version 1.0.3 (wol does not work during sleep) and 1.0.2 (wol works during sleep)? i did some awk to remove the first few columns
102.debug-new.log 103.debug-new.log
the main difference, i think is on 1.0.2, after going to sleep there is
[IntelMausi]: WUFC=0x00000002.
while on 1.0.3, there isn't , according to the source code
#define E1000_WUFC_MAG 0x00000002 /* Magic Packet Wakeup Enable */
this means on 1.0.2, Magic Packet Wakeup Enable was active during sleep.
issue
hardware: Device ID: 15BC Vendor 8086 SubVendor 1849 Name: Intel I219-V Path: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/GLAN@1F,6
macOS 10.15.5
tools i used to wake mac: http://ahh.sourceforge.net/wol/
command i used to wake mac:
wol 'hackintosh's MAC address'
and then try pinging the mac's ip address (which is a manual address )you may want to test to verify. thanks