Author Topic: Sleep and shutdown without additional kexts?  (Read 19351 times)

0 Members and 1 Guest are viewing this topic.

imacken

  • Member
  • Posts: 57
Sleep and shutdown without additional kexts?
« on: March 20, 2010, 04:25:34 PM »
I thought that the latest Chameleon RC did away with the need for some kexts, but I can't shutdown without OpenHaltRestart.kext, and I can't sleep without SleepEnabler.kext.
I can restart without either of them, and I've got rid of PlatformUUID.kext, but shutdown and sleep don't seem to work without them.
Is this normal?

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Sleep and shutdown without additional kexts?
« Reply #1 on: March 21, 2010, 06:45:57 AM »
The latest "official" Chameleon release doesn't have any restart, sleep or shutdown-specific fixes.

If you're lucky, shutdown and sleep can be fixed in DSDT.

I use a Chameleon 2.0 RC4 derivative with Duvel3000's restart fix, so I can restart without any extra kexts.

If using Psystar's OpenHaltRestart makes you feel "dirty" :-) there's also EvOReboot.kext and OSXRestart.kext.
« Last Edit: March 21, 2010, 07:13:32 AM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

imacken

  • Member
  • Posts: 57
Re: Sleep and shutdown without additional kexts?
« Reply #2 on: March 21, 2010, 09:26:42 AM »
Thanks for that.  Will any future official releases have these built-in?

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Sleep and shutdown without additional kexts?
« Reply #3 on: March 22, 2010, 10:21:17 PM »
RC5 will probably have the restart fix.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

Lord Anubis

  • Member
  • Posts: 74
Re: Sleep and shutdown without additional kexts?
« Reply #4 on: March 29, 2010, 05:51:20 PM »
I use a Chameleon 2.0 RC4 derivative with Duvel3000's restart fix, so I can restart without any extra kexts.

If using Psystar's OpenHaltRestart makes you feel "dirty" :-) there's also EvOReboot.kext and OSXRestart.kext.

Hi Gringo,

what are the benefits from one over the other you did mentioned?
Quicksilver 2002 Case - GB EP45-DS3P - 8Gb Kingston mem. - Q6600 - Asus 7300GT Silent 512Mb - 6 SATA drives - 1 IDE drives ( using F12/Chameleon for booting, not visible in OSX ) - 1 external Sata Samsung DVD - OSX 10.6.8 server retail - Chameleon 2.0RC1 + Cartri Bios

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Sleep and shutdown without additional kexts?
« Reply #5 on: March 29, 2010, 10:18:48 PM »
I don't think there are any, the end result is supposedly the same. Psystar's kext was the first one of its kind. The Evo kext was made so that we could have a non-psystar alternative and I suspect there isn't much of a difference between the two.
Master Chief's kext probably works best if you're also up to date with his DSDT mods? Not sure.

I'm using the AsereBLN 1.19 Chameleon bootloader for now, which has a restart fix built-in so I don't need any of the restart kernel extensions.

Try them all and see which one works best for you.

Visit InsanelyMac and start plowing through the humongous 'DSDT fixes for Gigabyte boards' thread. With a little luck someone already posted one for your board.
« Last Edit: March 29, 2010, 11:02:40 PM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

imacken

  • Member
  • Posts: 57
Re: Sleep and shutdown without additional kexts?
« Reply #6 on: March 29, 2010, 10:48:48 PM »
With AsereBLN 1.1.9, I only have fakesmc in my E/E.  Everything else has gone.  Sleep, restart, and shutdown all work fine.  This is mainly down to my DSDT though with various 'fixes' built-in for the Asus P6T Deluxe.

00diabolic

  • Observer
  • Posts: 25
Re: Sleep and shutdown without additional kexts?
« Reply #7 on: June 27, 2010, 06:06:03 AM »
I am trying to get restart to work again without evoreboot (worked with it). All I get now is a shutdown instead.

I am using AnVal bootloader and I believe valv applied the same fixes as AsereBLN. To bad AsereBLN work as stopped. I have the restart fix applied with AnVal but it does nothing for me.

Ive seen DSDT fixes for restart/shutdown and sleep for particular boards. Is there any sort of generic restart fix for DSDT out there? So far my googling as come up short.

Valv if you read this.. Am I right you use Duvel3000's restart fix in your bootloader code? RestartFix=Yes is it right?

Anyone know of a generic restart fix for DSDT? If you can point me towards the part of the DSDT relevant maybe I can figure this out myself.
« Last Edit: June 27, 2010, 06:28:09 AM by 00diabolic »

imacken

  • Member
  • Posts: 57
Re: Sleep and shutdown without additional kexts?
« Reply #8 on: June 27, 2010, 09:27:10 AM »
Can't help with your question, but the last I heard was that AsereBLN hasn't stopped, he's just taking a few months off somewhere on his boat.

valv

  • VoodooLabs
  • Posts: 72
    • The AnVAL Forum (fr)
Re: Sleep and shutdown without additional kexts?
« Reply #9 on: June 27, 2010, 05:45:38 PM »
I am using AnVal bootloader and I believe valv applied the same fixes as AsereBLN. To bad AsereBLN work as stopped. I have the restart fix applied with AnVal but it does nothing for me.

Ive seen DSDT fixes for restart/shutdown and sleep for particular boards. Is there any sort of generic restart fix for DSDT out there? So far my googling as come up short.

Valv if you read this.. Am I right you use Duvel3000's restart fix in your bootloader code? RestartFix=Yes is it right?
Back in the days, when Andy implemented that fix, he did it in a slightly different manner. I based my branch on an older revision of his work. It is running for most people over there. Regarding DSDT, u should begin with looking for some other fixes like USB, that directly affect sleep, wakeup, restart...etc. Also, did u have a look at mm67's post (I 've been posting for u at IM)? Try asking him to adapt it to your file. u should also add your FADT into /Extra and see if it gets fixed.
Again, I did not rely on AsereBLN's code. It was more Andy's code on which I based my work. u could conclude this by your self if u were taking time to look for diffs. My aim, is to remain as close as possible to the trunk, without stagnating at it.
Greetz,

00diabolic

  • Observer
  • Posts: 25
Re: Sleep and shutdown without additional kexts?
« Reply #10 on: June 27, 2010, 06:30:27 PM »
Back in the days, when Andy implemented that fix, he did it in a slightly different manner. I based my branch on an older revision of his work. It is running for most people over there. Regarding DSDT, u should begin with looking for some other fixes like USB, that directly affect sleep, wakeup, restart...etc. Also, did u have a look at mm67's post (I 've been posting for u at IM)? Try asking him to adapt it to your file. u should also add your FADT into /Extra and see if it gets fixed.
Again, I did not rely on AsereBLN's code. It was more Andy's code on which I based my work. u could conclude this by your self if u were taking time to look for diffs. My aim, is to remain as close as possible to the trunk, without stagnating at it.
Greetz,

Ohh Yeah you did point me towards that first. I was not ready for it then but I am looking into it again because I have an almost all vanilla system going.

I really want to narrow down the possibilities here for the fix. I have working shutdown but sleep still does not work. You have mentioned the FADT table before but your restart fix patches that table right? So what would be the point? Could FADT table help with sleep?

I have already sent a msg to mm67 asking that exact question. See if he could adapt his DSDT fix for more users. Hope to hear from him soon.


valv

  • VoodooLabs
  • Posts: 72
    • The AnVAL Forum (fr)
Re: Sleep and shutdown without additional kexts?
« Reply #11 on: June 27, 2010, 06:57:55 PM »
Could FADT table help with sleep?
not as far as I know. u better look into console for messages related to sleep issues. most likely usb related.

mm67

  • Entrant
  • Posts: 5
Re: Sleep and shutdown without additional kexts?
« Reply #12 on: June 27, 2010, 07:46:14 PM »
There is nothing in dsdt related to restart, it's only FACP that is fixed with some bootloaders. Tried to answer your PM but your username on Insanely makes it impossible, I only get a message that there is no such user. For sleep to work properly my system needed fixes for powermanagement and Usb, maybe try checking those first.
 

valv

  • VoodooLabs
  • Posts: 72
    • The AnVAL Forum (fr)
Re: Sleep and shutdown without additional kexts?
« Reply #13 on: June 27, 2010, 07:49:54 PM »
based on somewhere on efix:
Quote
Guys, the latest build's RestartFix=Yes option did not affect my restart (was working OK) but affected my shut-down... I did remove EvoReboot.kext from /E/E of course... left only with LegacyHDA.kext!

Any ideas? Did anyone else see a shut-down problem? I mean, I get "CPU halted" at the verbose screen, the display shuts but not the mobo...

EDIT1: Asere, you tell us to refer to mm67's post, but you must agree with me that his added bit of code doesn't apply to all motherboards and setups... I mean, I don't even know for which board's DSDT mm67 made this addition of the OperationRegion new code (and memory address):

Code:
    Scope (\)
    {
        Name (PICF, 0x00)
        Method (_PIC, 1, NotSerialized)
        {
            Store (Arg0, PICF)
        }
    }

    OperationRegion (PMRS, SystemIO, 0x0430, 0x1)
    Field (PMRS, ByteAcc, NoLock, Preserve)
    {
               ,   4,
           SLPE,   1
    }

    Method (\_PTS, 1, NotSerialized)
    {
        Or (Arg0, 0xF0, Local0)
        Store (Local0, DBG1)
        OSTP ()
        If (LEqual (Arg0, 0x01)) {}
        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x05))
        {
            Store (ESMI, Local0)
            And (Local0, 0xFB, Local0)
            Store (Local0, ESMI)
            Store (0x99, SMIP)
            Store (Zero, SLPE)
            Sleep(0x10)
        }

        If (LEqual (Arg0, 0x04))
        {
            If (LNot (PICF))
            {
                Sleep (0x64)
            }
        }
    }

EDIT2: Found the OperationRegion declaration in my DSDT with address 0x0430, it had another variable name... Apparently this address is also used by my mobo's BIOS/DSDT.

So I modified the code according to mm67's instructions and by removing EvoReBoot.kext I am now able to restart/shutdown (using RestartFix=Yes in com.apple.Boot.plist too). Many thanks.

00diabolic

  • Observer
  • Posts: 25
Re: Sleep and shutdown without additional kexts?
« Reply #14 on: June 28, 2010, 02:33:11 AM »
Valv you are my hero.. :-)

I'll take a look at this and see if I can apply the same method... With a lot of the other DSDT patches I have found. I have not been able to simply apply them to my DSDT, because it does not match closely enough and I dont have the experience to adapt the fix myself. Ill see what I can uncover here.. Those who never try fail...
« Last Edit: June 28, 2010, 06:52:57 PM by 00diabolic »