AskDavis / LG-Gram-17Z90N

39 stars 5 forks source link

Sleep/wake #8

Open nghia0423 opened 3 years ago

nghia0423 commented 3 years ago

Hi, thanks for your files. I managed to get a working installation on my 14Z90N. Does your sleep/wake work fine? I cannot get mine to properly wake from sleep. The display stays black to the point where I have to restart the computer manually.

AskDavis commented 2 years ago

Wake from sleep does not work currently! working on thunderbolt and sleep issues next!

daniyo27 commented 2 years ago

@AskDavis

under Advanced - Intel Advanced Menu - ACPI Settings - Low Power S0 Idle Capability => Disabled

This setting could be responsible for some of the sleep issues as S0 is used for Modern Standby on Windows. Disabling this will allow for S3 sleep state to be enabled. Perhaps more investigation can be done!

UPDATE: after testing on the latest macOS Big Sur, computer slept properly (blinking power light) and did wake without kernel panics. The only issue is that black screen remains. Sound is present and that's how I know that the computer hasn't crashed.

daniyo27 commented 2 years ago

@AskDavis I fixed sleep! I changed the ig-platform-id to 8A510002, updated some SSDT's from SSDTime, added some boot-args and sleep is working like a charm!

The usual Dortania sleep fixes are needed (the sudo pmset commands) EFI_sleep_fix.zip

rich1111 commented 2 years ago

hi, thanks for your EFI, but after upgrade to Monterey, the WIFI is not working.

daniyo27 commented 2 years ago

You need to change the IntelWireless kexts to the Monterey version. I believe you will also need BlueFixup too

racso25 commented 2 years ago

I have kernel panic when I use this efi, issues with voodooPS2Trackpad: Identify Touchpad coman failed, and i don not know how can I solve this issue.

rich1111 commented 2 years ago

You need to change the IntelWireless kexts to the Monterey version. I believe you will also need BlueFixup too Thanks for your response, i've change IntelWireless kexts to the Monterey version, it work. But for the Sleep/Wakeup issue, it fail and system hang when i close the lid panel and open again. I've set the power option to prevent going to sleep when close the lid panel.

rehines commented 2 years ago

It is found that the world often cannot be displayed again after turning off the monitor, but it can be restarted through shortcut keys

thaiiy commented 2 years ago

I managed to combine the linked EFI by @rich1111 with the one from @1OldSWguy to get the following EFI (attached, spread over three threads due to size limit).

Now I have upgraded to Monterey with the following remaining issues, which each ACPI version fixes but I can't get it all working.

With the ACPI containing DSDT.aml only:

brightness keys work clamshell mode works - internal display disabled and your desktop is moved to your external monitor SLEEP WAKE failure With ACPI containing SSDTs:

brightness keys DO NOT work - but strangely work on external Mac keyboard clamshell mode DOES NOT work - internal display goes off but is still online, so desktop is not transferred to external monitor. You can still see the internal display in System Preferences, Display arrangements. Sleep Wake is WORKING On either ACPI, almost everything else appears to work: Bluetooth, WiFi, FaceTime, display brightness (software controlled), audio, microphone.

USB ports might need fixing as left-side USB-A port isn't working.

I think the answer is all there but it requires a better brain than mine to solve it. I would appreciate your input.

Files are on the Monterey issues thread started by rich1111.

AskDavis commented 2 years ago

@thaiiy with the latest release i have fixed the USB issues, let me know if more come up.

thaiiy commented 2 years ago

Thanks @AskDavis. I have a nearly 100% perfect machine now.

One remaining issue is that sometimes on wake from sleep, the mouse cursor is scrambled. It is no longer a pointer but some weird lines or crosshair so that I don't know where I'm pointing. Booting or NVRAM reset doesn't do anything. Sometimes after another long sleep, it rights itself.

Other than that, I'm happy and went and bought myself the LG Gram 14T90N - 2 in 1 to see if I can hack that. Almost everything works except touchpad now... The touchscreen works, with gestures and all, but not the touchpad. Tried GPIO pinning but it's not working. I think it might be a different touchpad to the LG 17? Any ideas?

thaiiy commented 2 years ago

This is my fork for the LG Gram 14T90N

https://github.com/thaiiy/LG-Gram-14T90N

@nghia0423

Sleep/Wake working on mine, you could try this, although slightly different model.

Trackpad of mine isn't working, did you have to GPIO pin it? What is your trackpad model?

jasonbrowne44 commented 1 year ago

Here is the current status of Sleep/Wake on my 17Z90N on Monterey 12.6 using the EFI from the 0.8.5 release.

  1. I have disabled sleep and disksleep by executing: sudo pmset -a hibernatemode 0 sudo pmset -a disksleep 0 sudo pmset -a standby 0 sudo pmset -a sleep 0 sudo pmset -a displaysleep 1

This will force the display to sleep after 1 minute of idle. (You can change the 1 to any amount of minutes you like.) If I enable sleep and disksleep, I cannot get the main display to return from sleep/standby/hibernate. If anyone has any further information on how to resolve this, please comment. An external USB display works perfectly using a Startech USB32HD4K, but this is sub-optimal. The main display will be black but active so it gets in the way.

Let me know if you have any other ideas on how to get the main display back from sleep. Maybe we can force the OS to do a complete reinitialization, but I can't find a way to do this on Monterey 12.6.