Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,753 posts in this topic

Recommended Posts

 

Thanks.

 

I and all Probook 4530s users look forward to the update to the patcher, and thank you for it.

 

EDIT: My brightness seems to not adjust correctly. If I start at the lowest setting (basically a black screen) then go to the 3rd, it is as bright as it goes. The rest of them are the same as the third. Also, when I turn on my computer, it is always on the lowest setting. Is there anything I can do about that? Also, sleep doesn't work. Can that be fixed?

Link to comment
Share on other sites

OpenHaltRestart, Disabler, PlatformUUID, SleepEnabler

 

add in boot.plist

<key>GeneratePStates</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>

look it too

http://www.insanelymac.com/forum/index.php?showtopic=258611

Thanks a lot for all your help so far !

 

I removed OpenHaltRestart, Disabler, PlatformUUID and SleepEnabler. Now restart works, but still no sleep & shutdown (won't suspend/poweroff). Any idea ? I will try EvoReboot again, seems like it wasn't loading before.

 

And SpeedStep is working too ! Wonderful. But I have to run in 64bit mode else I get a KP.

 

Also, lid close has no effect...

 

Edit: Ev0reboot not working after all...

Link to comment
Share on other sites

Thanks a lot for all your help so far !

 

I removed OpenHaltRestart, Disabler, PlatformUUID and SleepEnabler. Now restart works, but still no sleep & shutdown (won't suspend/poweroff). Any idea ? I will try EvoReboot again, seems like it wasn't loading before.

 

And SpeedStep is working too ! Wonderful. But I have to run in 64bit mode else I get a KP.

 

Also, lid close has no effect...

 

Edit: Ev0reboot not working after all...

send me your DSDT

run on terminal

add in boot.plist

<key>GeneratePStates</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>

and new kextstat

Link to comment
Share on other sites

I am using the DSDT that you sent me, namely the one I am attaching here. Isn't this a patched DSDT ? Do I need to patch it myself ? I tried with DSDT Patcher but it gives me the following output:

 

http://ideone.com/ZVCBP

 

and here is my current kextstat (will remove Ev0reboot because it had no effete):

 

http://ideone.com/4Nq0N

 

By the way, I did put those 2 keys in com.apple.Boot.plist (running Chameleon RC5 r877, having KP/graphics not working with latest)

 

EDIT: I am 200% sure I put the 2 keys in the boot.plist, but somehow they got deleted !!! trying again...

EDIT2: SpeedStep still works without those, don't know if this is normal.

dsdt.aml.zip

Link to comment
Share on other sites

Mald0n my man!! sleep and brightness now solved with LOTS of reading through forums and stuff and of course thanks to your initial DSDT edit! Here it is for anyone interested:

 

http://www.insanelymac.com/forum/index.php...p;#entry1729961

 

cool man!!!!!I'm a happy nerd (it's bloody summer I can now enjoy some sea) :D

Great :(

Link to comment
Share on other sites

I am using the DSDT that you sent me, namely the one I am attaching here. Isn't this a patched DSDT ? Do I need to patch it myself ? I tried with DSDT Patcher but it gives me the following output:

 

http://ideone.com/ZVCBP

 

and here is my current kextstat (will remove Ev0reboot because it had no effete):

 

http://ideone.com/4Nq0N

 

By the way, I did put those 2 keys in com.apple.Boot.plist (running Chameleon RC5 r877, having KP/graphics not working with latest)

 

EDIT: I am 200% sure I put the 2 keys in the boot.plist, but somehow they got deleted !!! trying again...

try it

remove evoreboot etc

dsdt.Scotchy49_02.zip

I think you should do a clean installation to test

 

hi mald0n can you post the source of hp dv6 c2 ich9 generic .

i want to add some patch to it.

thanks

into method label _CRT code_regex Return\s\(Zero\) remove_matched;
into method label _CRT insert
begin
Return (Zero)
end;
into_all method label _GTF code_regex_not Return\s\(Zero\) insert
begin
Return (Zero)
end;
into_all method label _GTM code_regex_not Return\s\(Zero\) insert
begin
Return (Zero)
end;
into_all method label _HOT code_regex_not Return\s\(Zero\) insert
begin
Return (Zero)
end;
into method label _PSV code_regex Return\s\(Zero\) remove_matched;
into method label _PSV insert
begin
Return (Zero)
end;
into_all all code_regex _T_0 replaceall_matched begin T_0 end;
into_all all code_regex _T_1 replaceall_matched begin T_1 end;
into_all all code_regex _T_2 replaceall_matched begin T_2 end;
into_all all code_regex _T_3 replaceall_matched begin T_3 end;
into_all all code_regex _T_4 replaceall_matched begin T_4 end;
into_all all code_regex _T_5 replaceall_matched begin T_5 end;
into_all all code_regex _T_6 replaceall_matched begin T_6 end;
into method label DTGP remove_entry;
into definitionblock code_regex . insert
begin
Method (DTGP, 5, NotSerialized)\n
{\n
   If (LEqual (Arg0, Buffer (0x10)\n
           {\n
               /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n
               /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
           }))\n
   {\n
       If (LEqual (Arg1, One))\n
       {\n
           If (LEqual (Arg2, Zero))\n
           {\n
               Store (Buffer (One)\n
                   {\n
                       0x03\n
                   }, Arg4)\n
               Return (One)\n
           }\n
           If (LEqual (Arg2, One))\n
           {\n
               Return (One)\n
           }\n
       }\n
   }\n
   Store (Buffer (One)\n
       {\n
           0x00\n
       }, Arg4)\n
   Return (Zero)\n
}
end;
into method label _DSM parent_adr 0x001D0007 remove_entry;
into device name_adr 0x001D0007 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package ()\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x36, 0x28, 0x00, 0x00\n
           }, \n
           "built-in", \n
           Buffer (One)\n
           {\n
               0x00\n
           }, \n
           "AAPL,clock-id", \n
           Buffer (One)\n
           {\n
               0x01\n
           }, \n
           "device_type", \n
           Buffer (0x05)\n
           {\n
               "EHCI"\n
           }, \n
           "AAPL,current-available", \n
           0x05dc, \n
           "AAPL,current-extra", \n
           0x03e8, \n
           "AAPL,current-in-sleep", \n
           0x05dc, \n
           Buffer (One)\n
           {\n
               0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001A0007 remove_entry;
into device name_adr 0x001A0007 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package ()\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x3a, 0x28, 0x00, 0x00\n
           }, \n
           "built-in", \n
           Buffer (One)\n
           {\n
               0x00\n
           }, \n
           "AAPL,clock-id", \n
           Buffer (One)\n
           {\n
               0x02\n
           }, \n
           "device_type", \n
           Buffer (0x05)\n
           {\n
               "EHCI"\n
           }, \n
           "AAPL,current-available", \n
           0x05dc, \n
           "AAPL,current-extra", \n
           0x03e8, \n
           "AAPL,current-in-sleep", \n
           0x05dc, \n
           Buffer (One)\n
           {\n
               0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into device name_hid PNP0303 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "AAPL,has-embedded-fn-keys", \n
           Buffer (0x04)\n
           {\n
               0x01, 0x00, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}\n
end;
into method label _STA parent_hid PNP0103 remove_entry;
into device name_hid PNP0103 insert
begin
Method (_STA, 0, NotSerialized)\n
{\n
   Return (0x0F)\n
}
end;
into device name_adr 0x001F0001 code_regex_not OperationRegion\s*\(IDET insert
begin
OperationRegion (IDET, PCI_Config, 0x40, 0x04) // IDE Timing Register\n
Field (IDET, WordAcc, NoLock, Preserve)\n
{\n
Offset (0x00),\n
M1, 8,\n
Offset (0x01),\n
M2, 8,\n
Offset (0x02),\n
M3, 8,\n
Offset (0x03),\n
M4, 8\n
}
end;
into method label _DSM parent_adr 0x001F0001 remove_entry;
into device name_adr 0x001F0001 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (0x07, M1)\n
Store (0xE3, M2)\n
Store (Zero, M3)\n
Store (0xC0, M4)\n
Return (Zero)\n
}
end;
into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0103 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} removeall_matched;
into device name_hid PNP0103 code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\)\n\s+\{((?:.|\n)*)\}\) replace_matched
begin
Name (%1, ResourceTemplate ()\n
                   {\n
                       IRQNoFlags ()\n
                           {0}\n
                       IRQNoFlags ()\n
                           {8}\n
                       IRQNoFlags ()\n
                           {11}\n
                       IRQNoFlags ()\n
                           {15}\n
%2
})
end;
into method label _DSM parent_adr 0x001F0000 remove_entry;
into device name_adr 0x001F0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x16, 0x29, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _L03 parent_label _GPE insert
begin
Notify (\_SB.PWRB, 0x02)
end;
into method label _L04 parent_label _GPE insert
begin
Notify (\_SB.PWRB, 0x02)
end;
into method label _L0C parent_label _GPE insert
begin
Notify (\_SB.PWRB, 0x02)
end;
into scope label _SB insert
begin
Device (PNLF)\n
{\n
Name (_HID, EisaId ("APP0002"))\n
Name (_CID, "backlight")\n
Name (_UID, 0x0A)\n
Name (_STA, 0x0B)\n
}
end;
into device name_hid PNP0B00 code_regex (IO\s\((?:\s*[^,]+,\s*(?:\/\/\s.*)?\s*\n)+\s*)(\dx\d+)(,\s*(?:\/\/\s.*)?\s*\n\s*\)) replace_matched begin %10x02%3 end;
into method label _PTS code_regex_not If\s\(LEqual\s\(Arg0,\s0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched
begin
       If (LEqual (Arg0, 0x05)) {}\n
       Else\n
       {\n
%1
       }
end;
into device name_adr 0x001B0000 parent_label PCI0 remove_entry;
into device label PCI0 insert
begin
Device (HDEF)\n
{\n
   Name (_ADR, 0x001B0000)\n
   Method (_DSM, 4, NotSerialized)\n
   {\n
       Store (Package (0x04)\n
           {\n
               "layout-id", \n
               Buffer (0x04)\n
               {\n
                   0x0C, 0x00, 0x00, 0x00\n
               }, \n
               "PinConfigurations", \n
               Buffer (Zero) {}\n
           }, Local0)\n
       DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
       Return (Local0)\n
   }\n
}
end;
into method label _DSM parent_adr 0x001F0003 remove_entry;
into device name_adr 0x001F0003 insert
begin
Device (BUS0)\n
               {\n
                   Name (_CID, "smbus")\n
                   Name (_ADR, Zero)\n
                   Device (DVL0)\n
                   {\n
                       Name (_ADR, 0x57)\n
                       Name (_CID, "diagsvault")\n
                       Method (_DSM, 4, NotSerialized)\n
                       {\n
                           Store (Package (0x02)\n
                               {\n
                                   "address", \n
                                   0x57\n
                               }, Local0)\n
                           DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                           Return (Local0)\n
                       }\n
                   }\n
               }
end;
into method label _DSM parent_adr 0x001D0000 remove_entry;
into device name_adr 0x001D0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x34, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001D0001 remove_entry;
into device name_adr 0x001D0001 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x35, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001D0002 remove_entry;
into device name_adr 0x001D0002 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x36, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001A0000 remove_entry;
into device name_adr 0x001A0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x37, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001A0001 remove_entry;
into device name_adr 0x001A0001 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x38, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001A0002 remove_entry;
into device name_adr 0x001A0002 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x39, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into method label _DSM parent_adr 0x001D0003 remove_entry;
into device name_adr 0x001D0003 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x37, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end

Link to comment
Share on other sites

Hi MaLd0n

 

I have several questions:

 

  1. is it possible to lower fan speed at my notebook (like hp cool sense on windows). it's too noisy..
  2. just installed lion my sound doesn't work (92HD81B1X) . how can i enable it ? do i need kexts or patch dsdt + applehda?
  3. brightness and sleep doesn't work
  4. battery doesn't show at status bar

 

can it be fixed thru dsdt?

send_me.zip

 

[ IDT 92HD81B1X ]

 

Device Properties:

Device Description IDT 92HD81B1X

Device Description (Windows) IDT High Definition Audio CODEC

Device Type Audio

Bus Type HDAUDIO

Device ID 111D-7605

Subsystem ID 103C-1656

Revision 1001

Hardware ID HDAUDIO\FUNC_01&VEN_111D&DEV_7605&SUBSYS_103C1656&REV_1001

Link to comment
Share on other sites

try it

remove evoreboot etc

dsdt.Scotchy49_02.zip

I think you should do a clean installation to test

 

Hello, just tried and no luck... Still the same: will restart but not sleep or shutdown... And lid doesn't work.

 

I might try redoing it from scratch again later (and maybe sticking with SL) but tonight I'm too exhausted :).

 

Thanks a lot man ! If you have any advice, I would be delighted though ;)

Link to comment
Share on other sites

Hi MaLd0n

 

I have several questions:

 

  1. is it possible to lower fan speed at my notebook (like hp cool sense on windows). it's too noisy..
  2. just installed lion my sound doesn't work (92HD81B1X) . how can i enable it ? do i need kexts or patch dsdt + applehda?
  3. brightness and sleep doesn't work
  4. battery doesn't show at status bar

 

can it be fixed thru dsdt?

send_me.zip

dsdt.blackbumer.zip

1- use nativePM

http://www.insanelymac.com/forum/index.php?showtopic=258611

 

2- Use voodoohda, work like a charm

 

3- http://www.insanelymac.com/forum/index.php...amp;pid=1583900

sleep - nativePM + USB fix(if you need)

 

4- VoodooBatrey or other kext

Link to comment
Share on other sites

Whats mobo?

send me a kextstat

run on terminal

mobo: SuperMicro X8DAL-i

 

You patched this DSDT, three day's ago :). But only sleep doesn't work. (and sometimes restart / shutdown, but I think my BIOS isn't good configured).

 

My kextstat is in my post before this:

Here is my kextstat! kextstat.txt

Edit: Without NullCPU shutdown and restart works by my friend! Strange, but nice (:

Now we need to fix only speed stepping (native) and sleep! You send speed stepper, but this is an X58 motherboard. (1366 socket)?

Link to comment
Share on other sites

mobo: SuperMicro X8DAL-i

 

You patched this DSDT, three day's ago ;). But only sleep doesn't work. (and sometimes restart / shutdown, but I think my BIOS isn't good configured).

 

 

My kextstat is in my post before this:

shutdown

try it

http://www.insanelymac.com/forum/index.php...t&p=1372909

Link to comment
Share on other sites

QUOTE (emuzaman @ Aug 10 2011, 11:52 AM)

Cant run runme in Win......its a macosx app..

 

I was able to send all info about the lappy to your server with

the win version of auto patcher...(when mobo is not in the list- selected)

 

send me DSDT

processor Nehalem or SandyBridge?

 

processor - Nehalem (HP Pavilion dv6 480M 2.66)

and

here's DSDT

dsdt.aml.zip

Link to comment
Share on other sites

dsdt.blackbumer.zip

1- use nativePM

http://www.insanelymac.com/forum/index.php?showtopic=258611

 

2- Use voodoohda, work like a charm

 

3- http://www.insanelymac.com/forum/index.php...amp;pid=1583900

sleep - nativePM + USB fix(if you need)

 

4- VoodooBatrey or other kext

 

Does that nativePM link work for other things besides asus? Say my probook 4530s?

 

Or how can I enable it?

Link to comment
Share on other sites

Does that nativePM link work for other things besides asus? Say my probook 4530s?

 

Or how can I enable it?

SpeedStepper, AICPUPM patcher for ASUS P8P67 (and others)

:(

Link to comment
Share on other sites

SpeedStepper, AICPUPM patcher for ASUS P8P67 (and others)

:(

 

Alright thanks.

 

How can I make the brightness adjust better? It goes from like 0% to 80% to 90% to 100%, and the last like 6 options are also 100%. Is that easy to fix?

 

EDIT: Oh and I was reading on here and it said that the brightness fix should be under USB/EHCI devices in order to prevent issues, and that it would enable clamshell sleep. Is that true?

 

And after using the patcher for PM, I make the change in my c.b.a.p for enable pstates and cstates, right? but then do I do anything else? Thanks a ton.

Link to comment
Share on other sites

Alright thanks.

 

How can I make the brightness adjust better? It goes from like 0% to 80% to 90% to 100%, and the last like 6 options are also 100%. Is that easy to fix?

 

EDIT: Oh and I was reading on here and it said that the brightness fix should be under USB/EHCI devices in order to prevent issues, and that it would enable clamshell sleep. Is that true?

 

And after using the patcher for PM, I make the change in my c.b.a.p for enable pstates and cstates, right? but then do I do anything else? Thanks a ton.

use the search forum

and read about the issues

 

http://www.insanelymac.com/forum/index.php...amp;pid=1583900

Link to comment
Share on other sites

use the search forum

and read about the issues

 

http://www.insanelymac.com/forum/index.php...amp;pid=1583900

 

Alright. I think I can tackle brightness tomorrow, I didn't realize there were 7 pages on that thread to go through, fun fun!

 

But as far as PM, I have now patched it successfully. Do I need to add the p and c state stuff to c.b.a.p?

 

Or just do this? http://www.insanelymac.com/forum/index.php?showtopic=253642

 

I will be reading that whole thread tomorrow, so I will hopefully understand it better too.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...