
Originally Posted by
donatom
Does this help with suspend-resume or is it only for hibernate?
Yes, please do. The more information, the better. When I have problems with suspend, it irritates the heck out of me.
OK, first you should know that ALL of my stuff has SELinux disabled.
OK, first case:
Code:
Laptop - LXDE/LXDM/Xorg - hibernate-resume works fine, but suspend-resume somehow forgets the truecrypt mount (have not tried it with a LUKS or cryptsetup mount), and locks up the machine when trying to do file ops in that partition, hard reboot necessary.
Message from syslogd@blackvaio at Dec 22 04:46:59 ...
kernel:watchdog: BUG: soft lockup - CPU#2 stuck for 22s! [kworker/2:1:3216]
[root@blackvaio ~]# uname -a
Linux blackvaio 4.13.13-300.fc27.x86_64 #1 SMP Wed Nov 15 15:47:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@blackvaio ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 21 18:04:08 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=78307018-239b-4cc0-b9ae-8abeb9ec0965 / ext4 defaults 1 1
UUID=6f31285f-9caa-48bf-b023-a0a4ae337150 swap swap defaults 0 0
[root@blackvaio ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb resume=UUID=6f31285f-9caa-48bf-b023-a0a4ae337150"
GRUB_DISABLE_RECOVERY="true"
(remember that to make the changes in /etc/default/grub work, you need to execute [grub2-mkconfig -o /boot/grub2/grub.cfg])
Second case:
Code:
Laptop - Xfce/LXDM/Xorg - Suspend-resume works perfect, Hibernate does not work (it goes into hibernate, but it boots up to a fresh boot)
[root@bobx ~]# uname -a
Linux bobx 4.13.15-300.fc27.x86_64 #1 SMP Tue Nov 21 21:10:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 21 21:39:21 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=659318ac-02d6-44b2-a1c0-0edd551a2bb1 / ext4 defaults 1 1
UUID=33dc0070-091c-48f3-b3db-3039f053bf33 swap swap defaults 0 0
cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.md.uuid=88477c5d:5d8f3852:a8057b88:b8b24da2 rd.md.uuid=ffe6a725:75b260ed:7965eedf:1fa2bb75 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
I will try now, on this machine, to add the resume=GUID.... in the grub. Here we go:
GRUB_CMDLINE_LINUX="rd.md.uuid=88477c5d:5d8f3852:a8057b88:b8b24da2 rd.md.uuid=ffe6a725:75b260ed:7965eedf:1fa2bb75 resume=UUID=33dc0070-091c-48f3-b3db-3039f053bf33 rhgb quiet"
grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.13.15-300.fc27.x86_64
Found initrd image: /boot/initramfs-4.13.15-300.fc27.x86_64.img
.....
done
reboot once, then try suspend and hibernate, now it works PERFECT for both.
Thirs case:
Code:
Laptop - Xfce/LXDM/Xorg - Hibernate-resume works perfect, Suspend-resume does not work, it looks like it goes into suspend, as the orange light starts pulsating like in all the other comps, however, resuming it boots to a fresh login screen.
uname -a
Linux violetvaio 4.13.15-300.fc27.x86_64 #1 SMP Tue Nov 21 21:10:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Mar 6 16:22:54 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=17bd5ca3-6720-49bc-812d-80e1cd078492 / ext4 defaults 1 1
UUID=59e78c60-00ef-42fd-a144-e88c37529028 swap swap defaults 0 0
cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb resume=UUID=59e78c60-00ef-42fd-a144-e88c37529028"
GRUB_DISABLE_RECOVERY="true"
this is what I see in dmesg after boot:
[ 4.274665] PM: Starting manual resume from disk
[ 4.274685] PM: Hibernation image partition 8:1 present
[ 4.274686] PM: Looking for hibernation image.
[ 4.276085] PM: Image not found (code -22)
[ 4.276087] PM: Hibernation image not present or could not be loaded.
EDIT: (Funny that it calls it Hibernation image, but what I did is a suspend)