I can only find specific instructions on how to use a swapfile for btrfs, not swap drive. And can’t seem to find anywhere it is stated that a swap drive is not supported on btrfs.
My hybernation does not work, starting to look into this and since I have a swapdrive setup, I want to use that if I can.
journalctl --boot -1 | sed -n -r "/Starting.+Hibernate/,/Finished.+Hibernate/p"
Jun 27 15:55:39 bednaManjaro systemd[1]: Starting Hibernate...
Jun 27 15:55:39 bednaManjaro systemd-sleep[14552]: Entering sleep state 'hibernate'...
Jun 27 15:55:39 bednaManjaro kernel: PM: hibernation: hibernation entry
Nothing in boot 0.
That seems strange, so choosing Manjaro 6.1 in grub means it will continue from hibernation?
Ummm, I can’t, that’s kinda why I post this question. xD
Edit
The above boot -1 was me pressing “hibernate” in KDE plasma.
And this is from the boot where it actually went into hibernation from being inactive for +40mins:
journalctl --boot -2 | sed -n -r "/Starting.+Hibernate/,/Finished.+Hibernate/p"
Jun 27 14:56:00 bednaManjaro systemd[1]: Starting Hibernate...
Jun 27 14:56:00 bednaManjaro systemd-sleep[8186]: Entering sleep state 'hibernate'...
Jun 27 14:56:00 bednaManjaro kernel: PM: hibernation: hibernation entry
Yeeeeah, I have Gigabyte AND Nvidia, fk me I guess.
I used to have the lm_sensors settings, but opted to let the MB control my fans instead.
Ok, I prob wont solve that by myself so I’ll go for your tutorial and hope that works instead because as of now, I have 38GB sitting NEVER being used, might as well integrate that into my /.
But since you made that tutorial I might as well ask before starting.
Should I remove my swap partition before or after the creation of the new swapfile?
Edit
Don’t worry about “this might destroy your os” or anything, I have, and will take one more backup of the entire drive in filezilla as a worst case scenario fallback.
Well, no, my swap is not really “needed”, only for himernation, otherwise I would just do it like you describe.
But what triggered this was when the hibernation happened in the +40min case, I actually lost some work I had done. So hibernation is the goal here.
Are yo saying changing it into a file would produce the same result as now? Ie hibernation not working?
I mean I can disable hibernation, but I’d rather not since this feature exists.
Correct. There will be no difference. The only difference will be: you use a file instead of a partition.
Please read again what I wrote. I said, it is firmware related and needs adjustment, because some systems don’t follow exactly the specifications, for example. Anyway, I don’t even know what system you have, so sorry.
I’m not sure I understand you though.
I thought you meant I had to set something more in grub or mkinitcpio?
I read through the link you sent but it is above my knowledge, I did check what I understood though, like cpu-microcode, but most of it makes me really scared to touch since I have zero clue what I am doing, like this.
At least here is an example of a working hibernation:
$ journalctl --boot 0 | sed -n -r "/Starting.+Hibernate/,/Finished.+Hibernate/p"
Jun 27 17:14:35 Elitedesk systemd[1]: Starting Hibernate...
Jun 27 17:14:35 Elitedesk systemd-sleep[3140]: Entering sleep state 'hibernate'...
Jun 27 17:14:35 Elitedesk kernel: PM: hibernation: hibernation entry
Jun 27 17:17:09 Elitedesk kernel: Filesystems sync: 1.037 seconds
Jun 27 17:17:09 Elitedesk kernel: Freezing user space processes
Jun 27 17:17:09 Elitedesk kernel: Freezing user space processes completed (elapsed 0.001 seconds)
Jun 27 17:17:09 Elitedesk kernel: OOM killer disabled.
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0x76d1a000-0x76d1afff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0x77504000-0x77504fff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0x96176000-0x961c0fff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0xa672d000-0xa7c0efff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Marking nosave pages: [mem 0xa7c10000-0xffffffff]
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Basic memory bitmaps created
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Preallocating image memory
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Allocated 1697107 pages for snapshot
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Allocated 6788428 kbytes in 1.02 seconds (6655.32 MB/s)
Jun 27 17:17:09 Elitedesk kernel: Freezing remaining freezable tasks
Jun 27 17:17:09 Elitedesk kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Jun 27 17:17:09 Elitedesk kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: interrupt blocked
Jun 27 17:17:09 Elitedesk kernel: ACPI: PM: Preparing to enter system sleep state S4
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: event blocked
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: EC stopped
Jun 27 17:17:09 Elitedesk kernel: ACPI: PM: Saving platform NVS memory
Jun 27 17:17:09 Elitedesk kernel: Disabling non-boot CPUs ...
Jun 27 17:17:09 Elitedesk kernel: smpboot: CPU 1 is now offline
Jun 27 17:17:09 Elitedesk kernel: smpboot: CPU 2 is now offline
Jun 27 17:17:09 Elitedesk kernel: smpboot: CPU 3 is now offline
Jun 27 17:17:09 Elitedesk kernel: smpboot: CPU 4 is now offline
Jun 27 17:17:09 Elitedesk kernel: smpboot: CPU 5 is now offline
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Creating image:
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Need to copy 1661664 pages
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Normal pages needed: 1661664 + 1024, available pages: 6553483
Jun 27 17:17:09 Elitedesk kernel: ACPI: PM: Restoring platform NVS memory
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: EC started
Jun 27 17:17:09 Elitedesk kernel: Enabling non-boot CPUs ...
Jun 27 17:17:09 Elitedesk kernel: x86: Booting SMP configuration:
Jun 27 17:17:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Jun 27 17:17:09 Elitedesk kernel: CPU1 is up
Jun 27 17:17:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
Jun 27 17:17:09 Elitedesk kernel: CPU2 is up
Jun 27 17:17:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
Jun 27 17:17:09 Elitedesk kernel: CPU3 is up
Jun 27 17:17:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 4 APIC 0x8
Jun 27 17:17:09 Elitedesk kernel: CPU4 is up
Jun 27 17:17:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 5 APIC 0xa
Jun 27 17:17:09 Elitedesk kernel: CPU5 is up
Jun 27 17:17:09 Elitedesk kernel: ACPI: PM: Waking up from system sleep state S4
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: interrupt unblocked
Jun 27 17:17:09 Elitedesk kernel: ACPI: EC: event unblocked
Jun 27 17:17:09 Elitedesk kernel: usb usb1: root hub lost power or was reset
Jun 27 17:17:09 Elitedesk kernel: usb usb2: root hub lost power or was reset
Jun 27 17:17:09 Elitedesk kernel: i915 0000:00:02.0: [drm] [ENCODER:111:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
Jun 27 17:17:09 Elitedesk kernel: i915 0000:00:02.0: [drm] [ENCODER:121:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
Jun 27 17:17:09 Elitedesk kernel: nvme nvme0: 6/0/0 default/read/poll queues
Jun 27 17:17:09 Elitedesk kernel: nvme nvme0: Ignoring bogus Namespace Identifiers
Jun 27 17:17:09 Elitedesk kernel: usb 1-5: reset high-speed USB device number 2 using xhci_hcd
Jun 27 17:17:09 Elitedesk kernel: ata2: SATA link down (SStatus 4 SControl 300)
Jun 27 17:17:09 Elitedesk kernel: usb 1-8: reset full-speed USB device number 3 using xhci_hcd
Jun 27 17:17:09 Elitedesk kernel: usb 2-10: reset SuperSpeed USB device number 2 using xhci_hcd
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: azx_get_response timeout, switching to polling mode: last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x0:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: spurious response 0x3:0x2, last cmd=0x205f0015
Jun 27 17:17:09 Elitedesk kernel: e1000e 0000:00:1f.6 eno1: NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: No response from codec, disabling MSI: last cmd=0x20570100
Jun 27 17:17:09 Elitedesk kernel: snd_hda_intel 0000:00:1f.3: azx_get_response timeout, switching to single_cmd mode: last cmd=0x20570100
Jun 27 17:17:09 Elitedesk kernel: usb 2-6: reset SuperSpeed USB device number 3 using xhci_hcd
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: Basic memory bitmaps freed
Jun 27 17:17:09 Elitedesk kernel: OOM killer enabled.
Jun 27 17:17:09 Elitedesk kernel: Restarting tasks ...
Jun 27 17:17:09 Elitedesk kernel: usb usb2-port6: config error
Jun 27 17:17:09 Elitedesk kernel: done.
Jun 27 17:17:09 Elitedesk kernel: PM: hibernation: hibernation exit
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: The canary thread is apparently starving. Taking action.
Jun 27 17:17:09 Elitedesk appimagelauncherd[1347]: Executing deferred operations
Jun 27 17:17:09 Elitedesk appimagelauncherd[1347]: Integrating: /home/user/.zhistory
Jun 27 17:17:09 Elitedesk appimagelauncherd[1347]: ERROR: not an AppImage, skipping
Jun 27 17:17:09 Elitedesk appimagelauncherd[1347]: Cleaning up old desktop integration files
Jun 27 17:17:09 Elitedesk appimagelauncherd[1347]: Updating desktop database and icon caches
Jun 27 17:17:09 Elitedesk systemd-sleep[3140]: System returned from sleep state.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Demoting known real-time threads.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 2326 of process 1618.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 2279 of process 2261.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1933 of process 1878.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1878 of process 1878.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1721 of process 1710.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1710 of process 1710.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1723 of process 1708.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Successfully demoted thread 1708 of process 1708.
Jun 27 17:17:09 Elitedesk rtkit-daemon[1681]: Demoted 8 threads.
Jun 27 17:17:09 Elitedesk dbus-daemon[1116]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Jun 27 17:17:09 Elitedesk systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Jun 27 17:17:09 Elitedesk (udev-worker)[3255]: nvme0: /etc/udev/rules.d/66-maxperfwiz.rules:1 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1b.0/0000:01:00.0/nvme/nvme0/queue/scheduler}, ignoring: No such file or directory
Jun 27 17:17:09 Elitedesk appimagelauncherd[3279]: which: no gtk-update-icon-cache-3.0 in (/usr/local/bin:/usr/bin)
Jun 27 17:17:09 Elitedesk appimagelauncherd[3285]: Could not parse file "/home/user/.local/share/applications/synology-drive-open-file.desktop": No such file or directory
Jun 27 17:17:09 Elitedesk appimagelauncherd[3292]: which: no update-icon-caches in (/usr/local/bin:/usr/bin)
Jun 27 17:17:09 Elitedesk dbus-daemon[1352]: [session uid=1000 pid=1352] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.73' (uid=1000 pid=3127 comm="/usr/lib/tracker-extract-3")
Jun 27 17:17:09 Elitedesk systemd[1331]: Starting Virtual filesystem metadata service...
Jun 27 17:17:09 Elitedesk dbus-daemon[1352]: [session uid=1000 pid=1352] Successfully activated service 'org.gtk.vfs.Metadata'
Jun 27 17:17:09 Elitedesk systemd[1331]: Started Virtual filesystem metadata service.
Jun 27 17:17:09 Elitedesk systemd[1]: systemd-hibernate.service: Deactivated successfully.
Jun 27 17:17:09 Elitedesk systemd[1]: Finished Hibernate.
And your journal stuck here:
Jun 27 17:14:35 Elitedesk systemd[1]: Starting Hibernate...
Jun 27 17:14:35 Elitedesk systemd-sleep[3140]: Entering sleep state 'hibernate'...
Jun 27 17:14:35 Elitedesk kernel: PM: hibernation: hibernation entry <--- **HERE**
Jun 27 17:17:09 Elitedesk kernel: Filesystems sync: 1.037 seconds
Jun 27 17:17:09 Elitedesk kernel: Freezing user space processes
Jun 27 17:17:09 Elitedesk kernel: Freezing user space processes completed (elapsed 0.001 seconds)
Jun 27 17:17:09 Elitedesk kernel: OOM killer disabled.
It seems it tries to sync the filesystem on your side? Maybe not an ACPI problem? Syncing means here, that it writes all stuff on the RAM Cache to the disk, what was not written yet. Did you reboot after configuring hibernation?
okay, to put it simple: Linux loads the ACPI Table from your UEFI and executes it. If errors or possible bugs appear, then you will see it like these log entries. In your cases, it loads a named object which already exists, so catalog entries that appear multiple times. It is a bug, but shouldn’t bother normally. It is something for the developer.
On Linux, you can patch the ACPI Tables on runtime, but I guess this above your capabilities.