You are not logged in.
I am using 5.3.1-arch1-1-ARCH with KDE Plasma 5.16.5.
I use a swapfile whose path is /home/swapfile.
systemctl hibernate works after a reboot but if I do it again after waking from hibernation, the screen goes black and then wakes and I find myself at KDE lock screen.
This is what I get from dmesg | grep PM:
[ 41.258347] PM: hibernation entry
[ 41.492372] PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
[ 41.492374] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
[ 41.492376] PM: Marking nosave pages: [mem 0x20000000-0x201fffff]
[ 41.492386] PM: Marking nosave pages: [mem 0x40000000-0x401fffff]
[ 41.492396] PM: Marking nosave pages: [mem 0xda49f000-0xdabfefff]
[ 41.492430] PM: Marking nosave pages: [mem 0xdac00000-0xffffffff]
[ 41.493092] PM: Basic memory bitmaps created
[ 41.493093] PM: Preallocating image memory... done (allocated 444120 pages)
[ 41.883324] PM: Allocated 1776480 kbytes in 0.39 seconds (4555.07 MB/s)
[ 42.486430] PM: Creating hibernation image:
[ 42.783936] PM: Need to copy 441396 pages
[ 42.783939] PM: Normal pages needed: 441396 + 1024, available pages: 3721456
[ 43.437980] PM: Hibernation image created (441396 pages copied)
[ 43.273037] PM: Cannot find swap device, try swapon -a
[ 43.273038] PM: Cannot get swap writer
[ 43.363101] PM: Basic memory bitmaps freed
[ 43.400986] PM: hibernation exit
Output of lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 Home c1bac939-9cf8-422f-998e-4e4d838082d6 40.7G 26% /home
└─sda2 ext4 6f60d6fc-1679-4fd8-82cc-ce9088531c55 36G 32% /
sdb
└─sdb1 ext4 HDD cf128794-e7de-4d2e-838a-f297c3ee9184 153.6G 42% /media/HDD
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6f60d6fc-1679-4fd8-82cc-ce9088531c55 rw loglevel=3 quiet resume=/dev/sda1 resume_offset=6791168
cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
UUID=6f60d6fc-1679-4fd8-82cc-ce9088531c55 / ext4 defaults,discard,noatime 0 0
UUID=c1bac939-9cf8-422f-998e-4e4d838082d6 /home ext4 defaults,discard,noatime 0 0
UUID=cf128794-e7de-4d2e-838a-f297c3ee9184 /media/HDD ext4 defaults,commit=60 0 0
/home/swapfile none swap defaults 0 0
HOOKS=(base udev autodetect modconf block filesystems keyboard resume fsck)
Last edited by DarkShadowFT (2019-10-19 05:44:12)
Offline
I expect some other error much earlier. Could you please provide the journal for Start->Hibernate->Wakup->Hibernate (at this stage was you dmesg output, right?)->Wakeup
Keep in mind device letters can change anytime. So use the UUID for resume as well. I don't know if it is the cause though.
Offline
I've added UUID in GRUB's resume parameter and have done 3 successful hibernations after a reboot.
I want to test hibernation a few more times and will upload the journal file in case I run into an error.
BTW is there a way to fix drive letters? My HDD becomes /dev/sda1 sometimes while most of the times it is /dev/sdb1.
Offline
I don't know if it is possible to change this behavior without breaking anything. There is also no reason for it: https://wiki.archlinux.org/index.php/Pe … ice_naming
Offline
I think it's working properly now.
Thanks for the help, Swiggles.
Offline