Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to suspend to disk (OK) and resume (PROBLEM) ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
enricopr
n00b
n00b


Joined: 30 Dec 2007
Posts: 3

PostPosted: Mon Dec 31, 2007 2:25 pm    Post subject: How to suspend to disk (OK) and resume (PROBLEM) ? Reply with quote

hi, i'm using 2.6.23-tuxonice-r6 kernel and with the hibernate-ram i can succesfully suspend to ram my pc (Toshiba Satellite a100-111) and resume from ram.
When i try hibernate (suspend to disk) it works 50% of times.
When i try : "echo disk > /sys/power/state" (suspend to disk) it works 100% of times.

but i never can resume from grub.

my grub.conf is:

Code:
_______________________________________________________
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

title=Gentoo Linux 2.6.23-tuxonice-r6 TESTUALE (new kernel)
root(hd0,5)
kernel /boot/kernel-genkernel-x86-2.6.23-tuxonice-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda8 udev doscsi noapic irqpoll resume=/dev/hda7
initrd /boot/initramfs-genkernel-x86-2.6.23-tuxonice-r6

title=Gentoo Linux 2.6.23-tuxonice-r6 GRAFICO (new kernel)
root(hd0,5)
kernel /boot/kernel-genkernel-x86-2.6.23-tuxonice-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda8 udev noapic irqpoll doscsi resume=/dev/hda7 softlevel=graphic
initrd /boot/initramfs-genkernel-x86-2.6.23-tuxonice-r6
_________________________________________________________


Where /dev/hda7 is my swap partition (of type 82 Linux swap / Solaris )
IMPORTANT: When i boot after suspend to disk it starts normally.

this is my dmesg output (relevant rows):
Code:
___________________________________________________
Processors: 2
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
swsusp: Registered nosave memory region: 000000000009f000 - 00000000000a0000
swsusp: Registered nosave memory region: 00000000000a0000 - 00000000000dc000
swsusp: Registered nosave memory region: 00000000000dc000 - 0000000000100000
Built 1 zonelists in Zone order.  Total pages: 519796
Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda8 udev noapic irqpoll doscsi resume=/dev/hda7 softlevel=graphic
Misrouted IRQ fixup and polling support enabled
This may significantly impact system performance
mapped APIC to ffffb000 (fee00000)
mapped IOAPIC to ffffa000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c0498000 soft=c0490000
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 2327.619 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 2070284k/2095552k available (2682k kernel code, 23964k reserved, 687k data, 244k init, 1178048k highmem)
virtual kernel memory layout:
    fixmap  : 0xfff4d000 - 0xfffff000   ( 712 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xf8800000 - 0xff7fe000   ( 111 MB)
    lowmem  : 0xc0000000 - 0xf8000000   ( 896 MB)
      .init : 0xc0450000 - 0xc048d000   ( 244 kB)
      .data : 0xc039e8e0 - 0xc044a7a4   ( 687 kB)
      .text : 0xc0100000 - 0xc039e8e0   (2682 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 4666.95 BogoMIPS (lpj=23334782)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000 0000e3bd 00000000 00000001 00000000
monitor/mwait feature present.
using mwait in idle threads.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU: After all inits, caps: bfebfbff 20000000 00000000 00003940 0000e3bd 00000000 00000001 00000000
________________________________________________
And then it starts normally. What can i try?
_________________
enricopr
Back to top
View user's profile Send private message
tuber
Apprentice
Apprentice


Joined: 12 Nov 2004
Posts: 267

PostPosted: Thu Jan 03, 2008 5:42 am    Post subject: Reply with quote

Try using resume2 instead of resume in your grub configuration:
Code:
resume2=/dev/hda7
Back to top
View user's profile Send private message
champ
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2006
Posts: 97
Location: Thailand

PostPosted: Thu Jan 03, 2008 5:57 am    Post subject: Reply with quote

It looks like it is trying swsusp. Try setting the kernel to replace swsusp with tuxonice:
Code:
CONFIG_TOI_REPLACE_SWSUSP=y

_________________
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin

blog: johnsearth.blogspot.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum