OpenIntelWireless / itlwm

Intel Wi-Fi Drivers for macOS
https://OpenIntelWireless.github.io/itlwm/
GNU General Public License v2.0
6.87k stars 663 forks source link

Itlwm does not work after sleep #519

Closed lilov-zz closed 7 months ago

lilov-zz commented 3 years ago

I am using Mojave 10.14.6 on an HP Elitebook 830 G5. The wifi card is Intel Ac 8265. I am using latest kext 1.2.0. and Heliport. The issue is after sleep Heliport WiFi icon is empty and turn wifi on does not work. Same thing happens when I manually turn WIFi off, there is no way to put it manually back on. Only restart fixes it. I have read previous threads and tried Itlwmx from previous issues but it does not work.

williambj1 commented 3 years ago

No itlwm logs. Please follow the instructions in the docs.

lilov-zz commented 3 years ago

I think I have managed to do it :-) Log_2021-02-04_19-38-42.log

williambj1 commented 3 years ago

Try toggling wifi off and on

lilov-zz commented 3 years ago

Same thing, been trying this for the last two days. I tried turning off, then sleep, then back on several times no luck. Also immediately after sleep, waited for several minutes,, then tried again - nothing happens. After restart it works like a charm with great reliability and speed.

Sent from a mobile device. Please excuse typos and formatting.

On Fri, 5 Feb 2021, 08:28 Bat.bat, notifications@github.com wrote:

Try toggling wifi off and on

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenIntelWireless/itlwm/issues/519#issuecomment-773823199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK74XDQMMAM7LPDUJKMTBDS5OFYDANCNFSM4XBJ52CQ .

lilov-zz commented 3 years ago

Problem is sleep, I can turn wifi on and off when working normally but after sleep Itlwm does not wake. I am not sure if it is clear but Heliport state after sleep is OFF. I cannot utrn it on.

williambj1 commented 3 years ago

Did you add msgbuf=1048576 to boot-args? A lot of logs are missing.

lilov-zz commented 3 years ago

Hi, you are correct. I have now added it and enclose the updated log taken after sleep and being unable to turn wifi ON. Log_2021-02-10_15-17-10.log If i can do anything else let me know.

Qiangong2 commented 3 years ago

I'm having the same issue on big sur with my AC 9462

win1010525 commented 3 years ago

@williambj1 have you seen the latest provided log?

afzl-wtu commented 3 years ago

working fine on intel 6205 except i have to turn of and then On it, and it connects again

lilov-zz commented 3 years ago

I do not have the option to turn it off, after sleep Heliport state/ itlwm is OFF and I can only try to turn it on, but with no success regardless of how many tries I attempt.

zxystd commented 3 years ago

can you try the latest alpha release.

lilov-zz commented 3 years ago

Same thing, enclosed is the new log with the alpha 1.30 Log_2021-03-07_20-15-57.log

williambj1 commented 3 years ago

Looks like your card is operating with PCI ASPM L1 mode, itlwm does not support ASPM ATM. Make sure you did not inject invalid ASPM values in device properties / _DSM, etc.

lilov-zz commented 3 years ago

I am afraid you got me here. Do not know what to do and no nelpful Google search found. If not too much trouble can you tell me what and where to look for ? Thanks.

ggoraa commented 3 years ago

same issue on HP EliteBook 840 G3 with Intel Wireless 8260(Big Sur)

hectorox commented 3 years ago

same here with Intel Dual Band Wireless-N 7260

adeg commented 3 years ago

I have the same issue with Intel® Wi-Fi 6 AX201. Using the alpha AirportItlwm-Big Sur build from 2021-03-10.

zeyugao commented 3 years ago

Same issue with AC 8265 in Big Sur using AirportItlwm

Report_2021-03-21_19-07-05.log

Nels2 commented 3 years ago

same as hectorox

ubun222 commented 3 years ago

nuc8在关闭Wi-Fi或者睡眠后AirPlay不能用然后会断连,开机第一次连接上Wi-Fi用AirPlay是没问题的

ggoraa commented 3 years ago

UPDATE: latest 1.3.0 fixed dis issue, now WiFi works even after going to sleep my configuration: https://github.com/OpenIntelWireless/itlwm/issues/519#issuecomment-800093266

lilov-zz commented 3 years ago

@GGorAA Hi, you mean the 1.3.0 alpha? I am running it but nothing changes. Are you using any specific options?

ggoraa commented 3 years ago

@GGorAA Hi, you mean the 1.3.0 alpha? I am running it but nothing changes. Are you using any specific options?

Yes, i mean 1.3.0. And also i'm not using any specific options other than Airportitlwm explicitly needs (everything is in the docs)

karelo911 commented 3 years ago

Same problem on same card. Tried itlwm version 2 alpha. I can't turn on wifi after I turn it off, either manually or through sleep. bugreport_30678.zip

williambj1 commented 3 years ago

@lilov-zz Hi! Have you tried the latest alpha? What about the ASPM related configs? Thanks.

@karelo911 The log file does not contain any errors or signs of sleeping / toggling on and off.

SesshomaruVN commented 2 years ago

Hi, I am using AX 201 wifi card. My problem as the same this thread issue. I have read some thread issue at Issuses tab. And try to config aspm = 0 for my wifi card in devices tree. But, wifi still not working after sleep. I am using this kext AirportItlwm-Big_Sur-v2.1.0-DEBUG-alpha-3ee6b6a.zip Screen Shot 2021-12-01 at 06 37 54 This is aspm config. And here is the log of itlwm after boot (wifi work well} Log_2021-12-01_06-30-08.log And here is the log after sleep (can't find any network name) Log_2021-12-01_06-31-16.log Wifi will work after restart. Please help me to fix. Thanks so much.

zxystd commented 2 years ago

Big Sur.zip @SesshomaruVN your system disable the network card when sleep, so it will never work after wakeup, I have done something in the kext to try to enable the network card again, please try.

SesshomaruVN commented 2 years ago

Big Sur.zip @SesshomaruVN your system disable the network card when sleep, so it will never work after wakeup, I have done something in the kext to try to enable the network card again, please try.

Thank you so much for helping me. I have used your kext file above, but It is still not working after sleep. After inject your kext file, the only one time I can wake from sleep with wifi working (but lost the current wifi in the list) - sorry because of no log file in this case. After that time, still not working. Here is my log after used above kext. Log_2021-12-01_16-33-41.log

zxystd commented 2 years ago

@SesshomaruVN Your card's rfkill switch is persist closed after wakeup, the driver can't enable it.

image
SesshomaruVN commented 2 years ago

@SesshomaruVN Your card's rfkill switch is persist closed after wakeup, the driver can't enable it.

image

is there any way I can fix it?

zxystd commented 2 years ago

I tried forcing write the rfkill switch in driver now, although it should not do like this and should be managed by ACPI or BIOS. AirportItlwm.kext.zip

SesshomaruVN commented 2 years ago

I tried forcing write the rfkill switch in driver now, although it should not do like this and should be managed by ACPI or BIOS. AirportItlwm.kext.zip

Unfortunate it is still not working. Thank for your help. Maybe I should patch ACPI, but I don't know where to start. So could you recommend some useful knowledge that I can start from that. (I checked my bios setings and not relative to that one) Thanks so much.

SesshomaruVN commented 2 years ago

Hi guys, finally I found how to fix this problem.

If you are facing that one, you can try step by step - level of recommendation decreases.

  1. You can try kext file that patched by @zxystd. I have found 2 version for Bigsur and Monterey
  2. For the system as I described above, you need to turn off sleep mode. If you are using OC, you can try their guide before. If not affect, you can use the command below in your terminal. (Credit) sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1; if you want to revert to default value, you can search in google or try this command: sudo pmset -a sleep 1; sudo pmset -a hibernatemode [original hibernatemode value]; sudo pmset -a disablesleep 0;

Thanks @zxystd for helping me. Hope this guide can help more else guys.

RoboCrafty commented 2 years ago

@SesshomaruVN If you turn off sleep mode, doesn't it mean your laptop won't sleep?

Overc1ocker commented 2 years ago

AC7265 Rev B, Monterey 12.2 sleep works properly with the latest 2.1.0 kext. Wifi instantly connects on wakeup.

williambj1 commented 2 years ago

@Overc1ocker Sounds more likely to be a motherboard flaw rather than a kext or wifi card issue. The card is dead locked by RFKILL after sleep.


If possible, try to toggle the airplane mode FN keys and see if it helps.

usr-sse2 commented 2 years ago

For me, it doesn't work after sleep is pci-aspm-default is set to 0 (ASPM is disabled). If I remove this property (enable ASPM), then it works after sleep.

ferdysopian commented 1 year ago

Don't know if it's the same on every motherboard, but on the "HP 14s dq1013tu" it has a Prepare to Sleep and Wake method that sets the WiFi and Bluetooth state.

I'm no expert on this but trying to figure it out.

First you need to verify what the WLBT device is trying to set on your DSDT.

Screenshot 2022-11-13 at 09 58 09

Once you know what WLBT is trying to set up, check your MWAK and MPTS. There are some codes that are the same as those that appear on WLBT to save the current WiFi and Bluetooth status but for some reason, it's not working properly.

Screenshot 2022-11-13 at 10 01 10

So you can rename MWAK and MPTS so they can be paired with a custom SSDT to force set WiFi and Bluetooth state on Wake.

Screenshot 2022-11-13 at 11 17 25

With this configuration, WiFi and Bluetooth on my laptop will turn on when it wakes up.

VGerris commented 2 months ago

With this configuration, WiFi and Bluetooth on my laptop will turn on when it wakes up. @ferdysopian

I have the exact same issue and the same code in BIOS. I am stuck trying to compile the SSDT, can you post yours? I just add a rename for MWAK to XWAK and then want to add the SSDT.aml for the last picture you sent. Would be nice to get saving working but this is a good start, thanks a lot for sharing!

[update] I was able to get the rename to work and the SSDT to compile but when I add the .aml I do not get the method in there... Greatly appreciated if you can share all the relevant steps, thank you!