[Bug 597595] New: System fails to hibernate
http://bugzilla.novell.com/show_bug.cgi?id=597595 http://bugzilla.novell.com/show_bug.cgi?id=597595#c0 Summary: System fails to hibernate Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 5 Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- This is a compaq presario CQ61-330SS (SMOLT profile http://www.smolts.org/client/show/pub_2c303e01-12a6-44f6-8128-f8df1d7ce080) oS is 11.3 M5 i586 as x64 has been reported to be broken and not installable. System hibernates to disk fine in 11.2, but fails completely and silenty (using pm-hibernate) in 11.3.M5 /var/log/pm-suspend.log contains this: /usr/lib/pm-utils/sleep.d/99Zgrub hibernate hibernate:INFO: running prepare-grub Skipping grub entry #1, because it has the noresume option running kernel is grub menu entry 0 (vmlinuz-2.6.34-rc3-3-desktop) preparing boot-loader: selecting entry 0, kernel /boot/2.6.34-rc3-3-desktop grub-once: running '/usr/sbin/grubonce 0' Using entry #0: Desktop -- openSUSE 11.3 - 2.6.34-rc3-3 time needed for sync: 0.9 seconds, time needed for grub: 0.0 seconds. success. /usr/lib/pm-utils/sleep.d/99info hibernate hibernate:not applicable. /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:success. Sun Apr 18 03:56:15 CEST 2010: performing hibernate s2disk: Could not use the resume device (try swapon -a). Reason: No such device Sun Apr 18 03:56:15 CEST 2010: Awake. Sun Apr 18 03:56:15 CEST 2010: Running hooks for thaw /usr/lib/pm-utils/sleep.d/99video thaw hibernate:success. output of swapon -s: Minas-Anor:~ # swapon -s Filename Type Size Used Priority /dev/sda5 partition 6289412 0 -1 Minas-Anor:~ # message log contains this look at the ioctl line: Apr 18 03:55:58 Minas-Anor console-kit-daemon[2215]: WARNING: Unable to open directory /etc/ConsoleKit/run-seat.d: Error opening directory '/etc/ConsoleKit/run-seat.d': No such file or directory Apr 18 03:56:00 Minas-Anor console-kit-daemon[2215]: WARNING: Unable to open directory /etc/ConsoleKit/run-seat.d: Error opening directory '/etc/ConsoleKit/run-seat.d': No such file or directory Apr 18 03:56:05 Minas-Anor console-kit-daemon[2215]: WARNING: Unable to open directory /etc/ConsoleKit/run-seat.d: Error opening directory '/etc/ConsoleKit/run-seat.d': No such file or directory Apr 18 03:56:15 Minas-Anor kernel: [ 701.832040] PM: Marking nosave pages: 0000000000002000 - 0000000000010000 Apr 18 03:56:15 Minas-Anor kernel: [ 701.832044] PM: Marking nosave pages: 000000000009e000 - 0000000000100000 Apr 18 03:56:15 Minas-Anor kernel: [ 701.832048] PM: Basic memory bitmaps created Apr 18 03:56:15 Minas-Anor kernel: [ 701.832073] snapshot_ioctl: ioctl '4004330a' is deprecated and will be removed soon, update your suspend-to-disk utilities Apr 18 03:56:15 Minas-Anor kernel: [ 701.856816] PM: Basic memory bitmaps freed Apr 18 03:56:20 Minas-Anor console-kit-daemon[2215]: WARNING: Unable to open directory /etc/ConsoleKit/run-seat.d: Error opening directory '/etc/ConsoleKit/run-seat.d': No such file or directory I also tried suspend to ram, it chrashes (locks hard) the machine. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c1
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c2
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c3
Carlos Robinson
Is s2disk working?
No. Minas-Anor:~ # s2disk s2disk: Could not stat the resume device file. Reason: No such file or directory Minas-Anor:~ # cat /var/lib/s2disk.conf resume device = /dev/sda5 image size = 1842658099 # parameters taken from /etc/suspend.conf: splash = n Minas-Anor:~ # file -s /dev/sda5 /dev/sda5: Linux/i386 swap file (new style) 1 (4K pages) size 1572353 pages Label Swap Minas-Anor:~ # -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c4
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c5
--- Comment #5 from Carlos Robinson
please try s2disk --config /var/lib/s2disk.conf, this is what is called from pm-utils
Same thing, does not work: Minas-Anor:~ # s2disk --config /var/lib/s2disk.conf s2disk: Could not use the resume device (try swapon -a). Reason: No such device Minas-Anor:~ # swapon -s Filename Type Size Used Priority /dev/sda5 partition 6289412 0 -1 Minas-Anor:~ # swapon -a Minas-Anor:~ # swapon -s Filename Type Size Used Priority /dev/sda5 partition 6289412 0 -1 Minas-Anor:~ # s2disk --config /var/lib/s2disk.conf s2disk: Could not use the resume device (try swapon -a). Reason: No such device Minas-Anor:~ # Minas-Anor:~ # cat /var/lib/s2disk.conf resume device = /dev/sda5 image size = 1842658099 # parameters taken from /etc/suspend.conf: splash = n Minas-Anor:~ # I believe this was already in the text of the original report. Now please notice these messages in the log about the ioctl call being deprecated and update the utilities, could be related to this problem: :-? Apr 22 20:50:05 Minas-Anor kernel: [ 476.228897] PM: Marking nosave pages: 0000000000002000 - 0000000000010000 Apr 22 20:50:05 Minas-Anor kernel: [ 476.228902] PM: Marking nosave pages: 000000000009e000 - 0000000000100000 Apr 22 20:50:05 Minas-Anor kernel: [ 476.228910] PM: Basic memory bitmaps created Apr 22 20:50:05 Minas-Anor kernel: [ 476.228936] snapshot_ioctl: ioctl '4004330a' is deprecated and will be removed soon, update your suspend-to-disk utilities Apr 22 20:50:05 Minas-Anor kernel: [ 476.254503] PM: Basic memory bitmaps freed Apr 22 20:50:51 Minas-Anor kernel: [ 522.142398] PM: Marking nosave pages: 0000000000002000 - 0000000000010000 Apr 22 20:50:51 Minas-Anor kernel: [ 522.142401] PM: Marking nosave pages: 000000000009e000 - 0000000000100000 Apr 22 20:50:51 Minas-Anor kernel: [ 522.142406] PM: Basic memory bitmaps created Apr 22 20:50:51 Minas-Anor kernel: [ 522.142424] snapshot_ioctl: ioctl '4004330a' is deprecated and will be removed soon, update your suspend-to-disk utilities Apr 22 20:50:51 Minas-Anor kernel: [ 522.167200] PM: Basic memory bitmaps freed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c6
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c7
Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c8
--- Comment #8 from Carlos Robinson
Can you regenerate your swap partition? Something like
$ swapoff -a $ mkswap /dev/sda5 #replace with your swap partition $ swapon -a
Any change?
I will try that in a few hours. Meanwhile, you should know that that machine has 11.2 on another partition, and it hibernates sucesfully using the same swap partition, several times a day. I very much doubt the partition is bad. I also intend to download and install M6 x64 and install it, over the current factory partition, that currently has M5 -32 bit, this weekend. If you want me to run more tests in the 32 bit install you will have to speak up before Friday evening ;-) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c9
--- Comment #9 from Carlos Robinson
Can you regenerate your swap partition? Something like
$ swapoff -a $ mkswap /dev/sda5 #replace with your swap partition $ swapon -a
Any change?
No, as I expected. Minas-Anor:~ # swapon -s Filename Type Size Used Priority /dev/sda5 partition 6289412 0 -1 Minas-Anor:~ # swapoff /dev/sda5 Minas-Anor:~ # mkswap /dev/sda5 Setting up swapspace version 1, size = 6289412 KiB no label, UUID=8b85d412-1c6c-44b4-ba1f-3ffbe9f3e1e5 Minas-Anor:~ # swapon -a swapon: cannot find the device for LABEL=Swap Minas-Anor:~ # mkswap --help Usage: mkswap [-c] [-pPAGESZ] [-L label] [-U UUID] /dev/name [blocks] Minas-Anor:~ # mkswap -L Swap /dev/sda5 Setting up swapspace version 1, size = 6289412 KiB LABEL=Swap, UUID=675034b5-72ee-4db7-b8a4-d3cb197f9aad Minas-Anor:~ # swapon -a Minas-Anor:~ # s2disk s2disk: Could not stat the resume device file. Reason: No such file or directory Minas-Anor:~ # Minas-Anor:~ # s2disk --config /var/lib/s2disk.conf s2disk: Could not use the resume device (try swapon -a). Reason: No such device Minas-Anor:~ # -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c10
Carlos Robinson
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c11
--- Comment #11 from Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c12
--- Comment #12 from Carlos Robinson
As a workaround for you to get hibernation to work, you could try to set /usr/lib/pm-utils/defaults:SLEEP_MODULE="kernel".
Same thing, no change. s2disk fails with same message, and closing the lid in gnome crashes (locks) the machine, with text mode messages (I will attempt to attach a photo in a moment). If I close the lid while in text mode machine does not suspend to ram, it simply powers off the backlight, it seems (power led remains on, wifi led blinks). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c13
--- Comment #13 from Carlos Robinson
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c14
Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c15
--- Comment #15 from Carlos Robinson
Rafael, any idea why the swap partition is considered broken?
In case it matters, fstab uses labels for swap (and grub, afaik). But error messages refers to std. device name. Can anything be done to increase verbosity of logs? Kernel log is already at 7.
Carlos, if you like, please report a separate bug for the LID close issue.
Done. Bug 601462 - Laptop locks solid on close lid event -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c16
--- Comment #16 from Rafael Wysocki
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c17
--- Comment #17 from Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c18
Rafael Wysocki
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c19
Carlos Robinson
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c20
--- Comment #20 from Carlos Robinson
The one in milestone 6. Let me see... vmlinuz-2.6.34-rc3-3-desktop
Oops. I should have said "M5", not "6".
I have about finished downloading the M6 x64 DVD (Build0577), I intend to install that over the current M5 install, to change arch (32 -> 64), unless you object (ie, unless you want me to run some tests).
M6-x64 hibernates fine, it seems. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c21
--- Comment #21 from Carlos Robinson
M6-x64 hibernates fine, it seems.
Just to mention that X display jumped from F7 to F8 after hbernation. F7 showed some suspend text -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=597595
http://bugzilla.novell.com/show_bug.cgi?id=597595#c22
--- Comment #22 from Rafael Wysocki
(In reply to comment #20)
M6-x64 hibernates fine, it seems.
Just to mention that X display jumped from F7 to F8 after hbernation. F7 showed some suspend text
That's probably because s2disk opens a new VT for printing its and the kernel's messages. I'm not seeing this on my x86-64 test boxes, though. Apart from this inconvenience, does it work correctly after resume? -- Configure bugmail: http://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=597595
https://bugzilla.novell.com/show_bug.cgi?id=597595#c
Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=597595
https://bugzilla.novell.com/show_bug.cgi?id=597595#c23
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=597595
https://bugzilla.novell.com/show_bug.cgi?id=597595#c24
Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=597595
https://bugzilla.novell.com/show_bug.cgi?id=597595#c25
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=597595
https://bugzilla.novell.com/show_bug.cgi?id=597595#c26
Rafael Wysocki
participants (1)
-
bugzilla_noreply@novell.com