You are not logged in.

#1 2012-05-28 12:30:36

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

[SOLVED] Tuxonice without hibernate-script?

It is possible? Tuxonice with pm-utils, without hibernate-script...
What features i'm gonna lost doing that?
Has anyone of you tried it? I see in the wiki page that in pm-utils i can choose my sleep module by adding : SLEEP_MODULE="tuxonice uswsusp kernel" in /etc/pm/config.d/config.
So i thought i could uninstall hibernate-script, am i right?
Thanks!
EDIT: looking better i think yes, it can be done. Because if i run pm-hibernate it uses tuxonice but no scriplets are used from hibernate-script. Hibernate-script is useful only if i use "sudo hibernate", to suspend to disk, i guess.
Please, if anyone tried it, and can confirm that, i'll remove hibernate-script! Thanks again!

Last edited by nierro (2012-05-28 19:39:26)

Offline

#2 2012-05-28 19:39:03

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] Tuxonice without hibernate-script?

I finally found out how to use pm-utils and tuxonice together!! That's wonderful! I opened a feature request here:  https://bugs.archlinux.org/task/30050 .
Simply find in  /usr/lib/pm-utils/module.d/tuxonice, line 33, change this line:

echo anything > "${TUXONICE_LOC}/do_hibernate"

in

/usr/sbin/hibernate

.
I tried also without tuxonice patch, on deafault arch kernel, and kernel hibernation works anyway. Create /etc/pm/config.d/config with SLEEP_MODULE="tuxonice uswsusp kernel".
So, it is really a great improvement in tuxonice and pm-utils, finally.
Hope this can help...and obviously, i won't remove hibernate-script, because now they're useful! big_smile
If you find this useful, please give your vote to the feature request!

Last edited by nierro (2012-05-28 20:03:37)

Offline

Board footer

Powered by FluxBB