Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-23-04, 03:07 PM   #1
Bernd-Walter
Registered User
 
Join Date: Oct 2004
Posts: 2
Angry Suspend with Nvidia

I have a Medion md40100 laptop with comes with an Nvidia G-Force 5300.

Everything works fine, even Suspend to Disk works when i use the Kernel "nv" or "vesa" device in X.

When I switch to the Nvidia-Driver the laptop starts to suspend and after a while I get the errormessage " NVRM: ACPI : unsupported event = 4". After that the laptop brings up the X-Server again.

Does anybody has any idea how to fix this.

thanks
Bernd-Walter is offline   Reply With Quote
Old 10-23-04, 03:12 PM   #2
andyrock
Registered User
 
andyrock's Avatar
 
Join Date: Jan 2004
Location: EU / Portugal
Posts: 110
Default Re: Suspend with Nvidia

wait and hope probably the next driver will have better acpi support, but only nvidia devs know it
__________________
AndyRock

--
1. Toshiba M30-742 | Centrino/Pentium-M 1700mhz | Geforce FX 5200Go
2. Celeron (Tualatin) 1400mhz | Geforce Ti 4800SE
andyrock is offline   Reply With Quote
Old 10-24-04, 06:27 AM   #3
haggis.haggis
Registered User
 
Join Date: Oct 2004
Posts: 6
Angry Re: Suspend with Nvidia

I had no trouble doing suspend to ram with kernel 2.6.7, but now I've moved to 2.6.9 I get a very similar message:

Oct 24 11:27:07 lappy kernel: NVRM: ACPI: unsupported event: 3
Oct 24 11:27:07 lappy kernel: Could not suspend device 0000:01:00.0: error -1

It's wierd, because it worked under 2.6.7... mostly. I could suspend, but when I resumed the screen would be at about half its normal brightness. Closing the lid and reopening it 2 seconds later restored it to its former glory!

Please NVidia developers, give us better acpi support!
haggis.haggis is offline   Reply With Quote
Old 10-25-04, 01:02 PM   #4
haggis.haggis
Registered User
 
Join Date: Oct 2004
Posts: 6
Wink Re: Suspend with Nvidia [patch provided]

Hi,

Ok, I've written a really quick and dirty patch that fixes this problem. NOTE: this is a horrible, bastardised, foul, butt-ugly patch that any reasonable kernel developer would be ashamed of. If seems to work fine for me, but your mileage may vary.

It also includes the VMALLOC patch to allow it to build on 2.6.8.1 and later kernels. Anyway, enough of that, here you go:

-- NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c 2004-07-27 16:33:20.000000000 +0100
+++ NVIDIA-Linux-x86-1.0-6111-pkg1.carl/usr/src/nv/nv.c 2004-10-25 17:55:43.931278568 +0100
@@ -19,6 +19,9 @@
MODULE_ALIAS_CHARDEV_MAJOR(NV_MAJOR_DEVICE_NUMBER) ;
#endif

+/* fix for 2.6.9-rc# kernels where __VMALLOC_RESERVE is not exported */
+#define __VMALLOC_RESERVE (128 << 20)
+
/*
* our global state; one per device
*/
@@ -3694,19 +3697,16 @@

switch (state)
{
- case PM_SAVE_STATE:
- nv_printf(NV_DBG_INFO, "NVRM: ACPI: received standby event\n");
+ case NV_PM_ACPI_STANDBY:
+ nv_printf(NV_DBG_INFO, "NVRM: ACPI: received standby event: %d\n", state);
status = rm_power_management(nv, 0, NV_PM_ACPI_STANDBY);
break;

- case PM_RESUME:
- nv_printf(NV_DBG_INFO, "NVRM: ACPI: received resume event\n");
+ default:
+ nv_printf(NV_DBG_INFO, "NVRM: ACPI: received resume event: %d\n", state);
status = rm_power_management(nv, 0, NV_PM_ACPI_RESUME);
break;

- default:
- nv_printf(NV_DBG_WARNINGS, "NVRM: ACPI: unsupported event: %d\n", state);
- return -1;
}

if (status != RM_OK)


Have phun!
Haggis.
haggis.haggis is offline   Reply With Quote
Old 10-27-04, 04:45 PM   #5
Bernd-Walter
Registered User
 
Join Date: Oct 2004
Posts: 2
Default Re: Suspend with Nvidia

Hallo,

I applied the patch and now it's suspending fine.

The next problem now is that after resuming the screen stays black, and the only chance is to shutdown and reboot. So the waking up seems to be not working.

Maybe you have another patch for this.

Thanks Bernd
Bernd-Walter is offline   Reply With Quote
Old 11-03-04, 06:29 AM   #6
hgfelger
Registered User
 
Join Date: Nov 2002
Posts: 10
Default Re: Suspend with Nvidia [patch provided]

Salut Haggis,
Quote:
Originally Posted by haggis.haggis
Hi,

Ok, I've written a really quick and dirty patch that fixes this problem. NOTE: this is a horrible, bastardised, foul, butt-ugly patch that any reasonable kernel developer would be ashamed of. If seems to work fine for me, but your mileage may vary.
Haggis.
thanks a lot for this hack ;-) I also posted it to acpi-devel-list so others may use it too.
My mileage is great (-:

Cheers hartwig
hgfelger is offline   Reply With Quote
Old 11-03-04, 11:22 AM   #7
haggis.haggis
Registered User
 
Join Date: Oct 2004
Posts: 6
Default Re: Suspend with Nvidia

Quote:
Originally Posted by Bernd-Walter
Hallo,

I applied the patch and now it's suspending fine.

The next problem now is that after resuming the screen stays black, and the only chance is to shutdown and reboot. So the waking up seems to be not working.

Maybe you have another patch for this.

Thanks Bernd
Sorry Bernd, but I don't have a patch for you ... I originally suffered the exact same problem, but I figured out that it was caused by the NVidia driver not detecting the correct ACPI signal on wakeup... the patch I posted fixed it for me.

I wish I could help some more... On a slightly different note, when I resume the screen is very dim. I need to close the laptop (Toshiba Satellite Pro M30) lid, wait a few seconds, open it up again and *bingo* the screen is back to its proper brightness level. Weird, but hey - it works
H.
haggis.haggis is offline   Reply With Quote
Old 11-03-04, 12:00 PM   #8
exabrial
Registered User
 
Join Date: Nov 2004
Posts: 1
Default Re: Suspend with Nvidia

I'm receieving the same error, but i'm having trouble applying the patch. Can you give me the command you are using to apply the patch and it's syntax? and after i apply the patch, do i have to recompile anything?

Thank you!
exabrial is offline   Reply With Quote

Old 11-03-04, 12:19 PM   #9
haggis.haggis
Registered User
 
Join Date: Oct 2004
Posts: 6
Default Re: Suspend with Nvidia

Quote:
Originally Posted by exabrial
I'm receieving the same error, but i'm having trouble applying the patch. Can you give me the command you are using to apply the patch and it's syntax? and after i apply the patch, do i have to recompile anything?

Thank you!
Ok, let's say that you've got the patch in a file called "nvidia-suspend-patch.txt" (I've attached a copy of it to this post, because the html formatting in this forum ****ed up the last one):

First, shutdown X - the driver won't install with it running. Then type in these commands:

$ cd /path/to/nvidia/driver
$ sh NVIDIA-Linux-x86-1.0-6111-pkg1.run -x
$ cd NVIDIA-Linux-x86-1.0-6111-pkg1
$ patch -p0 < /path/to/whereever/you/saved/nvidia-suspend-patch.txt
$ cd NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
$ su -
[ enter your root password now ]
$ make install

And that should be it! Let us know how you get on... oh, and remember, the patch is not done the Right Way (tm) - it is done the Way I Hacked It To Make It Work (tm). If it breaks, then it's your own fault for trusting my dodgy hacking!
Attached Files
File Type: txt nvidia-suspend-patch.txt (1.2 KB, 1462 views)
haggis.haggis is offline   Reply With Quote
Old 04-07-05, 06:55 PM   #10
Caspian
Registered User
 
Join Date: Apr 2005
Posts: 2
Default Re: Suspend with Nvidia

I tried installing the patch, but I got this error:

Quote:
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c 2004-07-27 16:33:20.000000000 +0100
|+++ NVIDIA-Linux-x86-1.0-6111-pkg1.carl/usr/src/nv/nv.c 2004-10-25 17:55:43.000000000 +0100
--------------------------
Am I doing something wrong?

My NVIDIA driver is named "NVIDIA-Linux-x86-1.0-7174-pkg1". Would this be something to do with it? Then again, I don't have a "NVIDIA-Linux-x86-1.0-7174-pkg1.carl" as the patch wants. Hmm... will this patch not work with my particular system?

Thanks.
Caspian is offline   Reply With Quote
Old 04-08-05, 12:44 PM   #11
Nico65
Registered User
 
Join Date: Apr 2005
Posts: 6
Default Re: Suspend with Nvidia

Quote:
The next problem now is that after resuming the screen stays black, and the only chance is to shutdown and reboot. So the waking up seems to be not working.
same thing here but using Software Suspend 2. Looks like a very common problem, if anyone found any kind of solution, keep me in touch...
Nico65 is offline   Reply With Quote
Old 07-17-05, 08:14 PM   #12
Aderyn
Registered User
 
Join Date: Jul 2005
Posts: 1
Default Re: Suspend with Nvidia

This thread is a bit old, but since it shows up first when you google for "+linux +nvidia +suspend", I'd like to add a couple of things. Might save someone a bit of frustration.

The agpgart needs to be compiled as a module. For people using precompiled kernels, this shouldn't be a problem, but for thoose who configure their own kernels it might help.

They mention earlier in the thread that the 7xxx-series of the nvidia-driver breaks suspend. I've only tried 6629 and 6111 but they both work fine with linux 2.6.12.2, without any patching.

For the record, I have a:
0000:01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 Go AGP 8x] (rev a1)
Aderyn is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 09:35 PM
Rumor regarding lack of 680 availability ViN86 Rumor Mill 6 05-09-12 05:48 PM
rh7.3 and nvidia vcrispo NVIDIA Linux 11 07-31-02 09:57 PM

All times are GMT -5. The time now is 01:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.