#1
Posted 26 August 2011 - 12:01 AM
i can't get works the hibernation under lion. I get "incorrect image signature" message at boot.
in SL i resolved that disabling Secure Virtual Memory in preferences-security pane but in Lion that switch doesn't exist and the secure virtual memory is enabled by default.
i found that string to disable via terminal the secure virtual memory
sudo defaults write /Library/Preferences/com.apple.virtualMemory\UseEncryptedSwap -bool no
but it don't works
anyone has a solution to get works hibernation under lion? or to disable the Secure virtual memory
thanks in advance
#2
Posted 26 August 2011 - 12:28 AM
see in http://forge.voodoop...eon/issues/133/
#3
Posted 26 August 2011 - 06:29 AM
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes
#4
Posted 26 August 2011 - 08:58 AM
Hibernation worked here disabling secure virtual memory and applying a patch to Chameleon which has provided Vladimir Zidar
see in http://forge.voodoop...eon/issues/133/
i downloaded that patch but i don't understand how to use that file
if I run it under terminal with "sh ./ hibernate107v1.patch" i get some errors and nothing changes
#5
Posted 26 August 2011 - 10:36 AM
Noi downloaded that patch but i don't understand how to use that file
if I run it under terminal with "sh ./ hibernate107v1.patch" i get some errors and nothing changes
you need to have sources of chameleon to apply the patch and then build
If you prefer, the boot with the patched version of r1434 Chameleon is here http://dl.dropbox.co...881411/boot.zip
#6
Posted 26 August 2011 - 11:34 AM
No
you need to have sources of chameleon to apply the patch and then build
If you prefer, the boot with the patched version of r1434 Chameleon is here http://dl.dropbox.co...881411/boot.zip
the chameleon boot from you link works great
thank you very much indeed!!!!!
just a question. if i want to build chameleon with the patch, once i downloaded the sources, what i have to do?
are there specific command lines?
it's just a curiosity if one day I wanted to patch a newer version of chameleon
#7
Posted 26 August 2011 - 12:20 PM
the chameleon boot from you link works great
thank you very much indeed!!!!!
just a question. if i want to build chameleon with the patch, once i downloaded the sources, what i have to do?
are there specific command lines?
it's just a curiosity if one day I wanted to patch a newer version of chameleon
man patch
http://forge.voodooprojects.org/
svn co -r HEAD http://forge.voodoop...g/svn/chameleon ( all branches )
svn co -r HEAD http://forge.voodoop...chameleon/trunk ( current version )
#8
Posted 27 August 2011 - 11:38 AM
I added the patch and hope it is fixed now
#9
Posted 27 August 2011 - 08:10 PM
(Though the Vladimir spoke to rewrite the "resume.c" in order to have a clean code, no hacks, and there goes the Lion, Snow and Leopard)
#10
Posted 28 August 2011 - 09:35 AM
#11
Posted 28 August 2011 - 08:53 PM
Is there a way to have wake-from-disk AND secure virtual memory? Why doesn't it work with secure VM?
if you want to use secure virtual memory and hibernation you should use the switch 5 or 7 instead of 1 and 3 when you set the hibernate mode: pmset hibernatemode x (x is the switch). i hope this can help you.
i have read this but never tried it, so i don't know if it works on hackintosh
#12
Posted 31 August 2011 - 12:57 PM
with this patch my notebook is able to reach the gray screen with "header read size 200 blah blah blah Wake Kernel!" but instead of showing my desktop it shutdown. what i'm doing wrong? i'm trying to get hibernation work because i can't get sleep to work correctly, it sleeps but when i try to wake up it shutdown again.
sorry for my bad english
#13
Posted 01 September 2011 - 07:00 AM
with hibernatemode set to 0, he usually sleeps?
secure virtual memory disabled ?
#14
Posted 01 September 2011 - 11:36 AM
Apples default power mode scheme in SL / Lion is what in Linux is called "suspend to Ram".
The machine goes off and writes within seconds everything that is on the screen opened to RAM, on my Toshiba I can see a red pulsating light that indicates that state being active. ( Vista/7 uses the same mode when you close the lid ) .
This state is using battery power, keeping everything powered OFF, but only the RAM modules active. One can carry the machine in this state and open it at any time and within milliseconds after you press the power button, everything is back on the screen as you left it. The network and sound will be turned on immediately so you are online again the moment you power OSX again. Your battery will show that it has only xx percent left, indicating that it has been used in that sleep state.
If the battery goes empty in that state, OSX will write the content to a hibernate file but in most cases ( on a full battery ) you can leave the machine in this state over nights ( my battery never last very long and it is now 1,5 years old but for sleeping the Laptop it is more than enough )
So there is nothing wrong with Apples default selection for Hacks : it definitely works ( with or without secure vm ).
In Snow I played a bit with "pmset" and switched the default Suspend mode to "Suspend to disk", that is the mode where it writes everything not to Ram but to the SleepImage file. It is mostly useless, because the Hack goes into power-off ( completely ) and when you press the power button, chameleon is called, only that no full boot is done but a "resume" screen, where Chameleon re-calls the sleep images content ( which is slow and can take even more time than a simple boot ) - then Mac OSX also resumes there where it has left before and the battery is still full, because in that mode it has not been used.
The available modes can be seen if you type " man pmset " in a terminal. There are various combinations available, but Apple itself warns that not all will work correctly.
It all depends on a working DSDT.aml and IDEALLY NOT use Nullcpu+Sleepenabler
( if using Sleepenabler +Nullcpu , having "PmVersion=102" in the boot plist is important for Lion )
What I needed to make sleep work : change device-IDs of all USBs ( from ICH9 into ICH10 ) and make them all appear as internal. I did of course also all the other hacks, but the USB thing is the only to have sleep working.
The components in my L500 are very much Apple-Like and thus simply work. The core2duo, the Intel chipset etc - all parts we find in real macs too. Only Ich10 instead of Ich9 .
FILES
My current boot loader :
Chameleon_2.1svn_r1478.pkg.zip 1.46MB
174 downloadsMy boot plist :
org.chameleon.Boot.plist.zip 740bytes
187 downloadsMy DSDT :
dsdt.aml.zip 16.33KB
67 downloads
#15
Posted 01 September 2011 - 07:40 PM
which hibernatemode using ?
with hibernatemode set to 0, he usually sleeps?
secure virtual memory disabled ?
hibernatemode is set to 1.
with hibernatemode 0 he sleeps, but instead of wake up he shutdowns.
secure memory is disabled
#16
Posted 02 September 2011 - 11:29 PM
#17
Posted 03 September 2011 - 07:09 AM
your problem is that sleep is not working. read the answer above.
i know, but what can i do? i'm not able to edit my dsdt, and using sleepenabler + nullcpupowermanagement + pmversion=102 as suggested in the post above does not solve my problem.
#18
Posted 03 September 2011 - 07:25 AM
<key>GenerateCStates</key> <string>yes</string> <key>GeneratePStates</key> <string>yes</string>
but ask for help in the DSDT section that probably will help
#19
Posted 30 October 2012 - 11:44 PM
#20
Posted 22 October 2014 - 01:12 PM
This is the right native command line in Terminal:
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes
Hello everyone, does anyone know if the trick above works for Mavericks and 10.9.5 version?
I also discovered that the trick to remove the "sleepimage" file is failing 100%. Upon each reboot, the file is re-created each time… even if I do a zero-size file with chmod 000 attributes!
Thanks in advance.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Sign In
Create Account








