FS#30050 - [pm-utils] Change /usr/lib/pm-utils/module.d/tuxonice line 33!
Attached to Project:
Arch Linux
Opened by Federico (nierro) - Monday, 28 May 2012, 18:17 GMT
Last edited by Allan McRae (Allan) - Saturday, 02 June 2012, 11:19 GMT
Opened by Federico (nierro) - Monday, 28 May 2012, 18:17 GMT
Last edited by Allan McRae (Allan) - Saturday, 02 June 2012, 11:19 GMT
|
Details
Description: It is not a bug, probably.
But as now, hibernating with tuxonice and pm-utils, doesn't seem to read /etc/hibernate/common.conf and other configs made here. Changing that line to "/usr/sbin/hibernate" simply, and putting SLEEP_MODULE="tuxonice" in /etc/pm/config.d/config makes tuxonice the default sleep module for pm-utils, and it respects all the customizations, as written here http://lists.tuxonice.net/pipermail/tuxonice-users/2010-April/000310.html . |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 02 June 2012, 11:19 GMT
Reason for closing: Not a bug
Additional comments about closing: "Description: It is not a bug, probably."
Saturday, 02 June 2012, 11:19 GMT
Reason for closing: Not a bug
Additional comments about closing: "Description: It is not a bug, probably."
These are my /etc/pm/config.d/00sleep_module : SLEEP_MODULE="tuxonice uswsusp kernel"
And this is my /usr/lib/pm-utils/module.d/hibernate : http://pastebin.com/nV6X3Cm4 .
Tell me if i'm doing something wrong, or if it could help improving tuxonice user experience with pm-utils!
EDIT: as soon as i tested it, i can say everything works ok, scriplets are executed too, perfectly. No errors.
So i must report this to hibernate-script mantainer? Thanks, and sorry again!
Pm-utils should not by default depend on hibernate-script. It's designed to work on its own.
I only think that file ( /usr/lib/pm-utils/module.d/tuxonice) , needs tuxonice patch. But everyone who uses tuxonice patch, uses also hibernate-script.
So i thought there wasn't anything wrong in changing that line to use hibernate-script.
But may be i'm not right.
Btw, i asked hibernate-script maintainer on aur to do that change, so may be there will be better integration between pm-utils and tuxonice (+ hibernate-script).
Without much investigation, it seems if I added another file to /usr/lib/pm-utils/module.d the user could then set SLEEP_MODULE in /etc/pm/config.d/whatever? Doesn't seem to offer much advantage though, AFAIK if using pm-utils to hibernate the user just shouldn't use hibernate.conf and hibernate-script at all.
@Federico, please try adding another sleep module as mentioned in the previous paragraph, if that works I'll just include it in hibernate-script, not too difficult.
I use pm-utils and hibernate-script. The advantages are that without using hibernate-script, leaving /usr/lib/pm-utils/module.d/tuxonice untouched, i have to set all the configs i need for tuxonice with lots of scripts (or with only one script doing lots of things) and put it in /etc/pm/sleep.d/.
But why do that when i have installed hibernate-script that allows the user to have lots of configs ready to work?
And often it is not so easy to find the right file to echo something, for example to disable some tuxonice features or something else.
So i'd love to have a /usr/lib/pm-utils/module.d/hibernate (for example) and a /etc/pm/config.d/hibernate_module (that contains may be SLEEP_MODULE="hibernate tuxonice kernel") provided by your package.
I think this could help lots of tuxonice users and improve their experience.
Anyway, thanks, i'll try soon and i'll tell you.
What i did:
cp /usr/lib/pm-utils/module.d/tuxonice /usr/lib/pm-utils/module.d/hibernate
mv /usr/lib/pm-utils/module.d/tuxonice /usr/lib/pm-utils/
changed SLEEP_MODULE array in "hibernate tuxonice uswsusp kernel".
It works.