Bug#484212: Disable hibernation if swap is on file

2009-02-09 Thread Michael Biebl
Emilio Scalise schrieb:
 That patch is not correct.
 Suspend with a swap file does not work with plain swsusp v1. Using 
 uswsusp hibernating to a swap file is correctly handled. I don't know if 
 tuxonice work or not with swap files.
 

ago,

could you please comment on this?
According to the tuxonice homepage, it supports suspend to a file and I
think Emilio is right, that uswsusp does too.

Do you have any references that suspend-to-file is not supported by
kernel-swsusp?

If so, could you rework the patch (based on 1.2.3 from experimental) and
 also update pm-is-supported, so apps like gnome-power-manager not even
try to suspend in such a case.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#484212: Disable hibernation if swap is on file

2008-08-01 Thread Emilio Scalise

That patch is not correct.
Suspend with a swap file does not work with plain swsusp v1. Using 
uswsusp hibernating to a swap file is correctly handled. I don't know if 
tuxonice work or not with swap files.


Bye,
Emilio



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484212: Disable hibernation if swap is on file

2008-06-03 Thread Michael Biebl

ago wrote:

Package: pm-utils
Version: 1.1.2.2-1


Hi Ago!


If any swap device is on file, hibernation should be disabled. There
were reports of users ending up with a frozen system. It should be a


Do you have any references for this. Bug numbers etc? I'd like to know, 
what the underlying problem is.



matter of going through the swapon -s list. Possible patch:


[..]

Thanks for the patch.

Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#484212: Disable hibernation if swap is on file

2008-06-03 Thread ago
Michael, the bug was submitted together with
https://bugs.launchpad.net/wubi/+bug/224697
You should find more info there.

PS patch patch (the above is not correct)


diff -u pm-utils-1.1.2.2/debian/changelog pm-utils-1.1.2.2/debian/changelog
--- pm-utils-1.1.2.2/debian/changelog
+++ pm-utils-1.1.2.2/debian/changelog
@@ -1,3 +1,9 @@
+pm-utils (1.1.2.2-2) hardy; urgency=low
+
+  * Disable hibernation if swap is on file
+
+ -- Agostino Russo [EMAIL PROTECTED]  Tue, 03 Jun 2008 01:04:09 +0100
+
 pm-utils (1.1.2.2-1) unstable; urgency=low

   * New upstream release.
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/uswsusp
+++ pm-utils-1.1.2.2/pm/module.d/uswsusp
@@ -49,8 +49,10 @@
 {
[ -f /sys/power/disk ]  \
grep -q disk /sys/power/state  \
-   [ -c /dev/snapshot ] 
-   command_exists s2disk   
+   [ -c /dev/snapshot ]  \
+   [ -e /proc/swaps ]  \
+   ! grep -qs /.*[[:space:]]file[[:space:]] /proc/swaps  \
+   command_exists s2disk
 }

 do_hibernate()
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/kernel
+++ pm-utils-1.1.2.2/pm/module.d/kernel
@@ -16,7 +16,11 @@

 check_hibernate()
 {
-   [ -f /sys/power/disk ]  grep -q disk /sys/power/state
+   [ -f /sys/power/disk ]  \
+   grep -q disk /sys/power/state  \
+   [ -e /proc/swaps ]  \
+   ! grep -qs /.*[[:space:]]file[[:space:]] /proc/swaps
+
 }

 do_hibernate()



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484212: Disable hibernation if swap is on file

2008-06-02 Thread ago
Package: pm-utils
Version: 1.1.2.2-1

If any swap device is on file, hibernation should be disabled. There
were reports of users ending up with a frozen system. It should be a
matter of going through the swapon -s list. Possible patch:

diff -u pm-utils-1.1.2.2/debian/changelog pm-utils-1.1.2.2/debian/changelog
--- pm-utils-1.1.2.2/debian/changelog
+++ pm-utils-1.1.2.2/debian/changelog
@@ -1,3 +1,9 @@
+pm-utils (1.1.2.2-2) hardy; urgency=low
+
+  * Disable hibernation if swap is on file
+
+ -- Agostino Russo [EMAIL PROTECTED]  Tue, 03 Jun 2008 01:04:09 +0100
+
 pm-utils (1.1.2.2-1) unstable; urgency=low

   * New upstream release.
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/uswsusp
+++ pm-utils-1.1.2.2/pm/module.d/uswsusp
@@ -49,8 +49,10 @@
 {
[ -f /sys/power/disk ]  \
grep -q disk /sys/power/state  \
-   [ -c /dev/snapshot ] 
-   command_exists s2disk   
+   [ -c /dev/snapshot ]  \
+   [ -e /proc/swaps ]  \
+   grep -qs /.*[[:space:]]file[[:space:]] /proc/swaps  \
+   command_exists s2disk
 }

 do_hibernate()
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/kernel
+++ pm-utils-1.1.2.2/pm/module.d/kernel
@@ -16,7 +16,11 @@

 check_hibernate()
 {
-   [ -f /sys/power/disk ]  grep -q disk /sys/power/state
+   [ -f /sys/power/disk ]  \
+   grep -q disk /sys/power/state  \
+   [ -e /proc/swaps ]  \
+   grep -qs /.*[[:space:]]file[[:space:]] /proc/swaps
+
 }

 do_hibernate()



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]