Jump to content
oldnapalm

DSDT editor and patcher

1,001 posts in this topic

Recommended Posts

Advertisement

@oldnapalm,

Thank u dear.

Share this post


Link to post
Share on other sites

Follows a generated list with available patches to use with DSDT Editor.

 

Last updated: Tue Oct 5 15:42:06 2010

 

  • Patches
  • AD1988B.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • AD2000B.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • AHCI SATA orange icon.txt
    Change ID of SATA device to fake ESB2 AHCI (silver icons for internal HDs instead of orange ones)


  • ALC662.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • ALC883.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • ALC888.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • ALC889.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • ALC889A.txt
    Insert method _DSM into device with _ADR 0x001B0000


  • Alias.txt
    Remove aliases from scope _PR (cpus=1 fix)


  • Aspire 3690.txt
    Aspire 3690


  • Aspire 5920.txt
    Acer Aspire 5920


  • ASUS P5E.txt
    All patches used in ASUS P5E (also tested on P5E Deluxe, P5K Premium and Maximus Formula)


  • AZAL to HDEF.txt
    Rename device AZAL to HDEF and change all references to it


  • Dell M1330.txt
    Dell M1330 (Intel X3100 video)


  • DTGP.txt
    Add method DTGP to the main block, it's used by other patches


  • EHCI sleep.txt
    Fix for "AppleUSBEHCI::CheckSleepCapability - controller will be unloaded across sleep"


  • GA P35-DS3.txt
    Add method DTGP to the main block, it's used by other patches
    Change ID of SATA device to fake ESB2 AHCI (silver icons for internal HDs instead of orange ones)
    Rename device AZAL to HDEF and change all references to it
    Insert method _DSM into device with _ADR 0x001B0000
    Insert device GIGE into device with _ADR 0x001C0004
    (for Gigabyte motherboards)
    Change methods _STA and _CRS into device HPET (to avoid AppleIntelCPUPowerManagement panic)
    EHCI fix
    Change ID of USB devices to fake ICH10-R (sleep fix for ICH9)
    Remove IRQs from devices PIC, RTC and TMR, and add IRQs to device HPET
    Change ID of device with _ADR 0x001F0000 (LPC)
    Insert device SBUS into device PCI0
    Change method _PTS where Arg0 is 0x05 (shutdown)
    Insert return into method _WAK to fix warning
    (for Gigabyte motherboards)
    Change the length of IO segment in device RTC to 0x02 (fix CMOS reset)


  • GIGE.txt
    Insert device GIGE into device with _ADR 0x001C0004
    (for Gigabyte motherboards)


  • GMA950 desktop.txt
    Insert device PEGP into device PCI0


  • GMA950 laptop.txt
    Insert method _DSM into device with _ADR 0x00020000


  • HDEF.txt
    Insert device HDEF into device with _HID PNP0A08 (PCI0)


  • HPET.txt
    Change methods _STA and _CRS into device HPET (to avoid AppleIntelCPUPowerManagement panic)


  • ICH9 USB sleep.txt
    Change ID of USB devices to fake ICH10-R (sleep fix for ICH9)


  • IOATAFamily.txt
    Fix IDE Timing Register to avoid IOATAFamily on 10.6.0-10.6.2


  • IRQs.txt
    Remove IRQ from device PIC and move IRQs from devices RTC and TMR to device HPET


  • LAN0.txt
    Insert device LAN0 into device with _ADR 0x001C0002


  • LPC.txt
    Change ID of device with _ADR 0x001F0000 (LPC)


  • Mac devices.txt
    Rename devices to Mac specific ones (by fbifido)


  • nVidia 9800 GTX 512 MB.txt
    Insert device GFX0 into device with _ADR 0x00010000


  • RTC.txt
    Change the length of IO segment in device RTC to 0x02 (fix CMOS reset)


  • SBUS.txt
    Insert device SBUS into device PCI0


  • Shutdown ASUS.txt
    Change method _PTS to do nothing if Arg0 is 0x05 (shutdown)


  • Shutdown Gigabyte.txt
    Change method _PTS where Arg0 is 0x05 (shutdown)


  • Shutdown Intel.txt
    Change method _PTS where Arg0 is 0x05 (shutdown)


     

    [*]WAK.txt

    Insert return into method _WAK to fix warning
    (for Gigabyte motherboards)

Share this post


Link to post
Share on other sites

@el coniglio,

keep up the good work :P

One thing, how do I build it from src (got from svn)?

Share this post


Link to post
Share on other sites
@el coniglio,

keep up the good work :)

One thing, how do I build it from src (got from svn)?

 

Hey valv, that link is just for the editor component I used in the project, you don't really need to get it as it is packed with the rest of the application. Oldnapalm posted the link just to give the proper credits. =D

 

We are sending a beta version for those who are interested and as soon as some hard testing is passed I'll post a public release.

Share this post


Link to post
Share on other sites

This looks great! mayeb I can finlay patch my DSDT for my Bade 2! get some things working without kexts.

I hear that someone patched their DSDT for the Intel Bad Axe 2 mobo so well, they didnt need graphics,sound, nullcpu kexts.... Anyone else heard of this?

 

This DSDT editor looks amazing! very simple and easy to look at, hopefully easy to use!

Share this post


Link to post
Share on other sites
This DSDT editor looks amazing! very simple and easy to look at, hopefully easy to use!

 

Yep it is really easy to use if you have the patches already coded. In the zip there is a folder with some working examples (ASUS P5 Patches), if all are applied to a original extracted dsdt it will fix a bunch of issues. It could be applied from a single file containing all patches, making even more simple to the user. The patches inside the pack were tested for P5E, P5E Deluxe, P5K Premium and Maximus Formula.

 

As you can see in the examples, patches can (and may) be coded to avoid being applied more than once, so you can use a pack even if you already have applied part of it.

Share this post


Link to post
Share on other sites

Really interesting!

One thought though, If when selecting a section it jumps to it by making the first line appear on the right pane as the first to show, it 'd ease its use. At first sight I didn't knew it did jump to the requested section, as it showed its first line at the bottom (last line to appear).

Greetz

Share this post


Link to post
Share on other sites

This is a great idea with the automated patching and could prove to be very popular.

Thanks for the hard work in creating it El Coniglio. Well done :D

Share this post


Link to post
Share on other sites
Is it possible to compile it for windows? :D

You'd think it would work by extracting the jar files in the Resources folder from the app.

 

Yes I think it will work. It won't extract DSDT from IOReg or open an AML file instead of the DSL (it decompiles it if you select an AML file). The editor component support the Control + Something shortcuts by default, I just added the Meta (Command) + Something, so no problem with them. But try it, if it doesn't work I can check and build a version without the OS specific resources, so you can run it on Linux or Windows.

 

Edit: oldnapalm tested it on windows and worked. The simplest way is to create a ./lib with all jars but DSDTParser.jar and leave DSDTParser in ./ so you can run java -jar DSDTParser.jar (or double-click on the explorer) without any -cp parameters. I am going to check to make the dsdt extract work in linux and append iasl binaries for linux and windows, so most functions would work on all 3 OS.

 

Edit again: I tested and patches are not applying in windows cause of the \r windows uses in the line breaks. It will be fixed in the next release =)

Share this post


Link to post
Share on other sites

Looks fantastic - for a dyslexic like me it will be most useful to gain some order to pages of code.

 

Many Thanks -_-

Share this post


Link to post
Share on other sites

Looks WAY better than DSDTE, and both the automatic patching and device tree will be incredibly useful. Thanks for the great work!

 

EDIT: Spoke way too early. No system menu (tolerable) and no context menus (very f*cked up). Device tree is pretty much useless: the need to jump-unlock-edit-lock makes it nothing but a waste of time. I know these things seem small, but they're disproportionately annoying, even for a Java program. I hope they can be fixed somehow.

Share this post


Link to post
Share on other sites
EDIT: Spoke way too early. No system menu (tolerable) and no context menus (very f*cked up). Device tree is pretty much useless: the need to jump-unlock-edit-lock makes it nothing but a waste of time. I know these things seem small, but they're disproportionately annoying, even for a Java program. I hope they can be fixed somehow.

 

I understand your point. I see two possible solutions for the issue:

1. Remove the "toggle editable", but the tree will only refresh when you trig a button or shortcut;

2. Make a "node editor window" in a context menu, that allows you to edit a tree node, once the editing is done, the code is reparsed and tree refreshed

 

The main focus was the automated patching to help users who doesn't know how to apply a patch. The application isn't ready (compiling error handling missing) so bring your suggestions.

Share this post


Link to post
Share on other sites
2. Make a "node editor window" in a context menu, that allows you to edit a tree node, once the editing is done, the code is reparsed and tree refreshed.

 

not tried the app yet but I like the sound of option 2.) :)

Share this post


Link to post
Share on other sites

Almost any patch can be coded.

 

Here is the RTC patch (changes the last argument of the IO segment inside the device with _HID PNP0B00 to 0x02)

into device name_hid PNP0B00 code_regex (IO\s\((?:\s*[^,]+,\s*(?:\/\/\s.*)?\s*\n)+\s*)(\dx\d+)(,\s*(?:\/\/\s.*)?\s*\n\s*\)) replaceall_matched begin %10x02%3 end

Share this post


Link to post
Share on other sites

The only problem what i see (using new patch files) is, that they are (for me :D ) near unreadable :D

Would be fine if the patch files could have an section in "normal text) so see what it does.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
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.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&t=6771     First... If you need DSDT edits for SkyLake, KabyLake or CoffeeLake... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generated in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609  Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder  CLOVER.zip   --Install Sierra/High Sierra and boot into system!   Post Installation   --Install Clover in HDD/SSD and replace with my folder CLOVER.zip   --Reboot and activate video!   -Nvidia WebDriver Sierra http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/ -Nvidia WebDriver High Sierra http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/ -Cuda http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   --DSDT My DSDT with Skylake patches DSDT.MaLd0n GA H110M-S2.zip Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI --FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek --Audio https://github.com/vit9696/AppleALC --USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads --LAN http://www.insanelymac.com/forum/topic/287161-new-driver-for-realtek-rtl8111/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&t=6771     Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Install Clover UEFI in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace Folder CLOVER INSTALLATION.zip   --Install Sierra and boot into system!   --Install Clover UEFI and replace with my folder  CLOVER POST INSTALLATION.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! I prefer DSDT way, apply all patches in one file, many people prefer many SSDTs or Clover patches!   If you need DSDT edit... Run it RunMe.app   --DSDT My DSDT DSDT.ASUS H61M-A MaLd0n.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -EHCx -LPC -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -PNLF Clear NVRAM, Purge and Kextcache
          --FakeSMC http://www.hwsensors.com/releases --Audio https://github.com/vit9696/AppleALC --USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads --LAN http://www.insanelymac.com/forum/topic/287161-new-driver-for-realtek-rtl8111/   Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&t=6771     --Create a bootable copy of macOS Sierra   http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra   http://diskmakerx.com/   --Install Clover in USB stick   https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder    CLOVER.zip   --Install Sierra/High Sierra and boot into system!   Post Installation   --Install Clover in HDD/SSD and replace with my folder   CLOVER.zip   --Nvidia WebDriver Sierra   http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/   --Nvidia WebDriver High Sierra   http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/   --Cuda   http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   Now you need a fine tune!   --DSDT DSDT.GA H97M-D3H MaLd0n.zip Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -EHCx -DARWIN -LPC -XHCI -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -PNLF --Power Management   Use "plugin-type"=1 in DSDT, SSDT or Clover config.plist   --Brightness   Install .app, select the required permission and reboot. Work in F1 / F2 keys! NativeDisplayBrightness.app.zip https://github.com/Bensge/NativeDisplayBrightness/releases *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install  
      --FakeSMC
        https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek/downloads/   --Audio   https://github.com/vit9696/AppleALC   --USB   https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   --LAN   http://www.insanelymac.com/forum/topic/287161-new-driver-for-realtek-rtl8111/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&t=6771   Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Install Clover in USB stick UEFI mode https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace Folder CLOVER INSTALLATION.zip   --Install System and boot with USB STICK! --Install Clover in UEFI mode and replace with my folder  Mavericks / Yosemite CLOVER Mavericks-Yosemite.zip El Capitan / Sierra CLOVER El Capitan-Sierra.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! I prefer DSDT way, apply all patches in one file, many people prefer many SSDTs or Clover patches! If you need DSDT edit... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generate in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609    --DSDT My DSDT DSDT.Asus Z97M-PLUS.zip   Patches  -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -EHCx -DARWIN -LPC -XHCI -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -HDMI -ALS0 -SHUTDOWN -LAN -PNLF --SSDT Generate your SSDT Power Management, use ssdtPRGen Piker-Alpha https://github.com/Piker-Alpha run in terminal curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh chmod +x ~/ssdtPRGen.sh sudo ~/ssdtPRGen.sh ssdtPRGen.command.zip
       
      --SSDT i74790K
      SSDT.i7 4790K.zip
       
      --IOREG
      iMac.ioreg.zip
       
      Clear NVRAM, Purge and Kextcache Olarila.command.zip   stock coolerand Rio 40º    --FakeSMC http://www.hwsensors.com/releases --Audio http://www.insanelymac.com/forum/topic/314406-voodoohda-289/ --USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads --LAN http://www.insanelymac.com/forum/topic/304235-intelmausiethernetkext-for-intel-onboard-lan/   Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&t=6771     --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   -Replace Folder CLOVER Install.zip   -Install Sierra/High Sierra and boot into system!   -Install Clover and replace with my folder  CLOVER Post Install.zip   -Reboot and activate video!   Bingo!   Now you need a fine tune! I prefer DSDT way, apply all patches in one file, many people prefer many SSDTs or Clover patches!   If you need DSDT edits for Skylake... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Post Ioreg, extract with Ioreg Explorer IORegistryExplorer.app.zip -Run it, post files generate in your desktop RunMe.app.zip   -DSDT bios F21 My DSDT with patches for skylake DSDT.GA Z170M-D3H F21.zip   -Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -RTC -IRQs -SBUS -MIKEY -BLC0 -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI






       
      -FakeSMC http://www.hwsensors.com/releases -Audio https://github.com/vit9696/AppleALC -USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads -LAN https://github.com/Mieze/IntelMausiEthernet   Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
×