Jump to content

DSDT Patch for sleep / intel speedstep / power management


  • Please log in to reply
19 replies to this topic

#1
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

Hello everyone,

 

can you please help me patch DSDT for my laptop:

Lenovo G570 Intel i3-2330M CPU (2.2Ghz, 2 cores, 4 threads)

 

I need few things working to make it a perfect hackintosh :

 

Sleep & power management

 

I'm getting some errors trying to compile and save dsdt.aml even without any modifications. I will upload it as soon as i find a fix. (UPDATED: I've attached the dsdt.aml file. thanks to carbo178!)

 

Thanks to everyone and I hope we will find a way :) happy hackintoshing!

Attached Files

  • Attached File  dsdt.zip   15.2KB   15 downloads


#2
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

Hi,

extract your dsdt with this command in terminal:

 

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>)
{ chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP,
"|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

 

You find dsdt.aml in desktop, compress and send the file



#3
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

wow that works great. Thank you Moderator.

 

I've attached the file :)

 

Attached Files



#4
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

This is the dsdt.aml without errors, warnings and remarks; now you can apply patches for sleep and power management

Attached Files



#5
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

Thank you so much, carbo178. But I don't know where to find a right patch for my sandy bridge i3 processor? Please help me!



#6
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

For speedstep you can generate SSDT file using ssdtprgen script (Google search).

The sleep is more difficult...

 

Try this

Attached Files



#7
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

Should I place this file inside /Extra? or some other clover boot loader folder. thank you for helping.



#8
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

If you use Chameleon put the file in Extra, if you use Clover put the file in ACPI-Patched, disable dsdt patching in Clover config.plist



#9
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

We made some good progress today. Now my system seems to go to sleep. the hdd blinker goes off and power lights keeps blinking. but when I press any key, the system starts as usual boot pattern. I thought it will quickly take me to the login screen preserving all my work. but it restarts the computer and re-opens all the windows that were open before going to sleep.

 

it is how it was supposed to behave? I'm using nullcpupowermanagement.kext because of kernel panics. I'll extract ssdt and try removing this kext.



#10
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

You can patch the bios with PMPatch, or use AppleIntelCPUPowermanagement patched before deleting NullCPUPM



#11
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

Hello carbo178, thank you so much for helping me. I will search more about the script and PMPatch on google. But I wanted to know why it's important to patch bios?



#12
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

My BIOS is InsydH20 I don't know if it's compatible with PMPatch?

 imag0004sv.jpg



#13
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

wow. thank you so so much. I can boot without Nullcpupm kext. I'm using patched Appleintelcpupm kext with ssdtPRGen generated SSDT file.

 

Now only problem is that my system goes to sleep but restarts when I press any key on the keyboard. It's takes more than a minute to boot. I don't know how sleep works. maybe it's working fine? what do you think?

 

Also, I want to enable my brightness keys (fn + arrow up / down) which isn't working. Sound works (fn + arrow left /right) fine. It's not as important as sleep which is a necessity since I don't want to restart my laptop.

 

Please guide me



#14
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

We did it. Now I have a fully working Hackintosh!    :thumbsup_anim:  

 

For sleep, I Patched dsdt device RTC. and it worked :D

 

Thank to everyone in osx86 community and carbo178 (insanelymac moderator) who helped me personally fixing errors in dsdt and patching.

 

The purpose of this thread is completed. I have fully native power management with intel speedstep. working sleep, now I can get back to work as soon as I open lid on my laptop. One again thanks to everyone. This topic maybe closed now.  :thumbsup_anim:

 

-attached working dsdt and ssdt for lenovo g570 intel i3 2330M

 

Attached Files



#15
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

Good!!! 

I was going to suggest that you apply the patch for RTC, but you were good at it alone



#16
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India
post-1300586-0-98057100-1392136320.png

 

Screen_Shot_2014_02_13_at_1_49_22_AM.png

 

Hackbook Pro on Lenovo Laptop :)


Hello carbo178, 

 

Is it possible to get rid of voodooHDA?



#17
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

I think it is not in my ability, it is necessary patching AppleHDA for the codec cx 20671



#18
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

I have already fixed the audio issue and AppleHDA works fine. no more voodoo stuff in kexts :D now I have only few third-party kexts like fakesmc and sensors.

 

Bro, where can I find more information on dsdt patch for VGA port?



#19
carbo178

carbo178

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,266 posts
  • Gender:Male
  • Location:Dalle paludi della Pianura Padana

Hi, i found this methods to enable HD3000 laptop vga

http://olarila.com/f...c.php?f=3&t=725

http://www.insanelym...ok-with-hd4000/ post#2

http://forum.osxlati...tel-hd3000-gpu/

http://www.osx86.net...-intel-hd-3000/



#20
ashishpatelmac

ashishpatelmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:India

Hi, I've got VGA working with patched AppleIntelSNBGraphicsFB.kext. good to see it working on my big screen







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy