InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Asus K50IN (http://infinitemac.com/showthread.php?t=4409)

flip360 07-10-2011 03:15 PM

here you go buddy AppleHDA: http://www.sendspace.com/file/frbhgs

as for the shutdown fix, i posted in the russian forums and i await for reply, maybe will try Andys and cparm bootloader and see if that fixes stuff,

Cheers

ronovar 07-10-2011 07:35 PM

Quote:

Originally Posted by flip360 (Post 54478)
here you go buddy AppleHDA: http://www.sendspace.com/file/frbhgs

as for the shutdown fix, i posted in the russian forums and i await for reply, maybe will try Andys and cparm bootloader and see if that fixes stuff,

Cheers

Thank you....Could you please post link to the russian forums so that i can read what they say about shutdown fix?

ronovar 07-10-2011 09:17 PM

Shutdown is working via DSDT
 
Hey guys...i ime very happy....i have found solution how to fix shutdown in dsdt...

You just need to add this code into _PTS

If (LEqual (Arg0, 0x05))
{
Store (One, \_SB.PCI0.LPCB.S5CT)
}
Else
{
// Your existing CODE from original _PTS
}

//************

Function that we need is magiccly Store (One, \_SB.PCI0.LPCB.S5CT) This S5CT is response for Shutdown!!!

Here is complete code for asus notebook

open DSDT
search for _PTS


Method (_PTS, 1, NotSerialized)
{
If (LEqual (Arg0, 0x05))
{
Store (One, \_SB.PCI0.LPCB.S5CT)
}
Else
{
Store (Arg0, DBG8)
PTS (Arg0)
Store (Zero, Index (WAKP, Zero))
Store (Zero, Index (WAKP, One))
If (LAnd (LEqual (Arg0, 0x04), LEqual (OSFL (), 0x02)))
{
Sleep (0x0BB8)
}

Store (ASSB, WSSB)
Store (AOTB, WOTB)
Store (AAXB, WAXB)
Store (Arg0, ASSB)
Store (OSFL (), AOTB)
Store (OSYS (), OSTP)
Store (Zero, AAXB)
}
}


And Shutdown is workig, sleep is working...now i need to check restart if working...

Guys Asus K50 and K70IO is vanilla, it has very close DSDT fixes like gigabye...put my modification into your DSDT and post your results,you will have shutdown working without any kext.

flip360 07-10-2011 11:11 PM

wonderfull news and congrats on your fix :) could you post your modified DSDT so we can update the front page?

Cheers

ronovar 07-11-2011 08:25 AM

Quote:

Originally Posted by flip360 (Post 54482)
wonderfull news and congrats on your fix :) could you post your modified DSDT so we can update the front page?

Cheers

Yes, no problem. Here is link to download my DSDT that has shutdown fix (just search for _PTS and copy to your _PTS into DSDT.

This dsdt is from my K70IO and is same as K50 but its better to copy only fix.

By me is currently working sleep and shutdown, restart is not working...so i need to fix only PTS method where it says If (LEqual (Arg0, 0x03)) that means when Restart is pressed on Apple menu go to execute code.

You have say that by you Restart is working, could you please upload your DSDT on which restart is working to investigate code and copy to my DSDT.

This shutdown modification in DSDT will shutdown very fast, and will not kill any of features on Mac OS X.Now is shutdown vanilla...:))) Yupiii

http://www.mediafire.com/?4zuki8sm4r5tv9h

flip360 07-11-2011 11:28 AM

Hi ronovar,

here is my DSDT: http://www.mediafire.com/?minsslmjzcg66r2

i tried adding your fix to my dsdt, it compiles fine no errors, but shutdown still doesnt work.

also in the beginning of the DSTD yours has:

External (\_SB_.PCI0.HBDP)

and mine has:

External (\_SB_.PCI0.LPCB.S5CT) which is responsible for shutdown as you said.

I am using Chameleons Graphic Enabler.
also here is something interesting: http://www.insanelymac.com/forum/ind...owtopic=152566
at the end of the thread there is an archive to download with ioregs and smbios dumps from real mac`s and there are one of MacBookPro5,3 and one of MacBookPro5,1 as we use it, maybe there is some fix we can load in our DSDT`s.

Cheers

ronovar 07-11-2011 12:13 PM

Quote:

Originally Posted by flip360 (Post 54487)
Hi ronovar,

here is my DSDT: http://www.mediafire.com/?minsslmjzcg66r2

i tried adding your fix to my dsdt, it compiles fine no errors, but shutdown still doesnt work.

also in the beginning of the DSTD yours has:

External (\_SB_.PCI0.HBDP)

and mine has:

External (\_SB_.PCI0.LPCB.S5CT) which is responsible for shutdown as you said.

I am using Chameleons Graphic Enabler.
also here is something interesting: http://www.insanelymac.com/forum/ind...owtopic=152566
at the end of the thread there is an archive to download with ioregs and smbios dumps from real mac`s and there are one of MacBookPro5,3 and one of MacBookPro5,1 as we use it, maybe there is some fix we can load in our DSDT`s.

Cheers

I found where you have mismised code, try this and your shutdown will work

First i downloaded your DSDT and you have correctly applied the code to the _PTS except one thing, you dont have in your DSDT Device(LPCB) so code in _PTS does dont know where S5CT is located....

Solution is to find Device(SBRG) and rename it to Device(LPCB), and shutdown will work...trust me.

And dont to forget to repleace all references SBRG to LPCB, if you will not you will get a lots of errors when compiling...

If you could not make modification, please write here and i will modify it as descipted above.

I found that your reset code into dsdt is quite different, and can you tell me are you using some kext or not when your restart is working?

And dont forget to remove all kext for shutdown, restart and sleep (like sleepenablerm evorebot, etc).

flip360 07-11-2011 12:45 PM

I will try to modify my dsdt as you suggested, and for restart i am using EVOReboot or OpenHaltRestart, without it it doesnt want to restart...hmmmz. No sleepenabler or such. Can you try to merge the two somehow or take the best of both worlds?

Cheers

ronovar 07-11-2011 01:02 PM

Quote:

Originally Posted by flip360 (Post 54489)
I will try to modify my dsdt as you suggested, and for restart i am using EVOReboot or OpenHaltRestart, without it it doesnt want to restart...hmmmz. No sleepenabler or such. Can you try to merge the two somehow or take the best of both worlds?

Cheers

Thank you for your response, please try dsdt shutdown fix and post if it work for you:)

I im now reasearching alots of dsdt (Gigabyte, Asus, Asrock) and i im studdying DSDT what function i need to call to reboot, for now i see that it has sense that PSS method what is dumped from linux to have speedstepping working is needed to put in S3 state which is called Restart.

Can you post link to russian forum? I have google chrome installed and now i can translate russian language to english..:)

I have just placed Evoreboot.kext and reboot is working...now i will try to study that kext and make patch to DSDT.

flip360 07-11-2011 01:23 PM

I tried the fix but still doesnt work for me.
here is the link for the russian forum: http://www.applelife.ru/topic/21601-asus-k50in/
Hope we find a solution, thanks for your effort buddy :)

Cheers