Author Topic: MSI Wind U100, Deep Sleep (hibernate) Fix  (Read 14603 times)

0 Members and 1 Guest are viewing this topic.

stig_dk

  • Entrant
  • Posts: 8
MSI Wind U100, Deep Sleep (hibernate) Fix
« 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
« Last Edit: July 16, 2009, 02:33:14 AM by Kabyl »

stig_dk

  • Entrant
  • Posts: 8
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #1 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
« Last Edit: July 16, 2009, 02:33:25 AM by Kabyl »

Kabyl

  • VoodooLabs
  • Posts: 158
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #2 on: July 16, 2009, 02:34:22 AM »
Please post a diff not a binary.

Thank you!

stig_dk

  • Entrant
  • Posts: 8
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #3 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

stevebrush

  • Entrant
  • Posts: 2
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #4 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

Kabyl

  • VoodooLabs
  • Posts: 158
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #5 on: July 16, 2009, 04:41:21 PM »
Thank you, this will be eventually checked and applied.

stig_dk

  • Entrant
  • Posts: 8
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #6 on: July 16, 2009, 05:10:13 PM »
Glad to help, hope the fix is not completely bollocks ;-)

cheers
/Stig

Dalton63841

  • Observer
  • Posts: 14
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #7 on: July 16, 2009, 08:53:45 PM »
Tested working perfectly with EFI booting on the MSI Wind U100.

dadaz

  • Entrant
  • Posts: 9
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #8 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.

stig_dk

  • Entrant
  • Posts: 8
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #9 on: July 17, 2009, 04:04:31 PM »
Yes, you do it from the commandline with "make". "make pkg".

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

/Stig

Dalton63841

  • Observer
  • Posts: 14
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #10 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?

stig_dk

  • Entrant
  • Posts: 8
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #11 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 ;-)

Dalton63841

  • Observer
  • Posts: 14
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #12 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.

Dalton63841

  • Observer
  • Posts: 14
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #13 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

staticanime

  • Member
  • Posts: 45
Re: MSI Wind U100, Deep Sleep (hibernate) Fix
« Reply #14 on: September 07, 2009, 05:48:37 PM »
On RC3, this breaks graphical boot completly