Pemasu - создатель серии Dpup Exprimo, также он скомпилировал ядро для Saluki, в блоге Барри рассказал, как работает hibernate в Puppy.
Posted on 19 Feb 2012, 17:31 by pemasu
TuxonIce
TuxonIce is just hibernation functionality. It is already in kernels, when you enable it. In my kernels you can hibernate already. No need for TuxonIce. You just need to give kernel boot time parameter: resume=/dev/sdXX
But...hibernating writes to the swap partition and locks it. It is not in use until you boot again that hibernated Puppy. When you hibernate, you can power off computer and you need to boot the hibernated puppy until swap is usable.
Also hibernating ie saving to the swap the running snapshot of puppy is slow process. It is much faster to save your stuff and be happy. Puppy boots much faster than loading hibernated puppy.
Of course if you dont want to create savefile, you can install pets, open documents and do what you want....hibernate...shut down comp....and boot the hibernated puppy which starts from where you left..continue to where you left.
It works....I have used it several times....
But no need for TuxOnIce. Just compile kernel with hibernating enabled.
Delete
Posted on 19 Feb 2012, 17:46 by pemasu
Hibernate with acpitool -S
Sorry...I forgot to tell how you hibernate. Use acpitool: #acpitool -S
It launches the saving to the swap partition and shuts down the computer, real shutdown, power off.
And you need to have that resume=/dev/sdXX kernel boot parameter in kernel row to have target which resumed partition will be writed back. resume=/dev/sdXX need to be pointed to your swap partition.
Fluppies, all my builds and Saluki has natively support in kernel for hibernating and they have acpitool preinstalled.
Have fun !
Говоря коротко, нужно включить опцию в ядре и эта опция включена в Dpup Exprimo и Saluki. Для гибернации используется команда acpitool: #acpitool -S
Также в строке загрузчика должна быть запись, указывающая на раздел swap:
resume=/dev/sdXX. Интересно, но у меня не срабатывает спящий режим, когда я нажимаю на кнопку в диалоговом окне при выключении. Просто ничего не происходит. Но, когда ввожу в терминале acpitool -S происходит и выключение и восстановление. Причём я делал это без сейв-файла и так "заснул и проснулся" несколько раз. Неплохо бы если бы эта опция стала доступна и в других Puppy (Slacko, Wary).
http://bkhome.org/blog/?viewDetailed=02697