Difference between revisions of "Talk:Hibernate-script"

From ArchWiki
Jump to: navigation, search
(Interacting with HAL)
(Clear old talk)
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Cool that somebody started an article on that. Just by coincidence I also made my experience with Suspend2 tonight. I will add details I discovered soon (NVidia stuff, Sound stuff).
Are you sure about the need of the acpi package? I don't even have it and my system suspends just fine. The powersave package has a dep on acpi, not the hibernate scripts though, AFAIK.
:ACPI is definitely not needed. You can run hibernate as a user via sudo. But powersaved >= 1.12 supports hibernate, so you could do it with kpowersave and/or gnome-power-whatever. [[User:Brain0|brain0]] 04:55, 7 June 2006 (EDT)
As for the possibility of executing the script as a user: Couldn't the permissions of the hibernate script be changed so that members of the "power" group (seems to exist by default) can execute it.
Anyone tried out Gnome Power Manager already - does it play nice with the hibernate scripts?
Has anyone tried suspend to disk with encryption e.g. as described [http://www.tuxonice.net/HOWTO-7.html#ss7.3 here]? Are there other ways to encrypt the suspend image?
== Outdated ==
package kernel26-suspend2 was removed from the official repo.
(see here http://bbs.archlinux.org/viewtopic.php?id=38578 )
Pm-utils does now allow specifying the core you want to use. [[User:Cleophas|Cleophas]] 22:12, 27 February 2009 (EST)
Stroke out the outdated parts. Should be rmoved IMHO. [[User:kujub|kujub]] 2009-07-22 09:25 +0200
:do it. [[User:NTia89|nTia89]] 05:31, 22 July 2009 (EDT)
::done! [[User:kujub|kujub]] 2009-07-22 22:25 +0200
== ProcSetting no longer supported? ==
I added
ProcSetting extra_pages_allowance 0
to my hibernate/common.conf. When I then run "hibernate", I get:
hibernate: Unknown configuration option (procsetting)
Using "Hibernate Script 1.99". [[User:MSchmarck|MSchmarck]] 14:39, 28 December 2008 (EST)
== Interacting with HAL ==
Hello, I just edited the "Interacting with HAL" section to hopefully show the simplest way to make HAL use hibernate-script, so that desktop power managers will work.<br>
The old solution may not work now that policykit is being used, but I left it in. [[User:Jperr|Jperry]] 13:30, 31 March 2009 (EST)
Editing /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux doesn't work for me -- even when I replaced the whole "if [ -x /usr/sbin/pm-hibernate ] ... fi" with "touch /home/me/somefile.txt" pressing the Hibernate button in Gnome's Shutdown dialog still triggered hibernation (using pm-hibernate). I did restart HAL after editing that file. --[[User:Francisc1701|Francisc1701]] 10:57, 10 March 2010 (EST)
== grub modification ==
Perhaps it would be worth mentioning that grub configuration needs to modified as well. It requires resume=/your/root/partition to grub menu as a boot option
== Dropping Disk Caches ==
Adding something like this to common.conf is probably a better idea than writing the command yourself every time:<br>
# Drop disk caches
OnSuspend 00 sync; echo 3 > /proc/sys/vm/drop_caches

Revision as of 10:16, 22 January 2012