[Bug 665276] New: Suspend to disk fails because of wrong IMAGE_SIZE calculated in /usr/lib/pm-utils/sleep.d/30s2disk-check
https://bugzilla.novell.com/show_bug.cgi?id=665276 https://bugzilla.novell.com/show_bug.cgi?id=665276#c0 Summary: Suspend to disk fails because of wrong IMAGE_SIZE calculated in /usr/lib/pm-utils/sleep.d/30s2disk-check Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i386 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vy@samiznaetekogo.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 Suspend to disk fails because of wrong IMAGE_SIZE calculated in /usr/lib/pm-utils/sleep.d/30s2disk-check /usr/lib/pm-utils/sleep.d/30s2disk-check line 13: IMAGE_SIZE="`awk '/^MemTotal:/ { print int($2*1024*.45) }' /proc/meminfo`" /proc/meminfo returns MemTotal value already in kilobytes, so resulting IMAGE_SIZE gets too big to fit in swap area. Also multiplying by .45 resulting in too small image size. Smaller IMAGE_SIZE should work, but actually it doesn't. Fixed by changing that line to: IMAGE_SIZE="`awk '/^MemTotal:/ { print int($2) }' /proc/meminfo`" Reproducible: Always Steps to Reproduce: 1. Click "Hibernate" Actual Results: Hibernation process fails, computer returns to running state. Expected Results: Hibernation successfully completed, computer shuts off. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c1
--- Comment #1 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c2
--- Comment #2 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c3
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c4
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c5
Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c6
--- Comment #6 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c7
--- Comment #7 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c8
--- Comment #8 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c9
Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c10
--- Comment #10 from Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c11
--- Comment #11 from Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c12
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c
Vojta Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c13
Vojta Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c14
--- Comment #14 from Dino E
https://bugzilla.novell.com/show_bug.cgi?id=665276
https://bugzilla.novell.com/show_bug.cgi?id=665276#c15
--- Comment #15 from Vojta Dziewięcki
participants (1)
-
bugzilla_noreply@novell.com