Jump to content

RevoBoot


  • Please log in to reply
283 replies to this topic

#41
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
:D

#42
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
I just saw the changes regarding hibernation support that you commit on GitHub.
Have you applied this changes at lastest revision of RevoBoot?

#43
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

I just saw the changes regarding hibernation support that you commit on GitHub.
Have you applied this changes at lastest revision of RevoBoot?

Yes, up-to-date. The latest.

Someone with Chameleon or Chimera available can test what
sudo purge
will output? Thanks!

#44
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,139 posts
  • Gender:Male
  • Location:UK
Quick question. In RevoBoot v1.0.18 I have the following in settings.h:
#define NUMBER_OF_TURBO_STATES 4 // Set to 4 by default.

Is this directive ignored by the code for my core2duo? in which case I can leave it set at 4?
To test, I've just compiled the latest version using my static cpu data and everything works fine while leaving it at 4 so I guess I've just answered my own question. :)

@flAked - I'll see if I get time this morning (only about 40 mins remaining before i leave for work) to test your wake from hibernation file.

#45
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

eanwhile, I added hibernation support based on Chameleon: https://github.com/flAked/RevoBoot

Testers?

You need to set

sudo pmset -a hibernatemode 1
and go to sleep. The computer will shut off. Power it on and start OSX, RevoBoot should pick up the sleepimage.

It doesn't work here.
Sleep-image is correctly created and then PC shutdown. But then I get a normal boot, image-sleep is not picked up.

#46
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Make sure to have HIBERNATE_SUPPORT and DEBUG_BOOT set, what do you see before the kernel starts?
Also note that the sleepimage is quickly obsolete, so to test this you need to create a new sleepimage every time.

Quick question. In RevoBoot v1.0.18 I have the following in settings.h:
#define NUMBER_OF_TURBO_STATES 4 // Set to 4 by default.

Is this directive ignored by the code for my core2duo? in which case I can leave it set at 4?

This is used by the SSDT_PR generator, which only works for second generation i5/i7 with Turbo 2.0. This can be set via AUTOMATIC_SSDT_PR_CREATION.

#47
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

Make sure to have HIBERNATE_SUPPORT and DEBUG_BOOT set, what do you see before the kernel starts?
Also note that the sleepimage is quickly obsolete, so to test this you need to create a new sleepimage every time.

Both HIBERNATE_SUPPORT and DEBUG_BOOT are set to 1. Just cheked.
This is what I get before kernel starts:
Posted Image

#48
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Hmm seems the sleepimage is corrupt or incompatible for what ever reason. Can you try and remove it an generate a new one?

sudo rm /private/var/vm/sleepimage

Do you have FileVault / memory encryption enabled? That is not supported.

#49
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
It doesn't work.
Always get the same error regarding image signature before kernel starts.
Also this time the sleep-image (4,29GB) was correctly created and put in var/vm.
Don't know if could be help.
This is what I can see in /usr/bin/pmset -g log:
* Domain: hibernatestats
  - Message: Hibernate Statistics
  - Time: 14/06/11 13.37.54 GMT+02.00 
  - Signature: hibernatemode=0
  - UUID: 3AAADB21-378D-4F2A-9D4E-3B67CC5AB5CB
 
  * Domain: sleep
  - Message: Sleep: Platform Failure - AC
  - Time: 14/06/11 13.39.59 GMT+02.00 
  - Signature: Platform Failure
  - UUID: 742ADC8A-331A-4906-8B03-1DCEA23B44E7
  - Result: Failure
I also noted this on my kernel.log:
Sleep failure code 0x00000000 0x15000000
FileVault is currently disabled.

#50
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
You should have:
* Domain: hibernatestats
 - Message: Hibernate Statistics
 - Time: 13/06/2011 22:01:36 CEST 
 - Signature: hibernatemode=1
 - UUID: 762E86E4-9BF2-4DCD-8404-893543B40016
 - Time to write image (ms): undefined
 - Time to read image (ms): 23774

Jun 13 22:00:00 slave kernel[0]: hibernate image path: /var/vm/sleepimage
Jun 13 22:00:00 slave kernel[0]: sizeof(IOHibernateImageHeader) == 512
Jun 13 22:00:00 slave kernel[0]: hibernate image major 14, minor 2, blocksize 512, pollers 5
Jun 13 22:00:00 slave kernel[0]: hibernate_alloc_pages flags 00000000, gobbling 0 pages
Jun 13 22:00:00 slave kernel[0]: hibernate_setup(0) took 0 ms
Jun 13 22:01:27 slave kernel[0]: hibernate_page_list_setall start 0xffffff8092b28000, 0xffffff8092b7e000
Jun 13 22:01:27 slave kernel[0]: hibernate_page_list_setall time: 182 ms
Jun 13 22:01:27 slave kernel[0]: hibernate_page_list_setall found pageCount 864332
Jun 13 22:01:27 slave kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0
Jun 13 22:01:27 slave kernel[0]: IOHibernatePollerOpen(0)
Jun 13 22:01:27 slave kernel[0]: hibernate_machine_init: state 2, image pages 293823, sum was 6fd7820b, image1Size 19fe0400, conflictCount 1572, nextFree 1385
Jun 13 22:01:27 slave kernel[0]: IOHibernatePollerOpen(), ml_get_interrupts_enabled 0
Jun 13 22:01:27 slave kernel[0]: IOHibernatePollerOpen(0)
Jun 13 22:01:27 slave kernel[0]: hibernate_machine_init reading
Jun 13 22:01:27 slave kernel[0]: PMStats: Hibernate read took 23774 ms
Jun 13 22:01:27 slave kernel[0]: hibernate_machine_init pagesDone 1010902 sum2 961f4117, time: 23774 ms

Check hibernatemode again, is it set to 1?

#51
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
In /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist I had this:
<key>Hibernate Mode</key>
			 <integer>1</integer>
also even before re-checking hibernatemode.
BTW, now also in /usr/bin/pmset -g log I've hibernatemode=1
* Domain: hibernatestats
  - Message: Hibernate Statistics
  - Time: 14/06/11 13.59.12 GMT+02.00 
  - Signature: hibernatemode=1
  - UUID: D343A216-4A33-40E7-BD75-173B6C66251F
 
  * Domain: sleep
  - Message: Sleep: Platform Failure - AC
  - Time: 14/06/11 14.00.40 GMT+02.00 
  - Signature: Platform Failure
  - UUID: C78250ED-FA94-4D30-960D-AC62FE25A4FB
  - Result: Failure
but image-sleep is not picked up at boot.

Maybe some values in BIOS...
What's this?
Posted Image

#52
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
I'd say it's a sleep issue you need to fix first (with regular soft sleep as well):

* Domain: sleep
 - Message: Sleep: Success - AC - Software Sleep
 - Time: 30/04/2011 06:56:02 CEST 
 - Signature: Success
 - UUID: 299B8748-6E56-4BD8-B3E9-2B5AD208C0AB
 - Result: Success
 - Sleep count : 1

 * Domain: wake
 - Message: Wake: Success - AC
 - Time: 30/04/2011 06:56:02 CEST 
 - Signature: Success
 - UUID: 299B8748-6E56-4BD8-B3E9-2B5AD208C0AB
 - Result: Success

Got to go now, be back in the evening.

#53
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
What does you mean?
Apparently I don't have problem with my soft sleep...

#54
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Your PMLog shows "Platform Failure".

#55
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

Your PMLog shows "Platform Failure".

This only happen when hibernatemode is set to 1.
If is set to 0 this is what I get:
/usr/bin/pmset -g log _linenums:0'>/usr/bin/pmset -g log:  Descrizione:    Resoconti di gestione energia  Dimensione:    2 KB  Ultima modifica:    14/06/11 14.44  Contenuto recente:    Power Management ASL logs.-> All messages with "com.apple.message.domain" key set to "com.apple.powermanagement".) * Domain: sleep - Message: Sleep: Success - AC - Software Sleep - Time: 14/06/11 14.42.41 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: DC618EF6-624C-4407-A268-15394F03930C - Result: Success - Sleep count : 2 * Domain: wake - Message: Wake: Success - AC - EHC1 - Time: 14/06/11 14.42.41 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: DC618EF6-624C-4407-A268-15394F03930C - Result: Success * Domain: hibernatestats - Message: Hibernate Statistics - Time: 14/06/11 14.42.41 GMT+02.00 <strong class='bbc'> - Signature: hibernatemode=0</strong> - UUID: DC618EF6-624C-4407-A268-15394F03930C * Domain: sleep - Message: Sleep: Success - AC - Software Sleep - Time: 14/06/11 14.43.20 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: 1D255B18-6C9C-4019-898C-4B70C820462C - Result: Success - Sleep count : 3 * Domain: wake - Message: Wake: Success - AC - EHC1 - Time: 14/06/11 14.43.20 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: 1D255B18-6C9C-4019-898C-4B70C820462C - Result: Success * Domain: hibernatestats - Message: Hibernate Statistics - Time: 14/06/11 14.43.20 GMT+02.00 <strong class='bbc'> - Signature: hibernatemode=0</strong> - UUID: 1D255B18-6C9C-4019-898C-4B70C820462C * Domain: sleep - Message: Sleep: Success - AC - Software Sleep - Time: 14/06/11 14.43.50 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: 6409E721-12FB-4B83-9526-E9128AA6AD9A - Result: Success - Sleep count : 4 * Domain: wake - Message: Wake: Success - AC - EHC1 - Time: 14/06/11 14.43.50 GMT+02.00 <strong class='bbc'> - Signature: Success</strong> - UUID: FEA13F0B-B574-477B-AAFE-BB39C433F036 - Result: Success * Domain: hibernatestats - Message: Hibernate Statistics - Time: 14/06/11 14.43.50 GMT+02.00 <strong class='bbc'> - Signature: hibernatemode=0</strong> - UUID: FEA13F0B-B574-477B-AAFE-BB39C433F036


#56
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
I got'cha. Hmm, how much hdd space left on / ?

#57
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
Posted Image

#58
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
How cute :)

Well, I'm a bit lost on this issue. The actual resume code seems to work fine here. Your issue lies in the generation of the sleepimage itself.

Does your PC shutdown automatically after the image is written to disk?

It's a blind shot, but have you tried booting in 64bit and then hibernate + wake?

#59
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
Yep, PC shutdown automatically.
I'll try to boot in 64-bit.
I'll be back in 2 minutes...

EDIT
Hibernation doesn't work also in 64-bit mode.
Get the same error regarding image-sleep.
Really don't know what to do...

#60
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Can you test this fix?

http://forge.voodoop...rce/commit/136/

in line 1164 just add the (long long) in RevoBoots i386/libsaio/hfs.c





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