[Bug 226115] New: HIBERNATE_METHOD="kernel" does not suspend
https://bugzilla.novell.com/show_bug.cgi?id=226115 Summary: HIBERNATE_METHOD="kernel" does not suspend Product: openSUSE 10.2 Version: RC 5 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Mobile Devices AssignedTo: behlert@novell.com ReportedBy: seife@novell.com QAContact: qa@suse.de CC: lmuelle@novell.com When trying to suspend with HIBERNATE_METHOD=kernel, the machine does not suspend. Instead i get in /var/log/pm-suspend.log: using kernel suspend method ERROR: /sys/power/resume (3:2) disagrees with resume= parameter ($((0x3)):$((0x2))) can not suspend. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fseidel@novell.com, hmacht@novell.com AssignedTo|behlert@novell.com |seife@novell.com Status|NEW |ASSIGNED ------- Comment #1 from seife@novell.com 2006-12-05 09:50 MST ------- Trivial fix: diff -u -r1.1 30s2disk-check --- 30s2disk-check 2006/12/05 16:49:28 1.1 +++ 30s2disk-check 2006/12/05 16:50:00 @@ -53,7 +53,7 @@ return 1 fi X=$(stat -Lc '$((0x%t)):$((0x%T))' $RESUME) - RDEV=$(echo $X) + RDEV=$(eval echo $X) if [ "$DEV" != "$RDEV" ]; then echo "ERROR: /sys/power/resume ($DEV) disagrees with resume= parameter ($RDEV)" echo " can not suspend." -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 ------- Comment #2 from lmuelle@novell.com 2006-12-05 09:51 MST ------- How about using: RESUME=/dev/sda3 stat -Lc '%t:%T' $RESUME instead of the current stat -Lc '$((0x%t)):$((0x%T))' $RESUME Then you do not have to run RDEV=$( eval echo $X) afterwards. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 ------- Comment #3 from seife@novell.com 2006-12-05 10:03 MST ------- f215:~ # mknod sda15 b 8 15 f215:~ # l sda15 brw-r--r-- 1 root root 8, 15 5. Dez 17:57 sda15 f215:~ # stat -Lc '%t:%T' sda15 8:f In the kernel, we have: static ssize_t resume_show(struct subsystem * subsys, char *buf) { return sprintf(buf,"%d:%d\n", MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device)); } so i think that i must convert the hex from the stat to decimal from /sys/power/resume in order to compare it. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 ------- Comment #4 from lmuelle@novell.com 2006-12-05 12:59 MST ------- Then you might use printf instead. RDEV=$( printf "%d:%d" $( stat -Lc '0x%t 0x%T' $RESUME)) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 ------- Comment #5 from seife@novell.com 2006-12-06 04:04 MST ------- That's good for future fixes, but we used "eval echo" in powersaved for quite some time (i just got it wrong during the port to pm-utils), so i'll stick with that for now. Yes, it is trivial, but you never know... :-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 ------- Comment #6 from seife@novell.com 2006-12-20 10:40 MST ------- We will push a online update because of bug 223722 which will also fix this. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |230005 nThis| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO|230005 | nThis| | Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #7 from seife@novell.com 2006-12-20 10:58 MST ------- The online update will fix this. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |230005 nThis| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=226115 behlert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com