Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get WOL working #17

Closed
fttx opened this issue May 11, 2018 · 20 comments
Closed

I can't get WOL working #17

fttx opened this issue May 11, 2018 · 20 comments

Comments

@fttx
Copy link

fttx commented May 11, 2018

Hi mieze,

on Windows it is working properly, but when i shutdown the computer from macOS it turns back on right after the shutdown, or instead, sometimes it shuts down also the network interface (no led) and WOL doesn't work

Bios settings:
Advanced/APM Configuration/ErP ready=disabled
Advanced/APM Configuration/Power On By PCI-E=enabled

Motherboard: ASUS z370-I
NIC: I219-V
Kext: IntelMausiEthernet v2.3.0

@Mieze
Copy link
Owner

Mieze commented May 12, 2018

That's not a bug, it's the specified behavior because macOS doesn't support WoL from S5.

@Mieze Mieze closed this as completed May 12, 2018
@xenio
Copy link

xenio commented Sep 25, 2018

After 1 week trying hundred of fix, patch etc, I just changed line 174 and 175 of IntelMausiEthernet.cpp to TRUE

wolCapable = true;
wolActive = true;

Recompiled the kext and WOL is now working as always was before I changed motherboard. Now I am on Asus Z370A Prime with Wake On Lan turned on in the Bios.

@fttx
Copy link
Author

fttx commented Sep 25, 2018

So does it work even with S5 when you cut the power off completely?

@xenio
Copy link

xenio commented Sep 25, 2018

I am on Hackintosh and the pc is completly off (not sleep) only some motherboard leds are on.
You have to enable FixShutdown ACPI Patch in clover or the pc does not shutdown but always restart.
Se ti serve ti mando il kext compilato per provarlo.

@fttx
Copy link
Author

fttx commented Sep 25, 2018

Si, grazie filippo.tortomasi@gmail.com

@fttx
Copy link
Author

fttx commented Sep 27, 2018

I confirm that it works on hackintosh

@2b
Copy link

2b commented Feb 17, 2019

Thanks a lot for the fix @xenio . Works great on the latest Mojave build.

@Mieze why don't you just turn on these parameters by default?
Thank you for your work btw.

@Mieze
Copy link
Owner

Mieze commented Feb 17, 2019

The driver works as designed because macOS doesn't support WoL from S5 so that there is no clean way to enable or disable it by the OS.

@fttx
Copy link
Author

fttx commented Feb 17, 2019

Maybe a solution could be to enable it through a clover boot flag?

@wmjlxl
Copy link

wmjlxl commented Jul 18, 2019

I am on Hackintosh and the pc is completly off (not sleep) only some motherboard leds are on.
You have to enable FixShutdown ACPI Patch in clover or the pc does not shutdown but always restart.
Se ti serve ti mando il kext compilato per provarlo.

Hello xenio.

thanks so much, now my hackintosh can use WOL now.
but i find one issue. if i put my osx into sleep -> wake it up and then power off it.

WOL will not work.

any solution to fix it?

thanks

@xenio
Copy link

xenio commented Jul 29, 2019

@wmjlxl I am sorry I have no idea, I am not a developer.

@hiradyazdan
Copy link

@Mieze I'm not sure if it's macOS directly and suspect it's more of the Clover DSDT/ACPI
config issue. OS does not seem to be involved in this process.

@TokyoHam
Copy link

TokyoHam commented Mar 18, 2020

After 1 week trying hundred of fix, patch etc, I just changed line 174 and 175 of IntelMausiEthernet.cpp to TRUE

wolCapable = true;
wolActive = true;

Recompiled the kext and WOL is now working as always was before I changed motherboard. Now I am on Asus Z370A Prime with Wake On Lan turned on in the Bios.

Is there any chance you'd be able to share that kext with me? I have no idea how to compile a kext, but that fix of yours is literally the last thing I need to make my new rig PERFECT. lol ... If you could share it with me, it would be greatly appreciated!

@fischerscode
Copy link

@TokyoHam
You can find such a kext here.

@TokyoHam
Copy link

TokyoHam commented Mar 19, 2020

@TokyoHam
You can find such a kext here.

Wow, that's amazing. Thank you so much!! Making a complete backup of my macOS drive right now, and then I'll give this a try. I can just remove the original IntelMausiEthernet.kext, and put this one in, instead? I don't need to clear NVRAM or rebuild kext cache (?) or anything like that?

edit: yup, it was that simple. The kext works perfectly! I am now able to completely power off my Hackintosh from both Windows 10 and macOS, leaving my NIC powered on to receive WOL packets ... I just SSH in to a Raspberry Pi, and have it transmit the WOL request from inside my LAN, and the Hackintosh powers right up. I have Clover set to auto-boot macOS on a 5-second delay, which means I can then use my go-to VNC client to remotely access the computer. Perfect!! Thank you again for your help.

@fischerscode
Copy link

It seems like this does not work using OpenCore.
Has everyone managed to enable WOL using OpenCore?

@th0u
Copy link

th0u commented Apr 18, 2020

@TokyoHam Thnx for the hint regarding WOL.
After adjusting wolCapable = true; and wolActive = true and compiling, I was able to WOL my PC after it was shut down.
I use reFind + OpenCore 0.5.7/Catalina + Win10Pro (all on different disks)
Thnx.

@1alessandro1
Copy link

The driver works as designed because macOS doesn't support WoL from S5 so that there is no clean way to enable or disable it by the OS.

Is this still true?
Why is it working for @xenio ?

@Mieze
Copy link
Owner

Mieze commented Jan 16, 2021

Apple has never made any efforts to support WoL from S5 and will most likely never do. Therefore I have no plans to implement it as it might cause harm to those who don't need it.

On the other hand, IntelMausiEthernet is published under the GPL and everybody is free to customize it according to his or her needs. Technically it's not that hard to add this feature so that I think it's the best way to leave it to the users.

@1alessandro1
Copy link

To enable WoL, is it enough to add the changes from this commit to IntelMausiEthernet.cpp?

acidanthera/IntelMausi@46360d8

and also, in the acidanthera repo, in the changelog they said they fixed I219 WoL functionality, so it's enabled by default?
What do you think from these commits?

image

source: acidanthera/IntelMausi@a2078d8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants