You are not logged in.
Pages: 1
Hi trying to get hibernation to work.
This is my system before I started:
1 SSD
4 OS's on that SSD (ElementaryOS, Windows, CentOS and Arch Linux) on different partitions
My home folders for the linux OS's are stored on a seperate partition.
Using Gnome Cinnamon Hibernate has no effect seemingly
fstab:
# /dev/sda4
UUID=614c6989-66cb-4173-8384-7bd86fefcb39 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda6
UUID=a018da02-9ee8-449f-9a18-634f247d9ed2 none swap defaults,pri=-2 0 0
#dev/sda5
UUID=f9c42c03-c2bc-4d5d-ba27-baeb5aa80659 /media/DATA ext4 defaults,rw,errors=remount-ro 0 0
/media/DATA/arch /home bind defaults,rw,errors=remount-ro,bind 0 0Default OS is ElementaryOS, which has a grub2 bootloader I will later edit with Grub customizer
The swap partition is shared so first thing I did was create a swap file
I created the file, and added the entry to fstab '/swapfile swap swap defaults, pri=-3 0 0'
This is what swap -s looks like now
Filename Type Size Used Priority
/swapfile file 6291452 0 -2
/dev/sda6 partition 12582908 0 -3Btw, why are the priorities the wrong order? the priority of swapfile is lower than that of dev/sda6 in my fstab? (I get the same result setting pri=-100 for /swapfile) Should this be set somewhere else?
Then I entered the variables (resume, resume_offset) via grub customizer
grub.cfg (This is in the /boot/grub of ElementaryOS partition)
### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Arch (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-614c6989-66cb-4173-8384-7bd86fefcb39' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 614c6989-66cb-4173-8384-7bd86fefcb39
else
search --no-floppy --fs-uuid --set=root 614c6989-66cb-4173-8384-7bd86fefcb39
fi
linux /boot/vmlinuz-linux root=/dev/sda4
initrd /boot/initramfs-linux.img
resume=UUID=614c6989-66cb-4173-8384-7bd86fefcb39
resume_offset=7208960
}The UUID is pointed at / and not at /home partition as swap path is /swapfile correctly I think and the the resume_offset is filefrag
Filesystem type is: ef53
File size of /swapfile is 6442450944 (1572864 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 0: 7208960.. 7208960: 1:Finally, I added the hook resume with sudo nano /etc/mkinitcpio.conf as recommended and ran sudo mkinitcpio -p linux
Basically exactly as the wiki says I think.
However, Hibernating has the same behavior as before, that is the screen shows the lock screen, goes black a couple times and lights back up before shutting down.
Booting it back up, its just as if I started it up normally.
My journalctl shows this:
when hibernating at the end
May 30 21:47:59 archlinux systemd[1]: Reached target Sleep.
May 30 21:47:59 archlinux systemd[1]: Starting Hibernate...
May 30 21:47:59 archlinux kernel: PM: Image not found (code -22)
May 30 21:47:59 archlinux systemd-sleep[1300]: Suspending system...when shutting down:
May 30 21:46:52 archlinux systemd[1]: Reached target Power-Off.
May 30 21:46:52 archlinux systemd[1]: Shutting down.
May 30 21:46:52 archlinux audit: AUDIT1334 prog-id=4 op=UNLOAD
May 30 21:46:52 archlinux audit: AUDIT1334 prog-id=3 op=UNLOAD
May 30 21:46:52 archlinux audit: AUDIT1334 prog-id=6 op=UNLOAD
May 30 21:46:52 archlinux audit: AUDIT1334 prog-id=5 op=UNLOAD
May 30 21:46:52 archlinux systemd-shutdown[1]: Syncing filesystems and block devices.
May 30 21:46:52 archlinux systemd-journald[309]: Journal stoppedregardless of which way I shut down, when starting up, these appear:
[ 0.068657] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.068659] PM: hibernation: Registered nosave memory: [mem 0x00058000-0x00058fff]
[ 0.068661] PM: hibernation: Registered nosave memory: [mem 0x0009e000-0x000fffff]
[ 0.068663] PM: hibernation: Registered nosave memory: [mem 0x876b9000-0x876b9fff]
[ 0.068664] PM: hibernation: Registered nosave memory: [mem 0x876ba000-0x876bafff]
[ 0.068666] PM: hibernation: Registered nosave memory: [mem 0x880ef000-0x880effff]
[ 0.068668] PM: hibernation: Registered nosave memory: [mem 0x8871c000-0x8874afff]
[ 0.068670] PM: hibernation: Registered nosave memory: [mem 0x89eac000-0x8ad59fff]
[ 0.068671] PM: hibernation: Registered nosave memory: [mem 0x8ad5a000-0x8ada4fff]
[ 0.068672] PM: hibernation: Registered nosave memory: [mem 0x8ada5000-0x8ae04fff]
[ 0.068673] PM: hibernation: Registered nosave memory: [mem 0x8ae05000-0x8b2abfff]
[ 0.068673] PM: hibernation: Registered nosave memory: [mem 0x8b2ac000-0x8b37efff]
[ 0.068675] PM: hibernation: Registered nosave memory: [mem 0x8b3ff000-0x8fffffff]
[ 0.068676] PM: hibernation: Registered nosave memory: [mem 0x90000000-0xefffffff]
[ 0.068677] PM: hibernation: Registered nosave memory: [mem 0xf0000000-0xf7ffffff]
[ 0.068678] PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xfdffffff]
[ 0.068679] PM: hibernation: Registered nosave memory: [mem 0xfe000000-0xfe010fff]
[ 0.068679] PM: hibernation: Registered nosave memory: [mem 0xfe011000-0xfebfffff]
[ 0.068680] PM: hibernation: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[ 0.068681] PM: hibernation: Registered nosave memory: [mem 0xfec01000-0xfecfffff]
[ 0.068682] PM: hibernation: Registered nosave memory: [mem 0xfed00000-0xfed00fff]
[ 0.068682] PM: hibernation: Registered nosave memory: [mem 0xfed01000-0xfedfffff]
[ 0.068683] PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
[ 0.068684] PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
[ 0.068685] PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff]I think I should provide more dmesg/journalctl logs but I don't know what's useful and they seem kind of long. If requested Ill put them up.
May 30 21:47:59 archlinux kernel: PM: Image not found (code -22)Seems like a problem but I don't know what it means/ Its weird because again I get the PM hibernation nosave memory starting up whether I hibernate or not and I think my grub config is correct as well. I don't know where I could have made a mistake
Last edited by chesselitist (2020-05-31 09:05:22)
Offline
Pages: 1