Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto: get swsusp2 (hibernate, suspend to disk) working
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 12, 13, 14  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mlybarger
Guru
Guru


Joined: 04 Sep 2002
Posts: 463

PostPosted: Thu Aug 26, 2004 4:39 pm    Post subject: Reply with quote

thanks for help finding the log file. it helps to look there. i didn't wait long enough for the device to be brought up when i booted my machine... alll is well.
Back to top
View user's profile Send private message
kip
n00b
n00b


Joined: 01 Sep 2002
Posts: 71
Location: germany

PostPosted: Sun Aug 29, 2004 5:23 pm    Post subject: Reply with quote

I made an ebuild for the nvidia driver that will apply the necessary patch ...
you can get it here: http://linux.kips-world.de/nvidia

you need both files, the ebuild and the patch. For those who don't know how to use these files click here
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Fri Sep 03, 2004 12:52 pm    Post subject: Reply with quote

After patching a gentoo-dev-sources-2.6.8-r3 kernel with the 1.0.5 swsusp kernel compile fails with:

drivers/char/keyboard.c:285: error: redefinition of `__kcrctab_kd_mksound'
drivers/char/keyboard.c:254: error: `__kcrctab_kd_mksound' previously defined here
drivers/char/keyboard.c:285: error: redefinition of `__kstrtab_kd_mksound'
drivers/char/keyboard.c:254: error: `__kstrtab_kd_mksound' previously defined here
drivers/char/keyboard.c:285: error: redefinition of `__ksymtab_kd_mksound'
drivers/char/keyboard.c:254: error: `__ksymtab_kd_mksound' previously defined here
{standard input}: Assembler messages:
{standard input}:628: Error: symbol `__kcrctab_kd_mksound' is already defined
{standard input}:633: Error: symbol `__kstrtab_kd_mksound' is already defined
{standard input}:639: Error: symbol `__ksymtab_kd_mksound' is already defined
make[2]: *** [drivers/char/keyboard.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

I also have the supermount (from bug 60462) and latest (mh1) bluez patch applied - the kernel compiles and runs fine with just these two patches
Back to top
View user's profile Send private message
phranzee
Guru
Guru


Joined: 22 Nov 2003
Posts: 397
Location: katowice/pl

PostPosted: Sat Sep 04, 2004 10:39 am    Post subject: Reply with quote

hi.
my config:
Code:

CONFIG_SOFTWARE_SUSPEND2_CORE=y
CONFIG_SOFTWARE_SUSPEND2=y
CONFIG_SOFTWARE_SUSPEND2_WRITER=y
CONFIG_SOFTWARE_SUSPEND_SWAPWRITER=y
# CONFIG_SOFTWARE_SUSPEND_NULLWRITER is not set
CONFIG_SOFTWARE_SUSPEND_LZF_COMPRESSION=y
# CONFIG_SOFTWARE_SUSPEND_GZIP_COMPRESSION is not set
# CONFIG_SOFTWARE_SUSPEND_NULLTRANSFORMER is not set
# CONFIG_SOFTWARE_SUSPEND_TEXT_MODE is not set
# CONFIG_SOFTWARE_SUSPEND_ACPI is not set
# CONFIG_SOFTWARE_SUSPEND_RELAXED_PROC is not set
CONFIG_SOFTWARE_SUSPEND_DEFAULT_RESUME2=""
# CONFIG_SOFTWARE_SUSPEND_KEEP_IMAGE is not set
# CONFIG_SOFTWARE_SUSPEND_DEBUG is not set
# CONFIG_SOFTWARE_SUSPEND_VARIATION_ANALYSIS is not set
# CONFIG_SOFTWARE_SUSPEND2_DUMP is not set

and the result of /usr/local/sbin/hibernate:
Code:

Your kernel does not have any recent Software Suspend 2 support compiled in.
Please follow the HOWTO linked from http://swsusp.sourceforge.net/ for
instructions on how compile Software Suspend into your kernel.
hibernate: Aborting.
Code:
uname -r
2.6.8.1-nitro2

need help :P
_________________
signature fault
post dumped ;]
Back to top
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sat Sep 04, 2004 2:41 pm    Post subject: Reply with quote

Could someone give some hints how to "patch" the latest nvidia drivers?
kip, I mean nvidia 106110, there's a newer version and I can't find the exact location of the switch(state) line anymore, the code has changed a bit... When I try some stuff and hibernate in X, I can't seem to resume (black screen)...
_________________
{Linux User #333296}
Kernel 2.6.9-nitro4!
<< hurrah
Back to top
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sun Sep 05, 2004 9:43 am    Post subject: Reply with quote

I tried with serveral patched older nvidia drivers but no go... System "hangs" in black screen when trying to unsuspend from SWAP disk... That really sucks! Anyone with similar problems in X? Without nvidia loaded it works fine...
_________________
{Linux User #333296}
Kernel 2.6.9-nitro4!
<< hurrah
Back to top
View user's profile Send private message
Vishnu
n00b
n00b


Joined: 10 Feb 2003
Posts: 22

PostPosted: Wed Sep 08, 2004 7:57 am    Post subject: Reply with quote

theboywho wrote:
After patching a gentoo-dev-sources-2.6.8-r3 kernel with the 1.0.5 swsusp kernel compile fails with:

drivers/char/keyboard.c:285: error: redefinition of `__kcrctab_kd_mksound'
drivers/char/keyboard.c:254: error: `__kcrctab_kd_mksound' previously defined here
drivers/char/keyboard.c:285: error: redefinition of `__kstrtab_kd_mksound'
drivers/char/keyboard.c:254: error: `__kstrtab_kd_mksound' previously defined here
drivers/char/keyboard.c:285: error: redefinition of `__ksymtab_kd_mksound'
drivers/char/keyboard.c:254: error: `__ksymtab_kd_mksound' previously defined here
{standard input}: Assembler messages:
{standard input}:628: Error: symbol `__kcrctab_kd_mksound' is already defined
{standard input}:633: Error: symbol `__kstrtab_kd_mksound' is already defined
{standard input}:639: Error: symbol `__ksymtab_kd_mksound' is already defined
make[2]: *** [drivers/char/keyboard.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

I also have the supermount (from bug 60462) and latest (mh1) bluez patch applied - the kernel compiles and runs fine with just these two patches

Remove one of the lines EXPORT_SYMBOL(kd_mksound) from this file, either the one on line 285 or the one on line 254, then it should compile.
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Wed Sep 08, 2004 8:12 am    Post subject: Reply with quote

Did that, but swsusp doesnt work properly on my Vaio TR5, It will hibernate, but wont come back out of hibernation. I even tested with ALL other drivers removed, but still the same problem.
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Thu Sep 09, 2004 11:32 pm    Post subject: Reply with quote

Hi!

Does anyone know how to get swsusp2 to work with the vesa-tng framebuffer?
If I turn it on, I can't resume and the laptop freezes. But no other framebuffer works for me ... (Intel Corp. 82852/855GM Integrated Graphics Device) :(

thx
Daniel
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
Root Moose
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 112

PostPosted: Fri Sep 10, 2004 12:53 am    Post subject: Which swap partition? Reply with quote

I just read this whole thread(s) and maybe I missed this point along the way - my eyes are starting to glaze over...

:?: Which swap partition does swsusp2 need?

The one you have configured for your running OS

OR

a completely different one separate from that OS swap partition?

:?: The machine I want to set this up on does not have any swap partition configured in fstab and before I start juggling the exisiting filesystems I wanted to know if it would be adequate to create a MEM+50% (758MB in this case) swap parittion for swsusp2 that was not referenced in the fstab. Does it need to be referenced in the fstab and mounted or can I swapon/swapoff the swap manually somewhere in the swsusp2 configuration? Can swsusp2 write directly to /dev/hd[whatever] without issuing a swapon?

:?: I'm kinda tight for space - embedded device running on a laptop drive - given that I don't use swap for my running OS can I get away with a smaller swap for suspend? I need at least 512 (RAM) + 1 MB for hibernate to work...even with LZF turned on right?

TIA

r@m

:!: p.s. Great How-to btw.
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Fri Sep 10, 2004 8:39 am    Post subject: Reply with quote

DerMojo wrote:
Hi!

Does anyone know how to get swsusp2 to work with the vesa-tng framebuffer?
If I turn it on, I can't resume and the laptop freezes. But no other framebuffer works for me ... (Intel Corp. 82852/855GM Integrated Graphics Device) :(

thx
Daniel


Hey ive got the same graphics device in my Vaio TR5 - i couldnt get swsusp working with the vesa-tng framebuffer - but now i have turned off all the frame buffer support and its works fine. Have you tested it with out framebuffer support?
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Fri Sep 10, 2004 11:48 am    Post subject: Reply with quote

theboywho wrote:
Have you tested it with out framebuffer support?

Yes, I'm currently running without framebuffer so I can suspend, works fine. But I'd like to have both ;)

Root Moose wrote:
Which swap partition does swsusp2 need?

It's using your "normal" swap partition, but you can configure it to use another one. (at least there are options for that..) This should work even if /dev/SWAP is not in your /etc/fstab (see /etc/hibernate/hibernate.conf).

Root Moose wrote:
I'm kinda tight for space [...]

Your swap partition should be larger that your mem, yes. If it's enough, well, I think you just have to test it. It's recommended to have +30% more space, but it can fit in less than that.
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Fri Sep 10, 2004 1:57 pm    Post subject: Reply with quote

Im gonna test it with the 'normal' framebuffer. The only reason i dont care much for FB is because i cant get it into the 1280x960 mode that my laptop screen does. Ive got X windows to do it, tho.

But WidescreenFB + Bootsplash + SwSusp would be great!
Back to top
View user's profile Send private message
wudmx
Guru
Guru


Joined: 07 Aug 2002
Posts: 527

PostPosted: Tue Sep 14, 2004 8:04 pm    Post subject: Reply with quote

hi,

i've tried it with gentoo-dev-sources 2.6.8.1-rc4.... had some kernel problems while compiling, but i fixed them! installed also the hibernate-script from berlios...

if i execute the hibernate script, i get a strange output ... call trace... and them something like do_timer+0xdf/0xe4 etc... finally there is a "code"... and then nothing happens!

i read everything in this thread, but no one said something about this!

my question:
which kernel are you using with which files from berlios?
would be really nice...

wudmx
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Wed Sep 15, 2004 2:40 pm    Post subject: Reply with quote

I am using 2.0.0.105 for 2.6.9-rc1 (of development-sources)!
It is working very well. :D
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Fri Sep 17, 2004 11:52 pm    Post subject: Reply with quote

yamakawa wrote:
I am using 2.0.0.105 for 2.6.9-rc1 (of development-sources)!
It is working very well. :D

uh! that's sounds good
what kind of hardware are u running?
You have SMP support enabled in your kernel?
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sun Sep 19, 2004 8:35 pm    Post subject: Reply with quote

Did anyone succeed on hibernating in X mode (nvidia)?
_________________
{Linux User #333296}
Kernel 2.6.9-nitro4!
<< hurrah
Back to top
View user's profile Send private message
Cheesepie
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 154

PostPosted: Mon Sep 27, 2004 12:35 am    Post subject: Reply with quote

Just want to report that Ive got swusp2 running flawlessly on an IBM thinkpad T41 (1.7ghz/2048 ram) using LZF compression and 2.6.7-gentoo-dev-sources-r14

Hibernates from X and everything, even with the fglrx ati drivers in use! hurah!

:)
Back to top
View user's profile Send private message
Cheesepie
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 154

PostPosted: Mon Sep 27, 2004 4:25 am    Post subject: Reply with quote

Something weird:

I swear that suspend to disk and suspend to ram were working with fglrx.

But all of a sudden, when I try to resume after suspending with the fglrx drivers in use, I get the same crash/error that everyone gets. Very weird, especially considering nothing changed.
Back to top
View user's profile Send private message
cwng
n00b
n00b


Joined: 21 Nov 2002
Posts: 68
Location: Singapore

PostPosted: Mon Sep 27, 2004 6:30 am    Post subject: Reply with quote

theboywho wrote:
Im gonna test it with the 'normal' framebuffer. The only reason i dont care much for FB is because i cant get it into the 1280x960 mode that my laptop screen does. Ive got X windows to do it, tho.

But WidescreenFB + Bootsplash + SwSusp would be great!


I have not tried, but my experence with a stupid mistake of mine may be of some use: When I first upgraded to 2.6.8 (and therefore fbsplash), I found that I can't use silent mode. The laptop freeze. In, verbose mode, I have a then-puzzling phenonmemon of the splash working only for a while during boot up, and then it defaults to a black screem until the userspace splash services set in. I lived with it for a while until one fine day I was determined to find the cause. Upon close inspection of the dmesg, I realized my mistake: I had always have the "resume=/hda7" kernel option in every grub entry, even though I wasn't using swsusp. It doesn't matter in bootsplash, but apparently it matters with fbsplash. After I created extra enties without the resume kernel option, my silent fbsplash works perfect, and the verbose mode anomaly disappears.

Moral of story: Have you tried not using silent mode fbsplash with resume? It may work.
Back to top
View user's profile Send private message
hyp0r
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 139

PostPosted: Mon Sep 27, 2004 7:21 pm    Post subject: Reply with quote

Seems like swsusp works fine for most of you. Can it be considered as "quite" stable (therefore I quoted the "quite" :-) )?.
What happens while rebooting with the resume2-parameter being passed to kernel after shutting down normally and not hibernating?
Will you need "two" profiles for booting or is the last hibernate-image detected just like under Windows?

Edit: I've taken the risk and tried it.. Seems like it invalidates the old image after loading it once. So fine so good. But resuming fails. System hangs.
I suspect the IPW2200-Driver or my ati-driver (fglrx).

I have a DELL Inspiron 8600c. Has anyone got it running with the same Notebook?
Back to top
View user's profile Send private message
Cheesepie
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 154

PostPosted: Tue Sep 28, 2004 2:52 am    Post subject: Reply with quote

hyp0r wrote:
Seems like swsusp works fine for most of you. Can it be considered as "quite" stable (therefore I quoted the "quite" :-) )?.
What happens while rebooting with the resume2-parameter being passed to kernel after shutting down normally and not hibernating?
Will you need "two" profiles for booting or is the last hibernate-image detected just like under Windows?

Edit: I've taken the risk and tried it.. Seems like it invalidates the old image after loading it once. So fine so good. But resuming fails. System hangs.
I suspect the IPW2200-Driver or my ati-driver (fglrx).

I have a DELL Inspiron 8600c. Has anyone got it running with the same Notebook?


fglrx will definately freeze it. Kill X before suspending, or use the (sucky) radeon drivers.

On another note, whenever I suspend to disk with swusp2, it messes with pcmcia hotplugging, and I have to reboot my laptop to get my wifi card (orinoco) working. Even if I pull all pcmcia cards (wifi card included) before suspending, upon resuiming pcmcia fails to work, even after I restart it.

Anyone have any ideas about that?
Back to top
View user's profile Send private message
hyp0r
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 139

PostPosted: Tue Sep 28, 2004 11:54 am    Post subject: Reply with quote

Yeah, killing X before suspending works. This might be solution as you can kill X automatically when hibernating, but this is far from being optimal.
Time for a new at-driver, as it doesn't even work with Xorg 6.8.
Back to top
View user's profile Send private message
Cheesepie
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 154

PostPosted: Tue Sep 28, 2004 2:45 pm    Post subject: Reply with quote

Ive got my x server setup to use the radeon drivers by default.

Ive also got a different serverlayout configured to use the fglrx drivers, so I can still play Q3 and UT. You can start a non-default serverlayout with:

startx -- -layout fglrx


Last edited by Cheesepie on Wed Sep 29, 2004 8:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
SeeksTheMoon
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 163

PostPosted: Wed Sep 29, 2004 3:32 pm    Post subject: Reply with quote

I tried to patch the latest (2.6.9-rc2) kernel with the software-suspend-2.0.0.109-for-2.6.9-rc2.tar.bz2 patch

applying the patches worked fine (no errors), but I cannot compile my kernel:

Code:

  CC      kernel/power/range.o
  CC      kernel/power/suspend.o
kernel/power/suspend.c: In function `attempt_to_parse_resume_device':
kernel/power/suspend.c:1148: warning: implicit declaration of function `get_fs'
kernel/power/suspend.c:1148: error: incompatible types in assignment
kernel/power/suspend.c:1148: warning: implicit declaration of function `set_fs'
kernel/power/suspend.c:1148: error: `KERNEL_DS' undeclared (first use in this function)
kernel/power/suspend.c:1148: error: (Each undeclared identifier is reported only once
kernel/power/suspend.c:1148: error: for each function it appears in.)
kernel/power/suspend.c: In function `suspend_write_compat_proc':
kernel/power/suspend.c:1250: warning: implicit declaration of function `copy_from_user'
kernel/power/suspend.c: In function `resume2_write_proc':
kernel/power/suspend.c:1455: error: incompatible types in assignment
kernel/power/suspend.c:1455: error: `KERNEL_DS' undeclared (first use in this function)
make[2]: *** [kernel/power/suspend.o] Error 1
make[1]: *** [kernel/power] Error 2
make: *** [kernel] Error 2


so what can I do to get this thing compiled?
I applied all patches from the package, because only 20* 21* 30* 31* isn't enough, e.g. 811-Kconfig-and-Makefile-for-suspend2 has to be applied too to be able to select swsup2 in menuconfig.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 12, 13, 14  Next
Page 8 of 14

 
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