Jump to content
osxfr33k

Shutdown Question HP Desktop a6040n with Asus Motherboard

Recommended Posts

I have tried the DSDTeditor Asus shutdown patch but it does nothing to the vanilla DSDT.


Can someone have a look to tell me what I need to modify to fix this?


I have attached both a vanilla DSDT and a fully patched complete DSDT ready for use except the shutdown for that DSDT is not working.


Area in DSDT not patching:

 

Method (\_PTS, 1, NotSerialized)
   {
       Or (Arg0, 0xF0, Local0)
       Store (Local0, DBG1)
       Store (0x01, PM29)
       If (LNotEqual (VID0, 0xFFFF))
       {
           If (LEqual (And (RSR0, 0x01), 0x01))
           {
               Or (RSR0, 0x01, RSR0)
               Or (PMC0, 0x80, PMC0)
           }
       }
       If (LNotEqual (VID1, 0xFFFF))
       {
           If (LEqual (And (RSR1, 0x01), 0x01))
           {
               Or (RSR1, 0x01, RSR1)
               Or (PMC1, 0x80, PMC1)
           }
       }

DSDT_VANILLA_a6040n_Asus_mb.aml.zip

dsdt_Fully_Patched_Except_Shutdown_Not_Working.aml.zip

OP-LP3 OverPowered Laptop 17 inch, i7-8750H, 32GB memory, 256GB NvMe stock with windows 10 and added 512GB NvMe Samsung 970 Pro with MacOS 11.2.1, OpenCore 0.6.7.   New Asus Pro WS X299 Sage II intel i9-10980XE 18 core beast Big Sur 11.2.1. OpenCore 0.6.7,  Asus Z390-E i9-9900K 64GB G.Skill Ripjaws Sapphire Pulse RX580, Asus Sabertooth X79 (4) E5-2697 v2 (12 Core), Asus Maximus VIII Hero Alpha i7-7700K 64GB Corsair 2400, Asus Z97-Deluxe i7-4790K, Gigabyte Z77X-UP5-TH i7-3770k, Asus Maximux Formula Special Editions with Rampage Formula Bios conversion, Gigabyte GA-EP35-DS4, GA-EP45-UD3P, GA-G41M-ES2L, GA-Z68X-UD4-B3 and Quo MB.  MAC PRO EARLY 2008, MacPro Late 2012. Asus Notebooks: G51JX i7-720QM, G74SX-XT1 i7-2630QM, Asus G750JX-DB71 Haswell Processor i7-4700HQ GTX 770M 3GB (4).  Dell Laptops D820, D830, XPS M1530 (6), Dell 13-1567 (4), Older processors  i7 (3770K/4770k/6700k/7700K).  Older GFX Cards:  EVGA GT-640, EVGA GTX 760, EVGA GTX 770 (six),

Link to comment
Share on other sites

THis is incredible and it works 100% every time!! Thank you very much!!


Can I ask how this works? I did a diffmerg to compare the modification and not sure what this does?



Before Edit:

 

  OSTP ()
       If (LEqual (Arg0, One)) {}
       If (LEqual (Arg0, 0x03)) {}
       If (LEqual (Arg0, 0x05))
       {
           Store (ESMI, Local0)
           And (Local0, 0xFB, Local0)
           Store (Local0, ESMI)
       }

 


Your Edit:

 

        OSTP ()
       If (LEqual (Arg0, One)) {}
       If (LEqual (Arg0, 0x03)) {}
       If (LEqual (Arg0, 0x05))
       {
           Store (Zero, TRAP)
           Sleep (0x10)
       }

OP-LP3 OverPowered Laptop 17 inch, i7-8750H, 32GB memory, 256GB NvMe stock with windows 10 and added 512GB NvMe Samsung 970 Pro with MacOS 11.2.1, OpenCore 0.6.7.   New Asus Pro WS X299 Sage II intel i9-10980XE 18 core beast Big Sur 11.2.1. OpenCore 0.6.7,  Asus Z390-E i9-9900K 64GB G.Skill Ripjaws Sapphire Pulse RX580, Asus Sabertooth X79 (4) E5-2697 v2 (12 Core), Asus Maximus VIII Hero Alpha i7-7700K 64GB Corsair 2400, Asus Z97-Deluxe i7-4790K, Gigabyte Z77X-UP5-TH i7-3770k, Asus Maximux Formula Special Editions with Rampage Formula Bios conversion, Gigabyte GA-EP35-DS4, GA-EP45-UD3P, GA-G41M-ES2L, GA-Z68X-UD4-B3 and Quo MB.  MAC PRO EARLY 2008, MacPro Late 2012. Asus Notebooks: G51JX i7-720QM, G74SX-XT1 i7-2630QM, Asus G750JX-DB71 Haswell Processor i7-4700HQ GTX 770M 3GB (4).  Dell Laptops D820, D830, XPS M1530 (6), Dell 13-1567 (4), Older processors  i7 (3770K/4770k/6700k/7700K).  Older GFX Cards:  EVGA GT-640, EVGA GTX 760, EVGA GTX 770 (six),

Link to comment
Share on other sites

It's the patch used in Gigabyte boards

into method label _PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
begin
%1
           Store (Zero, SLPE)\n
           Sleep (0x10)\n
%2
end;
into definitionblock code_regex . code_regex_not OperationRegion\s*\(PMRS insert
begin
OperationRegion (PMRS, SystemIO, 0x0430, One)\n
Field (PMRS, ByteAcc, NoLock, Preserve)\n
{\n
       ,   4, \n
   SLPE,   1\n
}
end

except you don't need to insert the OperationRegion because it's already there (with different names), so it becomes

into method label _PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
begin
%1
           Store (Zero, TRAP)\n
           Sleep (0x10)\n
%2
end

 

More info


http://www.insanelymac.com/forum/topic/192518-dsdt-fixes-for-gigabyte-boards/

Donation with Paypal | Mercado Livre | Premium and Donators Users | Installation GUIDE

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donated? Send me PM with files or use DSDT Patch Requests

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...

Hey! Welcome to Olarila.com  Please Disable Your ADBlocker!

3vHSCmh.png

Support Olarila Vanilla Hackintosh by making a donation HERE

The popup will be closed in 15 seconds...