Contribute
Register

Lenovo Yoga 700 restarts after shut down with power cable plugged in

Status
Not open for further replies.
Joined
Nov 8, 2015
Messages
33
Motherboard
MSi B150M BAZOOKA
CPU
i5-6500
Graphics
Sapphire Tri-X R9 290X
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
  2. iOS
No idea what you mean by "it's _PST"...

PST is "Pacific Standard Time"... no meaning in ACPI.
But _PTS is a reserved method in ACPI "Prepare To Sleep".

Note: Your edits to the _PTS method are nonsense (infinite recursion).

Edited the mistake.
 
Joined
Nov 8, 2015
Messages
33
Motherboard
MSi B150M BAZOOKA
CPU
i5-6500
Graphics
Sapphire Tri-X R9 290X
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
  2. iOS
The code in post #9 is still infinitely recursive.

I will get back to you! Can I get a hint? Thanks

Compiling the code in MaciASL doesn't show any errors.
 
Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,691
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I will get back to you! Can I get a hint? Thanks

Compiling the code in MaciASL doesn't show any errors.

You have your _PTS method calling itself... it is recursive infinitely.
The _PTS in your SSDT should call ZPTS, which is the original _PTS renamed to ZPTS by virtue of the correct entry in config.plist/ACPI/DSDT/Patches.
It is classic "rename/replace" pattern (with delegation to original method) as per my ACPI hotpatch guide.
https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
 
Joined
Nov 8, 2015
Messages
33
Motherboard
MSi B150M BAZOOKA
CPU
i5-6500
Graphics
Sapphire Tri-X R9 290X
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
  2. iOS

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,691
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Thank you RehabMan, I will continue to learn.

Best to use the patches and SSDTs as they are in the hotpatch repo.
Get it working, then tune from there if you want.
Or, you could even start with static patch...
 
Status
Not open for further replies.
Top