个人工具

“UbuntuHelp:NvidiaLaptopBinaryDriverSuspend”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/NvidiaLaptopBinaryDriverSuspend}} {{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}} {|border="1" cellspacing="0" |||||<tablewidth="100%" #F...)
 
 
(未显示2个用户的9个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/NvidiaLaptopBinaryDriverSuspend}}
 
{{From|https://help.ubuntu.com/community/NvidiaLaptopBinaryDriverSuspend}}
 
{{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}}
 
{{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}}
 +
<<Include(Tag/StyleCleanup)>>
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
|||||<tablewidth="100%" #FF0000>'''''This introduction has two steps. It is reported to work with Ubuntu 7.04/6.10/6.06 on multiple setups'''''
+
|||||'''''This introduction is reported to work with Ubuntu 8.10, 8.04, 7.10, 7.04, 6.10, 6.06 on multiple setups'''''
 
|}
 
|}
 
+
'''Note:''' enabling TwinView breaks suspend-to-ram (reported to work with drivers 96XX), if you know better please delete this note and write how you did it ~ [[UbuntuWiki:Bernstein|Bernstein]]
'''Note:''' If this doesn't work for you, you can try the solution below. Please append a note here or mail me ~ [https://wiki.ubuntu.com/Bernstein Bernstein] (Dez.06)
+
 
+
'''Note:''' enabling TwinView breaks suspend-to-ram (reported to work with drivers 96XX), if you know better please delete this note and write how you did it ~ [https://wiki.ubuntu.com/Bernstein Bernstein]
+
 
+
 
'''See also:''' https://launchpad.net/bugs/34043
 
'''See also:''' https://launchpad.net/bugs/34043
 
+
'''First:''' update your /etc/X11/xorg.conf and add an '' "Option "NvAGP" "1" '' line in the '' "Section "Device" '' (note that this is necessary even for PCI-Express graphics cards for resume to work reliably):
'''First:''' update your /etc/X11/xorg.conf and add an '' "Option "NvAGP" "1" '' line in the '' "Section "Device" '' :
+
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "Device"
 
Section "Device"
...
+
        ...
Option          "NvAGP"      "1"
+
        Option          "NvAGP"      "1"
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
+
This bug is tracked at https://launchpad.net/bugs/34043.
'''Secondly:''' disable warm-booting the video hardware on resume by editing your /etc/default/acpi-support as follows :
+
'''Second:''' blacklist the intel_agp module from being loaded by the kernel. This is done by editing /etc/modprobe.d/blacklist and adding the following line:
 +
<pre><nowiki>
 +
blacklist intel_agp
 +
</nowiki></pre>
 +
'''''If you are using Ubuntu 8.04 or previous versions, you also need the following steps:'''''
 +
'''Third:''' disable warm-booting the video hardware on resume by editing your /etc/default/acpi-support as follows:  
 
<pre><nowiki>
 
<pre><nowiki>
 
...
 
...
第28行: 第29行:
 
...
 
...
 
</nowiki></pre>
 
</nowiki></pre>
 
+
(Note: On Gutsy, POST_VIDEO only affects suspend, not hibernate.)
If you don't have a suspend option, you need to manually enable ACPI_SLEEP in the same file. However, this should be enabled by default.
+
You should also disable the SAVE_VBE_STATE option, if it set in your file:
 
+
{|border="1" cellspacing="0"
+
|||||<tablewidth="100%" #FF0000>'''''The following HOWTO is outdated. Try the one above first. Possibly this method works on versions of Ubuntu older than 6.06.'''''
+
|}
+
 
+
Getting suspend to work with the NVIDIA binary drivers requires a bit of foo.
+
 
+
First off this works for me on a Dell Inspiron 8600, im hoping it will work for others.
+
 
+
First off, we need to make sure we have the 7xxx version of the nvidia binary drivers, as they fixed suspend in this version, you can get this in hoary with the nvidia-glx and linux-restricted-modules-`uname -r` package (apt-get install nvidia-glx linux-restricted-modules-<code><nowiki>`</nowiki></code>uname -r<code><nowiki>`</nowiki></code>)
+
 
+
Second we need to update our Xorg.conf to set NvAGP to 1, and make sure we are using the binary drivers, it looks like this..
+
 
+
<pre><nowiki>
+
Section "Device"
+
Driver          "nvidia"
+
Option          "NvAGP"      "1"
+
EndSection
+
</nowiki></pre>
+
 
+
Next off, we need to force the nvidia module to load early, this is done because it hooks in with the agpgart module and needs to load before that module does, so simply add 'nvidia' to the top of /etc/modules
+
 
+
Lastly, we need to configure /etc/default/acpi-support, because by default it is setup to do lots of ugly hacks for random hardware, which ends up breaking suspend with nvidia and making your screen go weird colours :)
+
 
+
Here are the following settings you need to change
+
 
+
 
<pre><nowiki>
 
<pre><nowiki>
# Should we save and restore state using the VESA BIOS Extensions?
 
 
SAVE_VBE_STATE=false
 
SAVE_VBE_STATE=false
 
# Should we attempt to warm-boot the video hardware on resume?
 
POST_VIDEO=false
 
 
# Should we switch the screen off with DPMS on suspend?
 
USE_DPMS=false
 
 
</nowiki></pre>
 
</nowiki></pre>
 
+
If you don't have a suspend option, you need to manually enable ACPI_SLEEP in the same file. However, this should be enabled by default.
You probably also want to enable suspend to ram
+
'''Fourth:''' If you're running 7.10 (gutsy) and you're using compiz (desktop-effects) in conjunction with NVIDIA binary drivers, make sure your "Sync to VBLANK" option in "Advanced Desktop Effects Settings > General > Display settings" is *disabled* (note that this leads to ugly tearing when watching videos). You can set this option to false by running:
 
+
<code><nowiki>gconftool --set /apps/compiz/general/screen0/options/sync_to_vblank 0 --type bool</nowiki></code>
<pre><nowiki>
+
Seriously dont actually do this until you have tried everything else, it make anything with a scrollbar look absolutely horrible, it not a usual culprit too, if it is really necessary for suspend than thats a bug and needs to be fixed.
# Uncomment the next line to enable ACPI suspend to RAM
+
Unless this setting is set to false, the graphical interface (X11) tends to wake up with just a blank screen (possibly with a working mouse cursor). For this bug, see https://launchpad.net/bugs/144732.
ACPI_SLEEP=true
+
If you are running 8.04 (hardy) then three sync-to-vblank options are available in the various screens of System > Administration > NVIDIA X Server Settings (which is part of the nvidia-settings package). It may be necessary to turn all of these options off.
</nowiki></pre>
+
[[category:CategoryLaptop]]
 
+
And then (probably after a reboot to get the AGP stuff working, and restarting X along with it), you should be able to suspend to ram and disk, I recommend suspend to ram because it's much faster!
+
 
+
Any questions feel free to email me
+
 
+
lathiat@bur.st [TrentLloyd]
+
 
+
[[category:CategoryLaptop]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]]
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 23:46的最新版本

<<Include(Tag/StyleCleanup)>>

This introduction is reported to work with Ubuntu 8.10, 8.04, 7.10, 7.04, 6.10, 6.06 on multiple setups

Note: enabling TwinView breaks suspend-to-ram (reported to work with drivers 96XX), if you know better please delete this note and write how you did it ~ Bernstein See also: https://launchpad.net/bugs/34043 First: update your /etc/X11/xorg.conf and add an "Option "NvAGP" "1" line in the "Section "Device" (note that this is necessary even for PCI-Express graphics cards for resume to work reliably):

Section "Device"
        ...
        Option          "NvAGP"       "1"
EndSection

This bug is tracked at https://launchpad.net/bugs/34043. Second: blacklist the intel_agp module from being loaded by the kernel. This is done by editing /etc/modprobe.d/blacklist and adding the following line:

blacklist intel_agp

If you are using Ubuntu 8.04 or previous versions, you also need the following steps: Third: disable warm-booting the video hardware on resume by editing your /etc/default/acpi-support as follows:

...

# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=false

...

(Note: On Gutsy, POST_VIDEO only affects suspend, not hibernate.) You should also disable the SAVE_VBE_STATE option, if it set in your file:

SAVE_VBE_STATE=false

If you don't have a suspend option, you need to manually enable ACPI_SLEEP in the same file. However, this should be enabled by default. Fourth: If you're running 7.10 (gutsy) and you're using compiz (desktop-effects) in conjunction with NVIDIA binary drivers, make sure your "Sync to VBLANK" option in "Advanced Desktop Effects Settings > General > Display settings" is *disabled* (note that this leads to ugly tearing when watching videos). You can set this option to false by running: gconftool --set /apps/compiz/general/screen0/options/sync_to_vblank 0 --type bool Seriously dont actually do this until you have tried everything else, it make anything with a scrollbar look absolutely horrible, it not a usual culprit too, if it is really necessary for suspend than thats a bug and needs to be fixed. Unless this setting is set to false, the graphical interface (X11) tends to wake up with just a blank screen (possibly with a working mouse cursor). For this bug, see https://launchpad.net/bugs/144732. If you are running 8.04 (hardy) then three sync-to-vblank options are available in the various screens of System > Administration > NVIDIA X Server Settings (which is part of the nvidia-settings package). It may be necessary to turn all of these options off.