bittantone Posted October 12, 2019 Share Posted October 12, 2019 Hi guys, I'm struggling to find out how to patch the DSDT without having to load the entire patched DSDT.aml. My understanding is that if I load the entire pre-patched DSDT.aml, Windows may experience problems. In particular, I'd need to patch the _PTS method as in the file attached. This patch is needed to fix the shutdown process in Asus Mobos. Thank you very much _PTS_orig.txt _PTS_patched.txt Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/ Share on other sites More sharing options...
Pavo Posted October 12, 2019 Share Posted October 12, 2019 16 minutes ago, bittantone said: Hi guys, I'm struggling to find out how to patch the DSDT without having to load the entire patched DSDT.aml. My understanding is that if I load the entire pre-patched DSDT.aml, Windows may experience problems. In particular, I'd need to patch the _PTS method as in the file attached. This patch is needed to fix the shutdown process in Asus Mobos. Thank you very much _PTS_orig.txt _PTS_patched.txt You need to provide your original DSDT and exactly what device in the DSDT that you are trying to patch. PTS is being used on a Device. PTS is not the device. Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693336 Share on other sites More sharing options...
bittantone Posted October 12, 2019 Author Share Posted October 12, 2019 (edited) 27 minutes ago, Pavo said: You need to provide your original DSDT and exactly what device in the DSDT that you are trying to patch. PTS is being used on a Device. PTS is not the device. @Pavo, let me first say thank you, you are always so available to support people! I have an Asus H97M-Plus, I applied the following patch to the attached (original) DSDT: # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : Shutdown Fix - ASUS # Patch Version : 1.0 # ASUS Shutdown Fix into method label _PTS code_regex_not If\s*\(LEqual\s*\(Arg0,\s*0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched begin If (LEqual (Arg0, 0x05)) {}\n Else\n {\n %1 } end; DSDT.dsl Edited October 12, 2019 by bittantone Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693339 Share on other sites More sharing options...
Pavo Posted October 12, 2019 Share Posted October 12, 2019 10 minutes ago, bittantone said: @Pavo, let me first say thank you, you are always so available to support people! I have an Asus H97M-Plus, I applied the following patch to the attached (original) DSDT: # Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/ # These patches are the registered property of PJALM.COM and can not be # redistributed or modified without the written consent of PJALM.COM. # Links to these patches are allowed. All material is protected under the DMCA. # Last Updated : 05/07/2016 # Patch Name : Shutdown Fix - ASUS # Patch Version : 1.0 # ASUS Shutdown Fix into method label _PTS code_regex_not If\s*\(LEqual\s*\(Arg0,\s*0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched begin If (LEqual (Arg0, 0x05)) {}\n Else\n {\n %1 } end; DSDT.dsl That patch is extremely old and shouldn't be needed anymore. Are you positive that you are having shutdown issues using OC? Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693342 Share on other sites More sharing options...
bittantone Posted October 12, 2019 Author Share Posted October 12, 2019 4 minutes ago, Pavo said: That patch is extremely old and shouldn't be needed anymore. Are you positive that you are having shutdown issues using OC? Actually, I applied this patch because if I press the shutdown button of my Desktop, it does not have any effect. If I keep the power button down for some second, the PC directly turns off. With this patch, instead, when I press the power button the device goes to sleep Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693344 Share on other sites More sharing options...
Pavo Posted October 12, 2019 Share Posted October 12, 2019 8 minutes ago, bittantone said: Actually, I applied this patch because if I press the shutdown button of my Desktop, it does not have any effect. If I keep the power button down for some second, the PC directly turns off. With this patch, instead, when I press the power button the device goes to sleep So this is a sleep/wake patch not a shutdown patch. Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693345 Share on other sites More sharing options...
bittantone Posted October 12, 2019 Author Share Posted October 12, 2019 4 minutes ago, Pavo said: So this is a sleep/wake patch not a shutdown patch. Yeah, that's the point. Sorry for my unclear question Link to comment https://www.insanelymac.com/forum/topic/340693-how-to-create-a-dsdt-patch/#findComment-2693346 Share on other sites More sharing options...
Recommended Posts