You are not logged in.

#1 2007-01-18 12:42:42

rggjan
Member
Registered: 2007-01-06
Posts: 69

suspend/hibernate with nvidia - graphics card [SOLVED]

Can anyone tell me, how to get suspend to ram / suspend to disk running? I looked at the wiki but there's nowhere anything about suspend to ram...

I'm using the proprietary drivers for my nvidia card, which work fine. But I read that this could make some problems with hibernating etc. Any idea about blacklisting some modules or something like that? I had to do this for Ubuntu, but I don't know Arch yet...

Thanks for help

Cheers
Jan

Offline

#2 2007-01-18 12:53:17

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

Latest nvidia drivers seem to be suspend friendly - at least I'm using suspend2 without unloading the module.

I'd suggest you to install kernel26beyond or kernel26suspend2 (which feature suspend2) and hibernate-script. Then it's only a matter of setting some things in /etc/hibernate.

Offline

#3 2007-01-18 12:57:27

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

ok, I'll try that. So I don't need the nvidia-suspend2 drivers? And which commands to use to suspend to disk and suspend to ram?

Offline

#4 2007-01-18 13:10:09

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

If you install suspend2 kernel, you have to install nvidia-suspend2, similarly with beyond kernel you have to install nvidia-beyond.

I don't think suspend2 supports suspend-to-ram. You can either set it to save the image to a swap partition or to a file. Anyway, it's quite fast, due to compression.

After you set up things in /etc/hibernate/suspend2.conf and common.conf, you have to add "resume2=" line to your kernel line in grub/lilo, then reboot. Afterwards executing "hibernate" should hibernate.

I found a wiki page describing it in detail (wiki says to add NvAgp "1" option to xorg.conf, it wasn't necessary in my case).

Have fun.

Offline

#5 2007-01-20 09:56:01

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

ok, got everything to work. But I had some problems with networking and beryl... I had to write a little script to get them working with Hibernate.

Even Suspend to Ram works! (Now I combined these two... ;-)

If anyone needs help with suspend to ram, beryl, networking, nvidia or something like that, just ask... maybe I can help now it works here

Cheers
Jan

Offline

#6 2007-01-20 10:15:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

Great.

Offline

#7 2007-01-29 08:27:17

edson
Member
From: Oslo, Norway
Registered: 2006-03-02
Posts: 14

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

rggjan wrote:

ok, got everything to work. But I had some problems with networking and beryl... I had to write a little script to get them working with Hibernate.

Even Suspend to Ram works! (Now I combined these two... ;-)

If anyone needs help with suspend to ram, beryl, networking, nvidia or something like that, just ask... maybe I can help now it works here

Cheers
Jan

Hey! I need help here. Have tried before, but it's quite a while ago. Could you post your solution or something smile

I have a laptop with Nvidia Geforce Go 6600 MX smile

Thanks


- Edson

Offline

#8 2007-02-05 07:44:14

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

Oh, hi Edson

After I got it working without Beryl (and I think, you did that, right?) I created the following Script:

#!/bin/sh
killall beryl-manager
killall beryl
killall emerald
hibernate
sudo -u jan beryl-manager
/etc/rc.d/network restart

After that, I created a gnome starter with "gksudo /path/to/this/script"... Now I can start hibernate with just a single click on this button in my gnome-panel big_smile

Cheers
Jan

Offline

#9 2007-02-05 08:33:33

edson
Member
From: Oslo, Norway
Registered: 2006-03-02
Posts: 14

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

rggjan wrote:

Oh, hi Edson

After I got it working without Beryl (and I think, you did that, right?) I created the following Script:

#!/bin/sh
killall beryl-manager
killall beryl
killall emerald
hibernate
sudo -u jan beryl-manager
/etc/rc.d/network restart

After that, I created a gnome starter with "gksudo /path/to/this/script"... Now I can start hibernate with just a single click on this button in my gnome-panel big_smile

Cheers
Jan

Cool! I actually got it to work using the "suspend" button on my laptop. Never worked before, now it suddenly did, but of course it fails to resume if I don't kill compiz/beryl

So your script doesn't implement this with the hibernate script, or gnome-power-manager? For my part seems gnome-power-manager uses something else, cause it fails to suspend. No big issue though..


- Edson

Offline

#10 2007-02-05 10:17:25

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

Hm? I don't understand what you mean. You say you're using the gnome-power-manager and not the hibernate-scripts? And is it working now or do you have still problems?

Offline

#11 2007-02-05 10:46:43

edson
Member
From: Oslo, Norway
Registered: 2006-03-02
Posts: 14

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

rggjan wrote:

Hm? I don't understand what you mean. You say you're using the gnome-power-manager and not the hibernate-scripts? And is it working now or do you have still problems?

To be more specific.

I'm using neither.

I'm using the "suspend" button on my laptop. Which in my case is Fn+F3. Both hibernate scripts and gnome-power-manager fails. But I guess hibernate script would work with your script. I will have to figure out how to link gnome-power-manager with the suspend button thingy smile

So, Suspend to RAM is working. But I didn't do anything to fix it, must be because of the nvidia update or something smile (Because this didn't work before)

Thanks for your input smile


- Edson

Offline

#12 2007-02-06 07:53:03

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: suspend/hibernate with nvidia - graphics card [SOLVED]

Ah, OK, thats great... So then, have fun with suspend to ram wink

Cheers
Jan

Offline

Board footer

Powered by FluxBB