Bugzilla – Bug 1182346
Leap 15.2 does not hibernate
Last modified: 2022-02-18 10:03:40 UTC
Hibernated from KDE earlier today without issue, now nothing works. Attempted at command line: >sudo systemctl hibernate Result: Failed to hibernate system via logind: Sleep verb not supported Changes? Earlier today, when hibernating, battery was at 5%. Now it is fully charged. Other than that, no changes in operating condition.
Could you check the output of cat /sys/power/state? Does this contain "disk"? If yes, please try to hibernate manually via echo -n disk > /sys/power/state But, before doing that, please take the current kernel log (the dmesg output), and upload to Bugzilla as well as the output of hwinfo.
Could you check the output of cat /sys/power/state? Does this contain "disk"? freeze mem disk If yes, please try to hibernate manually via echo -n disk > /sys/power/state bash: /sys/power/state: Permission denied But, before doing that, please take the current kernel log (the dmesg output), and upload to Bugzilla as well as the output of hwinfo. dmesg is now empty, I unintentionally emptied it
Created attachment 846200 [details] hwinfo
(In reply to Alex Grasic from comment #2) >> If yes, please try to hibernate manually via > echo -n disk > /sys/power/state > > bash: /sys/power/state: Permission denied Did you do it as root?
I did execute as root
Hm, without the dmesg output, it's almost impossible to debug. Also, the hwinfo output looks somehow truncated. Is the problem reproducible after a clean reboot? If yes, we can track further. In that case, try to boot with no_console_suspend boot option so that we get some more messages.
Let me update my last comment, I ran as sudo and gave me that. I went back and ran as root and session became unstable and had to logout. I got a message about insufficient memory or something along those lines. Now that I had logged out and back in, I am able once again hibernate. A few operations in, ie. a VM run and a few documents open and again, hibernate does not succeed. DMESG below... [101325.106977] lp: driver loaded but no devices found [101325.121273] ppdev: user-space parallel port driver [101325.557159] lp: driver loaded but no devices found [101325.743580] st: Version 20160209, fixed bufsize 32768, s/g segs 256 [101393.226632] lp: driver loaded but no devices found [101393.655488] lp: driver loaded but no devices found [101554.672035] lp: driver loaded but no devices found [101555.174919] lp: driver loaded but no devices found [101628.436087] lp: driver loaded but no devices found [101628.873424] lp: driver loaded but no devices found [101759.091466] lp: driver loaded but no devices found [101759.524184] lp: driver loaded but no devices found [101812.250855] lp: driver loaded but no devices found [101812.713422] lp: driver loaded but no devices found [102794.093253] PM: hibernation entry [102794.998573] Filesystems sync: 0.902 seconds [102794.998581] Freezing user space processes ... (elapsed 0.004 seconds) done. [102795.003362] OOM killer disabled. [102795.003726] PM: Marking nosave pages: [mem 0x00000000-0x00000fff] [102795.003731] PM: Marking nosave pages: [mem 0x00058000-0x00058fff] [102795.003735] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff] [102795.003748] PM: Marking nosave pages: [mem 0x783b4000-0x783b4fff] [102795.003752] PM: Marking nosave pages: [mem 0x783c0000-0x783c1fff] [102795.003756] PM: Marking nosave pages: [mem 0x783d1000-0x783d1fff] [102795.003760] PM: Marking nosave pages: [mem 0x7a3ec000-0x7a416fff] [102795.003768] PM: Marking nosave pages: [mem 0x7a473000-0x7ac22fff] [102795.003942] PM: Marking nosave pages: [mem 0x86c3a000-0x87ffdfff] [102795.004450] PM: Marking nosave pages: [mem 0x87fff000-0xffffffff] [102795.013812] PM: Basic memory bitmaps created [102795.015518] PM: Preallocating image memory... done (allocated 776796 pages) [102822.809197] PM: Allocated 3107184 kbytes in 27.79 seconds (111.80 MB/s) [102822.809200] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. [102822.812043] printk: Suspending console(s) (use no_console_suspend to debug) [102822.812629] wlan0: deauthenticating from 64:6e:ea:8f:f9:bd by local choice (Reason: 3=DEAUTH_LEAVING) [102823.231774] ACPI: EC: interrupt blocked [102823.233417] ACPI: Preparing to enter system sleep state S4 [102823.234352] ACPI: EC: event blocked [102823.234353] ACPI: EC: EC stopped [102823.234353] PM: Saving platform NVS memory [102823.239271] Disabling non-boot CPUs ... [102823.239530] IRQ 126: no longer affine to CPU1 [102823.240543] smpboot: CPU 1 is now offline [102823.241070] IRQ 129: no longer affine to CPU2 [102823.242138] smpboot: CPU 2 is now offline [102823.242761] IRQ 122: no longer affine to CPU3 [102823.242763] IRQ 125: no longer affine to CPU3 [102823.242768] IRQ 128: no longer affine to CPU3 [102823.243769] smpboot: CPU 3 is now offline [102823.245285] PM: Creating hibernation image: [102823.401799] PM: Need to copy 770014 pages [102823.401802] PM: Normal pages needed: 770014 + 1024, available pages: 1299302 [102824.074089] PM: Hibernation image created (770014 pages copied) [102823.245678] PM: Restoring platform NVS memory [102823.247176] ACPI: EC: EC started [102823.247935] Enabling non-boot CPUs ... [102823.247973] x86: Booting SMP configuration: [102823.247974] smpboot: Booting Node 0 Processor 1 APIC 0x2 [102823.250765] CPU1 is up [102823.250872] smpboot: Booting Node 0 Processor 2 APIC 0x1 [102823.254522] CPU2 is up [102823.254626] smpboot: Booting Node 0 Processor 3 APIC 0x3 [102823.257889] CPU3 is up [102823.262440] ACPI: Waking up from system sleep state S4 [102823.295426] ACPI: EC: interrupt unblocked [102823.335339] ACPI: EC: event unblocked [102823.592481] r8169 0000:02:00.0 p4p2: Link is Down [102823.659307] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [102823.659400] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [102823.661782] ata1.00: configured for UDMA/133 [102823.663625] ata2.00: configured for UDMA/133 [102824.049010] PM: Using 3 thread(s) for compression [102824.049016] PM: Compressing and saving image data (771518 pages)... [102824.049055] PM: Image saving progress: 0% [102824.117513] PM: Wrote 3086072 kbytes in 0.06 seconds (51434.53 MB/s) [102824.643807] PM: Basic memory bitmaps freed [102824.643824] OOM killer enabled. [102824.643826] Restarting tasks ... done. [102824.727148] PM: hibernation exit [102921.522086] wlan0: authenticate with 64:6e:ea:8f:f9:bd [102921.524592] wlan0: send auth to 64:6e:ea:8f:f9:bd (try 1/3) [102921.526872] wlan0: authenticated [102921.530894] wlan0: associate with 64:6e:ea:8f:f9:bd (try 1/3) [102921.534799] wlan0: RX AssocResp from 64:6e:ea:8f:f9:bd (capab=0x1411 status=0 aid=8) [102921.542036] wlan0: associated [103332.467672] wlan0: deauthenticating from 64:6e:ea:8f:f9:bd by local choice (Reason: 3=DEAUTH_LEAVING) [103340.716300] broken atomic modeset userspace detected, disabling atomic [103412.282120] wlan0: authenticate with 64:6e:ea:8f:f9:bd [103412.288055] wlan0: send auth to 64:6e:ea:8f:f9:bd (try 1/3) [103412.291436] wlan0: authenticated [103412.295742] wlan0: associate with 64:6e:ea:8f:f9:bd (try 1/3) [103412.299752] wlan0: RX AssocResp from 64:6e:ea:8f:f9:bd (capab=0x1411 status=0 aid=9) [103412.301611] wlan0: associated [103412.336916] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [103596.958759] PM: PM: Tried to create trampoline again [103596.958767] PM: hibernation entry [103597.934353] Filesystems sync: 0.790 seconds [103597.934360] Freezing user space processes ... (elapsed 0.004 seconds) done. [103597.938498] OOM killer disabled. [103597.938806] PM: Marking nosave pages: [mem 0x00000000-0x00000fff] [103597.938812] PM: Marking nosave pages: [mem 0x00058000-0x00058fff] [103597.938816] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff] [103597.938828] PM: Marking nosave pages: [mem 0x783b4000-0x783b4fff] [103597.938832] PM: Marking nosave pages: [mem 0x783c0000-0x783c1fff] [103597.938836] PM: Marking nosave pages: [mem 0x783d1000-0x783d1fff] [103597.938840] PM: Marking nosave pages: [mem 0x7a3ec000-0x7a416fff] [103597.938847] PM: Marking nosave pages: [mem 0x7a473000-0x7ac22fff] [103597.939020] PM: Marking nosave pages: [mem 0x86c3a000-0x87ffdfff] [103597.939431] PM: Marking nosave pages: [mem 0x87fff000-0xffffffff] [103597.949467] PM: Basic memory bitmaps created [103597.950927] PM: Preallocating image memory... done (allocated 664758 pages) [103604.386469] PM: Allocated 2659032 kbytes in 6.43 seconds (413.53 MB/s) [103604.386469] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [103604.388353] printk: Suspending console(s) (use no_console_suspend to debug) [103604.388895] wlan0: deauthenticating from 64:6e:ea:8f:f9:bd by local choice (Reason: 3=DEAUTH_LEAVING) [103604.804967] ACPI: EC: interrupt blocked [103604.806872] ACPI: Preparing to enter system sleep state S4 [103604.809282] ACPI: EC: event blocked [103604.809284] ACPI: EC: EC stopped [103604.809285] PM: Saving platform NVS memory [103604.814901] Disabling non-boot CPUs ... [103604.815160] IRQ 126: no longer affine to CPU1 [103604.816169] smpboot: CPU 1 is now offline [103604.821041] smpboot: CPU 2 is now offline [103604.822964] IRQ 122: no longer affine to CPU3 [103604.822974] IRQ 123: no longer affine to CPU3 [103604.822992] IRQ 128: no longer affine to CPU3 [103604.824050] smpboot: CPU 3 is now offline [103604.826409] PM: Creating hibernation image: [103604.966983] PM: Need to copy 652127 pages [103604.966985] PM: Normal pages needed: 652127 + 1024, available pages: 1417192 [103604.826809] PM: Restoring platform NVS memory [103604.828738] ACPI: EC: EC started [103604.829565] Enabling non-boot CPUs ... [103604.829617] x86: Booting SMP configuration: [103604.829619] smpboot: Booting Node 0 Processor 1 APIC 0x2 [103604.830725] CPU1 is up [103604.830762] smpboot: Booting Node 0 Processor 2 APIC 0x1 [103604.831904] CPU2 is up [103604.831952] smpboot: Booting Node 0 Processor 3 APIC 0x3 [103604.832888] CPU3 is up [103604.836556] ACPI: Waking up from system sleep state S4 [103604.877865] ACPI: EC: interrupt unblocked [103605.015638] usb usb1: root hub lost power or was reset [103605.015639] usb usb2: root hub lost power or was reset [103605.015645] ACPI: EC: event unblocked [103605.025719] sd 0:0:0:0: [sda] Starting disk [103605.341357] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [103605.341385] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [103605.343002] ata1.00: configured for UDMA/133 [103605.345598] ata2.00: configured for UDMA/133 [103605.373724] usb 1-3: reset full-speed USB device number 2 using xhci_hcd [103605.649915] usb 1-8: reset full-speed USB device number 5 using xhci_hcd [103605.925780] usb 1-6: reset high-speed USB device number 4 using xhci_hcd [103606.201985] usb 1-5: reset high-speed USB device number 3 using xhci_hcd [103606.397425] PM: PM: Trampoline freed [103606.397494] PM: Basic memory bitmaps freed [103606.397507] OOM killer enabled. [103606.397509] Restarting tasks ... done. [103606.852532] PM: hibernation exit [103606.991105] Bluetooth: hci0: read Intel version: 3707100100012d0d00 [103606.991119] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq [103607.163072] Bluetooth: hci0: unexpected event for opcode 0xfc2f [103607.178109] Bluetooth: hci0: Intel firmware patch completed and activated [103651.216183] RTL8208 Fast Ethernet r8169-200:00: attached PHY driver [RTL8208 Fast Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE) [103651.482757] r8169 0000:02:00.0 p4p2: Link is Down [103663.836853] wlan0: authenticate with 64:6e:ea:8f:f9:bd [103663.843785] wlan0: send auth to 64:6e:ea:8f:f9:bd (try 1/3) [103663.848273] wlan0: authenticated [103663.853094] wlan0: associate with 64:6e:ea:8f:f9:bd (try 1/3) [103663.857050] wlan0: RX AssocResp from 64:6e:ea:8f:f9:bd (capab=0x1411 status=0 aid=9) [103663.859713] wlan0: associated [103663.876181] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
(In reply to Alex Grasic from comment #7) > Let me update my last comment, I ran as sudo and gave me that. That explains. With sudo, the shell redirection is done still as a normal user, hence it didn't work. > I went back and ran as root and session became unstable and had to logout. I > got a message about insufficient memory or something along those lines. > > Now that I had logged out and back in, I am able once again hibernate. A few > operations in, ie. a VM run and a few documents open and again, hibernate > does not succeed. Might it be rather the lack of the swap space? The hibernation image is stored in the swap partition as default, and if the swap is already used for many processes, there can be no space left. Or some other reasons, but unfortunately, it's not shown in the log because the output is suppressed. It appears only when you boot with no_console_suspend option.
(In reply to Takashi Iwai from comment #8) > > Now that I had logged out and back in, I am able once again hibernate. A few > > operations in, ie. a VM run and a few documents open and again, hibernate > > does not succeed. > > Might it be rather the lack of the swap space? The hibernation image is > stored in the swap partition as default, and if the swap is already used for > many processes, there can be no space left. Is there a way to change that default? It seems a bit futile to have a hibernate function if it cannot operate most of the time. I regularly have situations where I cannot hibernate and if this is the cause, there needs to be a workaround, for instance, having the image stored elsewhere. > Or some other reasons, but unfortunately, it's not shown in the log because > the output is suppressed. It appears only when you boot with > no_console_suspend option. I will perform a reboot and try to reproduce to confirm the suspicion of a lack of swap space.
(In reply to Alex Grasic from comment #9) > (In reply to Takashi Iwai from comment #8) > > > Now that I had logged out and back in, I am able once again hibernate. A few > > > operations in, ie. a VM run and a few documents open and again, hibernate > > > does not succeed. > > > > Might it be rather the lack of the swap space? The hibernation image is > > stored in the swap partition as default, and if the swap is already used for > > many processes, there can be no space left. > > Is there a way to change that default? It seems a bit futile to have a > hibernate function if it cannot operate most of the time. I regularly have > situations where I cannot hibernate and if this is the cause, there needs to > be a workaround, for instance, having the image stored elsewhere. You can change the size of swap partition (repartitioning, but it requires some effort), or you can hibernate to a file if I am not mistaken. > > Or some other reasons, but unfortunately, it's not shown in the log because > > the output is suppressed. It appears only when you boot with > > no_console_suspend option. > > I will perform a reboot and try to reproduce to confirm the suspicion of a > lack of swap space. Has it been confirmed then?