You are not logged in.
Pages: 1
Hi,
I don't use hibernation too much but I'm pretty sure to have set up it correctly and tested it when I first installed Arch on this Acer Aspire 5920 laptop.
Today I tried to hibernate my laptop with pm-hibernate and after powering it up again I noticed it was starting a new session without resuming anything, like if it had been shut down rather than hibernated.
I obviously thinked that some update could have removed the 'resume=/path/to/swap' from my kernel line on my menu.lst but this isn't the case.
/boot/grub/menu.lst:
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#
# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution
# general configuration:
timeout 1
default 0
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch Linux
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/d96dc62b-384e-4db4-9ede-18e5aa5174bc resume=/dev/disk/by-uuid/8ba97700-34a1-4573-ac14-dc5573a3eb1d ro
initrd /boot/kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/d96dc62b-384e-4db4-9ede-18e5aa5174bc ro
initrd /boot/kernel26-fallback.img
# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
blkid:
/dev/sda1: UUID="8ba97700-34a1-4573-ac14-dc5573a3eb1d" TYPE="swap"
/dev/sda2: UUID="d96dc62b-384e-4db4-9ede-18e5aa5174bc" TYPE="ext4"
/dev/sda3: UUID="dba6182d-37fa-4d97-b8d2-d5a8479ef4f1" TYPE="ext4"
What is going on?
Any help would be much appreciated!
Thanks!
Last edited by rent0n (2010-04-06 19:49:34)
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Another possibility is that you updated the kernel. If you boot in kernel version 1.0 and update to kernel version 1.1, but then hibernate before rebooting, the new kernel won't resume the image created by the earlier kernel.
Offline
I'm guessing you don't have resume in HOOKS=() in mkinitcpio.conf
Yes that was the reason, thank you very much.
I don't know how I missed that resume had to be added to the hooks, maybe something changed after latest mkinitcpio upgrade?
I will add this in the pm-utils page on tha ArchWiki asap.
Many thanks, cheers
EDIT: done --> http://wiki.archlinux.org/index.php/Pm- … figuration
Last edited by rent0n (2010-04-06 19:49:56)
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
I will add this in the pm-utils page on tha ArchWiki asap.
Many thanks, cheers
EDIT: done --> http://wiki.archlinux.org/index.php/Pm- … figuration
Sorry, rent0n but I pulled your latest edit. The reason being that not all systems require the HOOKS modification and the instructions to do so were already under the Troubleshooting section. Glad you got it working though!
Last edited by thayer (2010-04-07 04:27:37)
thayer williams ~ cinderwick.ca
Offline
rent0n wrote:I will add this in the pm-utils page on tha ArchWiki asap.
Many thanks, cheers
EDIT: done --> http://wiki.archlinux.org/index.php/Pm- … figuration
Sorry, rent0n but I pulled your latest edit. The reason being that not all systems require the HOOKS modification and the instructions to do so were already under the Troubleshooting section. Glad you got it working though!
Ok, no problem, it's my fault!
I haven't seen the troubleshooting part until now, everything's right now.
Thanks thayer
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Guys, thanks for the info, I added "resume" to HOOKS, did a mkinitcpio -p kernel26 (as root) and it works!
Swap < RAM and it works. I'm happy now.
I've been shaking while rebuilding (is that the "rebuilding"?) the kernel. :D
Btw, when I update the kernel (when the new version is available) do I need to do a mkinitcpio part again?
It should read my old mkinitcpio.conf and rebuild it with that options, no?
Last edited by archman-cro (2010-04-26 10:08:54)
Offline
When you update the kernel, you will see that the initramfs is rebuilt automagically by the kernel package.
Offline
Fast response! Thanks!
Offline
Pages: 1