Grub Very slow after resume from suspend to disk
as the title this is my problem,i have the following partition:
/dev/hda1 1 5222 41945683+ 83 Linux
/dev/hda2 5223 6681 11719417+ 83 Linux
/dev/hda3 6682 6742 489951 82 Linux swap
/dev/hda4 6743 7296 4449973+ 83 Linux
all the partition are resiserfs (except sure the swap)
in /dev/hda1 i have my Salckware 11.0 with dropline gnome 2.16.1 ,once i do suspend to disk the resume take too much time,to load the grub menu and after to load the suspended sys ,and this without any error message.
I was using suse since 6 mounths (instead of ubuntu in my /dev/hda4) and as i remember suse tell grub to load just the suspend sys without showing the menu for choosing the OS's and that was fast.
What the problem can be and how i can tell my grub to load directly into my suspended sys.
Another question,is there any place to go for gnome-power-manager and put some commands before suspend!!!
I know that i can do by simply write a script that does what i want to do before execute echo -n "disk" > /sys/power/state.
Thanks in advance.
uswsusp Hibernate/Suspend Under Slackware.
I'll explain how i manage to solve my problem in case somebody find this thread.
The idea it's to use uswsusp .
so we need a kernel with initrd/initramfs and sure suspend softawer enabled in the Kernel .
download the uswsusp and extract it.
edit the Makefile (sure there is some other solution but for me this was the easiest)
put the name of the swap device in this variable
RESUME_DEVICE=/dev/hda2
make s2disk
make s2ram
make install ( this will install one configuration file in /etc called suspend.conf and the programs in /usr/local/sbin )
edit the configuration file ,for example mine is like this
snapshot device = /dev/snapshot
resume device = /dev/hda2
image size = 450000000
#suspend loglevel = 2
#compute checksum = y
#compress = y
#encrypt = y
#early writeout = y
#splash = y
know in the suspend compilation directory
make install-resume
edit the configuration file of grub and reboot the system.
also i'm using Dropline Gnome 2.16.1 it's possible to use the gnome-power-manager with uswsusp tool ,just by editing the /usr/lib/hal/scripts for suspend/hibernate.
Know the other challenge is how to tell grub to boot directly into the suspended system without prompting the menu as openSuSE does ?
Hope this can help someone.