|
|
#1 | |
|
Registered User
Join Date: Aug 2005
Posts: 7
|
Hi,
Since upgrading to the 2.6.14 kernel from kernel.org I can't get S3 suspend working anymore. (echo mem > /sys/power/state) AGP is disabled in the kernel, and using NvAGP=1 The following is seen as the system attempts to sleep NVRM: ACPI: unsupported event: 2 Could not suspend device 0000:01:00.0: error -1 My card is (in a dell D800): 0000:01:00.0 VGA compatible controller: nVidia Corporation NV34M [GeForce FX Go 5200] (rev a1) Using 7676 with gentoo patches (r1) - the same thing happens with straight 7676 as well. Any ideas? Cheers Matt |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Nov 2005
Posts: 4
|
Hi,
I am getting the exact same error messages when trying the same "echo mem > /sys/power/state". NVRM: ACPI: unsupported event: 2 Could not suspend device 0000:01:00.0: error -1 I am running gentoo 2.6.12-r2 kernel on a Toshiba m200 laptop. I have NvAGP=0 in xorg.conf. Nvidia bug report log attached. Did you manage to get your suspend working. Or has anyone have an idea what the problem might be? F. ![]() |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2005
Posts: 67
|
IIRC the nvidia graphic drivers doesn't have full support for power management through ACPI. It's still using APM for that although they are working on it.
__________________
Computer stuff I've owned at one time or another: CPUs: K6-3 400, Duron 600, Thunderbird 1400, Barton 2500, Duron 1800, A-64 3700+, C2D E7200 Motherboards: Shuttle Via MVP, Asus A7V, Asus A7V133, Asus N8X-VM400, Abit NF7, Abit UL8, Asus P5Q Pro Graphics Cards: TNT2, GF 2 MX, GF 2 Pro, GF4 MX, GF FX 5500, GF 6600, GF 7600 GT, GF 9800GT |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Sep 2004
Posts: 44
|
Quote:
For the time being I'm using the older kernel. |
|
|
|
|
|
|
#5 | |
|
Registered User
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
|
Quote:
For whatever reason, the driver is getting an S2 event when it should get S3. So, what to do? Edit the code and set it to handle S2 like S3. It's a pretty trivial edit to make. If people have trouble working it out, I'll post more details, but I have to run for now. I have a Tecra M3 and with 2.6.14 and some sata patches, it will suspend and resume just fine.
__________________
--phil |
|
|
|
|
|
|
#6 | |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
Recent Linux 2.6 kernels send PM_EVENT_* messages; PM_EVENT_ON and PM_EVENT_SUSPEND used to match PM_SUSPEND_ON and PM_SUSPEND_MEM, but in Linux 2.6.14, PM_EVENT_SUSPEND is #define'd to 2, hence the failure.
|
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Nov 2005
Posts: 4
|
Hi,
Quote:
F. |
|
|
|
|
|
|
#8 | |
|
Registered User
Join Date: Sep 2004
Posts: 44
|
Quote:
Can I grep through the source code for that define statement and change it to 3? |
|
|
|
|
|
|
#9 | |
|
Registered User
Join Date: Sep 2004
Posts: 44
|
Quote:
http://members.westnet.com.au/rbirdman/suspend.html I found a link that explained it better but lost it. |
|
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Nov 2005
Posts: 5
|
Quote:
I editet /usr/src/linux/include/linux/pm.h on Line 214 and changed "#define PM_EVENT_SUSPEND 2" to "#define PM_EVENT_SUSPEND 3". Then I recompiled my Kernel: "make clean && make-kpkg clean", "make-kpkg --initrd --revision ver2 binary-arch". After reboot I tried to load the nvidia module and did an "echo -n "mem" /sys/power/state" and it seemed to work After wakeup the display was distroyed, but I've found a script to get around that earlier this week. My /etc/acpi/actions/lm_lid.sh looks like: Code:
#!/bin/bash # lid button pressed/released event handler /usr/sbin/laptop_mode stop chvt 1 modprobe -r ehci_hcd modprobe -r uhci_hcd sync echo "vbetool save" vbetool vbestate save > /tmp/sleeping echo -n "mem" > /sys/power/state vbetool post echo "restore" vbetool vbestate restore < /tmp/sleeping rm /tmp/sleeping modprobe uhci_hcd modprobe ehci_hcd echo "brightness:3" > /proc/acpi/toshiba/lcd /usr/sbin/laptop_mode start chvt 7 Thank you so much for your hint, Zander!!! Andreas |
|
|
|
|
|
|
#11 | |
|
Registered User
Join Date: Sep 2004
Posts: 44
|
Quote:
If I get a chance I'll try it tonight. |
|
|
|
|
|
|
#12 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
@rbirdman: no, this is not a feature, the NVIDIA Linux graphics driver needs to be updated.
|
|
|
|
![]() |
| Thread Tools | |
|
|