LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   creating hybrid-sleep on linux (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/creating-hybrid-sleep-on-linux-790379/)

Person_1873 02-20-2010 07:34 AM

creating hybrid-sleep on linux
 
Ok, my laptop can hibernate and suspend, what i want is to be able to copy the contents of my RAM to my HDD swap space but then have the machine enter s3 sleep, could someone help me write a script or give me pointers as to what i need to re-code to make this work?

teckk 02-23-2010 11:18 AM

Something like
Code:

dd if=/dev/mem of=/home/username/mem.bin bs=1024
Code:

acpiconf -s3
Use you own parameters for where you write to.

DD is also unforgiving.
look at man DD

and

http://www.linuxquestions.org/linux/...ything_With_DD
http://www.linuxquestions.org/questi...ommand-362506/

Person_1873 02-27-2010 08:30 AM

unfortunately if i do this then it destroys my swapfs on that image making it impossible to resume from, i had another idea involving pm hooks, i thought that i may be able to place a hook at the right time just before shutdown that told it to suspend to ram


All times are GMT -5. The time now is 08:49 PM.