Voodooprojects

Chameleon => General Discussion => Topic started by: stig_dk on July 15, 2009, 07:55:13 PM

Title: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 15, 2009, 07:55:13 PM
Hi All
FYI, I just managed to wake my MSI Wind U100 w. 2GB memory from deep sleep. I've only spend 30min doing this fix, so it might not be... healthy :-p

I downloaded the RC1 r431 source and had a look at i386/boot2/resume.c

Ok, wake from deep sleep bailes out on this check (l. 122):

        if ((long long)mem_base+allocSize<1024*bootInfo->extmem+0x100000)
        {
                printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
                getc ();
                return;
        }

allocSize = imageSize, the size of the sleep image, so should this not be?:

        if (!((long long)mem_base+allocSize<1024*bootInfo->extmem+0x100000))
        {
                printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
                getc ();
                return;
        }

I would think so, but you could also just comment out the block (dirty hack) :-p

Anyways, after rebuilding Chameleon (make pkg) and copying sym/i386/boot to /boot, I am able to wake my Wind from deep sleep.

I'm not saying that this is the correct way to go, but it might do the trick untill the final Chameleon 2.0 gets released.

My "boot" file is attached.

Sleep well
/Stig
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 15, 2009, 11:49:22 PM
Ok, just did a slight cosmetic fix. Now Chameleon does not drop back to text mode with the Wake Kernel!! message after loading the boot image. Looks better, but worse for debugging ;-)

cheers
/Stig
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Kabyl on July 16, 2009, 02:34:22 AM
Please post a diff not a binary.

Thank you!
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 16, 2009, 06:53:03 AM
Hi
Ok. Was not sure that everybody who comes here knew what to do with a diff?

cheers
/Stig
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stevebrush on July 16, 2009, 02:17:53 PM
works for me ! thanks a lot.

booting from OsX partition. seems to works on EFI booting partition too.

isn't it possible to leave the boot file here? many people doesn't know how to compile and furthermore, use a diff file :-)
maybe a new chameleon release with this patch is on the way?

anyway, the file is posted here : http://forums.msiwind.net/post114726.html#p114726 (http://forums.msiwind.net/post114726.html#p114726)
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Kabyl on July 16, 2009, 04:41:21 PM
Thank you, this will be eventually checked and applied.
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 16, 2009, 05:10:13 PM
Glad to help, hope the fix is not completely bollocks ;-)

cheers
/Stig
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Dalton63841 on July 16, 2009, 08:53:45 PM
Tested working perfectly with EFI booting on the MSI Wind U100.
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: dadaz on July 17, 2009, 09:36:06 AM
Hi

Can somebody say me how to compile Chameleon source, I tried to search but I didn't find anything Xcode doesn't want Makefile.

Thanks.
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 17, 2009, 04:04:31 PM
Yes, you do it from the commandline with "make". "make pkg".

Xcode...  *cough* *crap* *cough*.... ;-)

/Stig
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Dalton63841 on July 26, 2009, 07:55:50 PM
What did you change to make it use a resume image instead od the Wake Kernel! text?
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: stig_dk on July 26, 2009, 08:42:50 PM
The method that wakes the kernel droped back in text mode, I just commented it out. It's in the diff ;-)
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Dalton63841 on July 26, 2009, 08:48:40 PM
Okay so far I've made the changes to the code in the Chameleon 2 RC2 sources, but I'm having trouble getting it to compile.
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: Dalton63841 on July 26, 2009, 09:11:03 PM
EDIT: nvm, I forgot that I've reinstalled since the last time I installed Xcode and the Developers Tools. lol
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: staticanime on September 07, 2009, 05:48:37 PM
On RC3, this breaks graphical boot completly
Title: Re: MSI Wind U100, Deep Sleep (hibernate) Fix
Post by: dadaz on September 08, 2009, 12:36:59 PM
You can find the solution on my other post (thanks to Zef).

http://forum.voodooprojects.org/index.php/topic,732.0.html