Jump to content

Latitude 5310 KP on sleep (Sleep Wake Failure in EFI)


scram69
Go to solution Solved by hidematu5310,

Recommended Posts

  • Replies 28
  • Created
  • Last Reply

Top Posters In This Topic

I followed the instructions here and downgraded the BIOS from 1.22 to 1.19.

I was still not able to get S3 sleep to work.

I also was unable to get hibernate to work using your pmset settings with HibernationFixup.kext.  I also tried various settings for Hibernatemode under Misc: NVRAM and Auto.

Choosing sleep from the apple menu turns the screen dark, but the battery continues to discharge.

Link to comment
Share on other sites

hidematu,

 

Thank you for posting this interesting update!

Were you following this page  describing fixing sleep on an XPS 9500?

 

It is not clear to me how to accomplish disabling RTC Memory Lock: "setup_var PchSetup 0x16 00 (RTC Memory Lock ->Disabled)"

Where do you enter this command?

 

Update: it looks like this tool may be useful

Link to comment
Share on other sites

  • Administrators
12 hours ago, scram69 said:

[...]

It is not clear to me how to accomplish disabling RTC Memory Lock: "setup_var PchSetup 0x16 00 (RTC Memory Lock ->Disabled)"

Where do you enter this command?

[...]

You need to identify where the RTC memory lock variable/parameter is set in BIOS. You may use a BIOS inspection tool to do this and a tool like ModGrubShell or your bootloader shell (eg: Clover's) to change the parameter value once you've identified it. It should be similar to what is done to adjust DVMT size in BIOS. See here and/or here for pointers.

Link to comment
Share on other sites

S3,hibernatemode 3 is now tentatively functional.

If it does not work, try enabling S3 (Suspend to RAM) above.

 

VoodooI2CHID.kext should be used with VoodooI2C.kext included.
If you use the one that comes with AlpsHID, the keymap will be broken when wake.

 

For Ventura and above, RealtekCardReader.kext may cause darkwake.
If not in use, please turn it off.

 

Currently, it does not wake from Lid, internal keyboard, or power button.

 

Please go to https://dortania.github.io/OpenCore-Post-Install/usb/misc/keyboard.html

 

You can wake from USB mouse/keyboard by using Method 1 - Add Wake Type Property (Recommended)
In that case,  turn off SSDT-GPRW.aml.

 

I would like to test if it is possible to wake from lid wake,internal keyboard,power button when I have time.

 

 

 

 

SSDT-S3.aml.zip

Link to comment
Share on other sites

17 hours ago, hidematu5310 said:

S3,hibernatemode 3 is now tentatively functional.

If it does not work, try enabling S3 (Suspend to RAM) above.

Question: do you still have "Block Sleep" checked in BIOS?

 

I disabled RTC Memory Lock and CFG Lock using setup_var.efi (modGRUBshell is deprecated):

setup_var.efi 0x16 0x0 -n PchSetup

setup_var.efi 0x3E 0x0 -n CpuSetup

 

However, with "Block Sleep" checked, HibernationFixup.kext, Misc>Hibernatemode = NVRAM and pmset hibernatemode 25, the laptop still refuses to hibernate.

With "Block Sleep" unchecked, I get KP Sleep Wake Failure in EFI and the laptop reboots.

Link to comment
Share on other sites

  • Solution

I tried it with both Enable and Disable Block Sleep.
hibernatemode 3,25 twice each.
I put it in sleep for at least 5 minutes and then wake.
There was no difference between each.

 

pmset -g stats

Sleep Count:2
Dark Wake Count:0
User Wake Count:2

 

When I tested hibernatemode 25 with SSDT with deep idle enabled, I got a loop condition where it rebooted and then went to sleep, so I tested with SSDT with deep idle disabled.

If you want to use hibernate 25, use SSDT with deactivated deep idle because it is likely to conflict with deep idle.

Use SSDT regardless of whether Block Sleep is on or off.

Wake is also easier than with hibernate 3 because you can wake with the power button.

 

Is pmset restored to default?
Check if sleepimage is created in /var/vm.

 

 

Update:

I did a battery drain test for 1 hour each.

hibernatemode 25
100% -> 100%

 

hibernatemode 3
100% -> 85%

 

Update 2:

It is now possible to resume using the Power Button from S3.

 

Low Power S0 Idle Capability: Disabled

setup_var_cv Setup 0x14 0x1 0x0

 

Currently working on improving the battery drain in S3.

 

Update 3:

hibernatemode 3 battery drain test for 1 hour.

Set standbydelay to about 5 minutes(300).


100% -> 98%

 

Update 4:

Fixed a potential problem where trackpad would stop working after rebooting from Windows or after Wake.

 

Update 5:

probably fixed instant wake on AC

recommended to add darkwake=0 hbfx-ahbm=129

 

SSDT-S3_upd5.zip

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...