On Sunday 09 April 2006 23:43, Troy Arnold wrote: > On Sat, Apr 08, 2006 at 06:16:25PM +0100, Pierce Ward wrote: > > Hey guys, > > > > Just noticed the latest nvidia drivers have been released, "1.0-8756" ( > > http://www.nvnews.net/vbulletin/showthread.php?t=67865). > > In the changelog I noticed: > > > > * Improved power management support with Linux >= 2.6.14 > > and added support for suspend-to-disk. > > > > Now I've tried tried suspend with amd64 before, because iirc, there were > > problems when using the binary nvidia driver. Perhaps this has fixed > > those problems? Anyone had a shot yet? I lent my laptop to a friend so I > > wont be able to test it until probably monday. Although I am already > > enjoying the composite fixes :) > > I just started playing with it. It suspends and resumes... but > that the screen is black. It does come back up though, so I'm hoping that > playing around with vbetool will enable restoration of the display. > The following has been posted on the suspend2 mailing list: Probably worth quoting the relevant section in full (given the lack of reading these HUGE files seem to get):
Appendix Q. Power Management Support
______________________________________________________________________________
The NVIDIA driver includes support for both APM- and ACPI- based power
management. This driver will support APM-based suspend and resume, as well
as
ACPI standby (S3) and suspend (S4).
To use APM, your system's BIOS will need to support APM, rather than ACPI.
Many, but not all, of the GeForce2- and GeForce4-based laptops include APM
support. You can check for APM support via the procfs interface (check for
the
existence of /proc/apm) or via the kernel's boot output:
% dmesg | grep -i apm
a message similar to this indicates APM support:
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
or a message like this indicates no APM support:
No APM support in Kernel
Please note: If you are using Linux kernel 2.6 and your kernel was
configured
with support for both ACPI and APM, the NVIDIA kernel module will be built
with ACPI Power Management support. If you wish to use APM, you will need to
rebuild the Linux kernel without ACPI support and reinstall the NVIDIA Linux
graphics driver.
Sometimes chipsets lose their AGP configuration during suspend, and may
cause
corruption on the bus upon resume. The AGP driver is required to save and
restore relevant register state on such systems; NVIDIA's NvAGP is notified
of
power management events and ensures its configuration is kept intact across
suspend/resume cycles.
Linux 2.4 AGPGART does not support power management, Linux 2.6 AGPGART does,
but only for a few select chipsets. If you use either of these two AGP
drivers
and find your system fails to resume reliably, you may have more success
with
NVIDIA's NvAGP driver.
Disabling AGP support (please see Appendix F for more details on disabling
AGP) will also work around this problem.
More recent systems are more likely to support ACPI. ACPI is supported by
the
NVIDIA graphics driver in 2.6 and newer kernels. The driver supports ACPI
standby (S3) and includes beta support for ACPI suspend (S4).
If you enable ACPI S4 support via suspend2 patches, you will need to tweak
the
Linux kernel such that it dynamically determines the amount of pages needed
by
the drivers that will be suspended in the system. This is done by issuing
the
following command from root:
% echo 0 > /proc/suspend2/extra_pages_allowance
The system does NOT need rebooting, and as a matter of fact, the setting is
volatile over reboots. You will need to include the tweak in your startup
scripts. However, failure to perform the tweak will result in a hang going
to
sleep. For further information regarding suspend2 patches, please see
http://www.suspend2.net/.
Which boils down to add the following to your /etc/hibernate/hibernate.conf:
ProcSetting extra_pages_allowance 0
--
Karol Krizka
pgpBVhoEFj7Fb.pgp
Description: PGP signature
_______________________________________________ LinuxR3000 mailing list [email protected] http://lists.pcxperience.com/cgi-bin/mailman/listinfo/linuxr3000 Wiki at http://prinsig.se/weekee/
