ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

 
Start a new topic Add Reply
> Dsdt Editor And Patcher
oldnapalm
post Jul 1 2010, 01:13 AM
Post #1
El Coniglio released this DSDT editor with automated patching capabilities



The main editor windows allows the user to open a DSL file or extract the DSDT from IOReg. It has some useful resources, like syntax highlighting, navigation tree and some options that came with the text editor component it uses, like regex matching, auto completion, jump to pair, etc.

The patcher window parses a script-like language representing the patches. The user can preview the modifications before applying them. This "language" allows us to write dynamic patches that can be applied in various situations. More specific commands can be written as they become necessary.

For now these are the implemented commands (which can be stacked separated by ";")
QUOTE
syntax:

into <type> <property1> <property_argument1> [<property2> <property_argument2> ... <propertyN> <property_argumentN>] <action> begin [action_argument] end
(will be applied to the first occurrence)

into_all <type> <property1> <property_argument1> [<property2> <property_argument2> ... <propertyN> <property_argumentN>] <action> begin [action_argument] end
(will be applied to all occurrences)

where

type: DefinitionBlock, Scope, Method, Device, Processor, ThermalZone, All

property:
label -- first argument for the constructor of selected type
name_adr -- Name (_ADR) value
name_hid -- Name (_HID) value
code_regex -- regular expression to match the code of the selected type (not other types inside of it)
code_regex_not -- regular expression NOT to match the code of the selected type (not other types inside of it)
parent_label -- parent label
parent_type -- parent type
parent_adr -- parent _ADR value
parent_hid -- parent _HID value

action:
insert <code> -- inserts the provided code to the type
set_label <new_label> -- sets the label
replace_matched <code> -- replaces the matched code for the property with the provided code. Regex groups are inserted with %1, %2, ... up to %9
replaceall_matched <code> -- same as replace_matched but will affect all matches
remove_matched -- removes the matched code
removeall_matched -- removes all the ocurrencies of the matched code
remove_entry -- removes the entry and all children nodes
replace_content -- replaces the content of the object (everything inside its main brackets)
store_%8 -- stores the matched group 1 into %8
store_%9 -- stores the matched group 1 into %9

note: replacer will always consider the last provided value


Changes in latest release:

  • fixed bug which caused data loss if number of open and close brackets don't match
  • fixed compile window to work with new IASL versions
  • updated IASL to 20120420


Download: (last updated on 27/May/2012)

Mac OS: Attached File  DSDTEditor_Mac.zip ( 1.13MB ) Number of downloads: 282

Linux and Windows: Attached File  DSDTEditor_Linux_Windows.zip ( 1.6MB ) Number of downloads: 305


Screenshots:

Linux


Windows



Credits:

Editor component: jsyntaxpane (http://code.google.com/p/jsyntaxpane/)
IASL Copyright © Intel Corporation
Written in Java

This post has been edited by oldnapalm: May 18 2012, 01:18 PM
Mojodojo
post Jul 1 2010, 07:33 AM
Post #2
Great! Will try it today at home.
GA-Z87X-UD3H • Haswell i5-4670K • 8Gb G.Skill Sniper • Zotac GTX 680 • D-Link DWA-556 Wi-Fi • ALC898 & Creative Recon3D USB & Asus Xonar U3 USB
THe KiNG
post Jul 1 2010, 11:45 AM
Post #3
You made my day... smile.gif
Thanks!

Edit: Test it, looks nice, but a bit slow.., waiting for updates.
oldnapalm
post Jul 1 2010, 01:36 PM
Post #4
Thanks, your feedback surely will encourage the developer to make it better.

It's really a bit slow, and the used editor component with syntax highlighting wasn't designed to handle such large files. We are looking for alternatives to make it faster. Next version will have compiling error handling and some other features.

Regards.
THe KiNG
post Jul 2 2010, 04:11 AM
Post #5
I have two vital requests for it smile.gif
Colors, working with white background is a pain for my eyes...
Folding for brackets {}, like on BBEdit or xcode, too bad TextMate lacks this feature(is not automate)
Waiting for new version.

Thanks.
smith@@
post Jul 7 2010, 08:53 PM
Post #6
QUOTE (THe KiNG @ Jul 2 2010, 05:11 AM) *
Folding for brackets {}, like on BBEdit or xcode, too bad TextMate lacks this feature(is not automate)


I agree with you, it's important.
Kano
post Jul 8 2010, 02:30 PM
Post #7
great job!
oldnapalm
post Aug 3 2010, 11:00 PM
Post #8
Hey guys, first post is updated with a new version. No code folding yet, but there are some improvements.
xSmurf
post Aug 7 2010, 03:52 PM
Post #9
This looks pretty great! Grats! \o/
osxfr33k
post Aug 7 2010, 04:45 PM
Post #10
Is there a feature in the Patcher that will do the basic fixes in a generic way without Specific Model (Manufacturer) Pc's.

Such as the RTC and HPET hacks? Something like what Fassl's/PCWiz's Patcher's did. The only problem with those patchers is it would pull the DSDT from the system which was not useful for me.

I want to be able to patch an already existing DSDT like koalala Patcher did but his that Patcher only worked in Windows and was unreliable when trying to patch an existing DSDT. It would just crash constantly.

Is there another set of generic fixes that your Patcher uses that are either built in or a Generic type that I can load? I am looking for the same type of Patch that koalala patcher codes besides the RTC and HPET fix such as:

Local0
Wak
DTGP
Mute

As well as the _T_0 and _T_ fixes but all with a generic patch not PC Specific.

Thanks

This post has been edited by osxfr33k: Aug 9 2010, 04:39 PM
Clover pre 2837
Auto Patched DSDTs
5 towers: Asus Maximux Formula Special Editions with Rampage Formula Bios conversion, Gigabyte GA-EP35-DS4, GA-EP45-UD3P, GA-G41M-ES2, GA-Z68X-UD4-B3, Z77X-UP5-TH, i7-3770k
5 Quad Core Processors: QX6850/Q9650/Q6600/i7-2600K/i7-3770k
MAC PRO EARLY 2008 Xeon 8 Core/10GB RAM/4TB Seagates
Asus G51JX i7-720QM. 8GB Kingston Ram. HM55 Chipset
Asus Gamers Notebook G74SX-XT1, G750jx nearly 100 % osx clone
Dell Laptops D820, D830, XPS M1530, MacBookPro Late 2013 Retina GT750 1TB PCIe SSD
slipttees
post Sep 9 2010, 06:43 PM
Post #11
oldnapalm great job, pity which has no association with .dst and .aml files =]

This post has been edited by slipttees: Sep 9 2010, 06:44 PM
10.6.4 (10F569) 10.4.0 x86_64
Q6660 - DG35EC - 8GB OCZ REAPER HPC- GTS250 1GB CORE EDITION - HDD 500GBx2 SATA II - ODD SATA
oldnapalm
post Sep 14 2010, 02:41 AM
Post #12
First post is updated with a new version.

Changes:

  • More compilation errors are auto-fixed
  • Stores last selected folder for file load/save
  • Mac version can be associated with AML and DSL files in Finder


@osxfr33k: sorry for late reply. Some patches are included in the zip (including DTGP), some compilation errors are auto-fixed (like Local0), but no warning and remarks removing for now (such as Wak, Mute and _T_*).

@slipttees: thanks, your suggestion was implemented.
slipttees
post Sep 14 2010, 01:35 PM
Post #13
QUOTE (oldnapalm @ Sep 13 2010, 11:41 PM) *
First post is updated with a new version.

Changes:

  • More compilation errors are auto-fixed
  • Stores last selected folder for file load/save
  • Mac version can be associated with AML and DSL files in Finder


@osxfr33k: sorry for late reply. Some patches are included in the zip (including DTGP), some compilation errors are auto-fixed (like Local0), but no warning and remarks removing for now (such as Wak, Mute and _T_*).

@slipttees: thanks, your suggestion was implemented.


The association AML and DSL haven't custom icons for associated files. But, It's Works lovely tongue.gif

Great Work !! laugh.gif

This post has been edited by slipttees: Sep 14 2010, 05:36 PM
10.6.4 (10F569) 10.4.0 x86_64
Q6660 - DG35EC - 8GB OCZ REAPER HPC- GTS250 1GB CORE EDITION - HDD 500GBx2 SATA II - ODD SATA
oldnapalm
post Nov 1 2010, 09:19 PM
Post #14
First post updated with new version.

Changes:

  • Mac version handles multiple windows with Finder integration
  • IASL 20101013-32 Linux/Mac/Windows
  • More compilation errors auto-fixed
  • Bugfixes
madmac
post Dec 14 2010, 12:10 PM
Post #15
great work, I've been using this tool for my system, I've got an ECS A780GM-A with an AMD X2 and 4GB ram, it does the job pretty well, I would like to let you know you could make it universal binary with the iasl I compiled but perhaps you realized it already, not my build but that it can be done, it just makes the file heavy and I also fixed that, please check it out: iasl UB small... very small... it's even smaller than the separate versions!
oldnapalm
post Apr 25 2011, 11:13 PM
Post #16
First post updated with new version.
Tetonne
post Jun 5 2012, 09:25 PM
Post #17
QUOTE (oldnapalm @ Apr 26 2011, 12:13 AM) *
First post updated with new version.


thanks a lot oldnapalm
Lenovo T420 (4236Y33) i5-2540M @2.59GHz l HD3000 only l 4GB l 10.9.5 GUID Clover EFI boot (Clover Efi Boottluck's guide + pack
* Mini 311c-1170sf (VY261EA) N270 @1.6GHz l 2GB l 10.6.8 v1.1 l GUID (Last Mini 311 Retail Pack + guide)
* Lenovo T410 (2537PG4) i5-520M @2.4GHz l Intel HD5700 l 4GB l 10.7.3 (guide + pack)

Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: