You are not logged in.
Pages: 1
Topic closed
Hello all,
I'm on a fresh ArchLinux install, i've made a swap parition.. activate it, add the resume hook and create an initram using 'mkinitcpio', also i've added the resume kernel option to gummiboot.
➜ ~ cat /boot/loader/entries/arch.conf
title Arch Linux
linux \vmlinuz-linux
initrd \initramfs-linux.img
options root=/dev/sda6 rw resume=/dev/sda8
Here is my partition list:
Part. # Size Partition Type Partition Name
----------------------------------------------------------------
1007.0 KiB free space
1 300.0 MiB Windows RE Basic data partition
2 100.0 MiB EFI System EFI system partition
3 128.0 MiB Microsoft reserved Microsoft reserved partition
4 100.5 GiB Microsoft basic data C:
5 150.0 GiB Microsoft basic data
6 100.0 GiB Linux filesystem /root
7 100.0 GiB Linux filesystem /home
8 12.0 GiB Linux swap Swap
235.6 GiB free space
My /etc/fstab file
➜ ~ tail /etc/fstab
# UUID=b6b44333-f95c-473a-84f3-19ff6b44302e
/dev/sda6 / ext4 rw,relatime,data=ordered0 1
# UUID=8e2d0f6f-9c24-41bc-934e-a052900cdc58
/dev/sda7 /home ext4 rw,relatime,data=ordered0 2
# UUID=B0FA-C35C
/dev/sda2 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
/dev/sda8 none swap defaults 0 0
➜ ~ swapon -s
Nom de fichier Type Taille Utilisé Priorité
/dev/sda8 partition 12582908 0 -1
➜ ~ free
total used free shared buffers cached
Mem: 8064204 4188644 3875560 214508 119844 2303776
-/+ buffers/cache: 1765024 6299180
Swap: 12582908 0 12582908
The problem is when i try to hibernate using 'systemctl hibernate' or directly using 'echo disk > /sys/power/state' the system freeze and i can't do anything! so i force it to reboot using the power button!
checking dmesg after rebooting i've this:
[ 0.865800] PM: Checking hibernation image partition /dev/sda8
[ 0.961849] PM: Hibernation image not present or could not be loaded.
[ 2.474609] PM: Starting manual resume from disk
[ 2.474615] PM: Hibernation image partition 8:8 present
[ 2.474617] PM: Looking for hibernation image.
[ 2.493564] PM: Image not found (code -22)
[ 2.493569] PM: Hibernation image not present or could not be loaded.
PS: it worked before i reinstall arch, so this is not a hardware related problem
EDIT: the problem was in the kernel (3.12) it brokes suspend2disk & suspend2ram downgrading the kernel to 3.11 or installing linux-ck fix the problem )
Last edited by Cyb3rGeek (2013-12-21 09:11:17)
Offline
Hi yep its not harware problem dont care so this try ot follow those steps
nano /etc/mkinitcpio.conf
Open this file and check for HOOKS= line check if there is any word 'resume'
should look like this
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
if it is soo then do this add word 'resume' bettwen block || filesystems
HOOKS="base udev autodetect modconf block resume filesystems keyboard fsck plymouth
and then recomplie your kernel
How to recompile?
check your kernel version
uname -a
and you will see something like this
Linux objprog 3.10.22-1
this mean my version is 310 so yours can be different maybe take 3 first number to define version so after taking this write
Care: My version Kernel is 310 so i type linux310 if your is 3.08 or other write linux308
mkinitcpio -p linux310
now reboot and test hibernate if it works
Offline
mkinitcpio -p linux310
I suppose you won't always have a preset including the version number.
I had to do
mkinitcpio -p linux
PS:
ls /etc/mkinitcpio.d
for present presets.
Last edited by MrHritik (2017-08-27 07:26:01)
Arch is my digital family.
Offline
Please do not necrobump, especially with informatioan that is well documented on the wiki.
https://wiki.archlinux.org/index.php/Co … bumping.22
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed