个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/NvidiaLaptopBinaryDriverSuspend}} {{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}} {|border="1" cellspacing="0" |||||<tablewidth="100%" #F...)
 
第2行: 第2行:
 
{{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}}
 
{{Languages|UbuntuHelp:NvidiaLaptopBinaryDriverSuspend}}
 
{|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'''''
+
|||||<tablewidth="100%" #FF0000>'''''This introduction is reported to work with Ubuntu 7.04/6.10/6.06 on multiple setups'''''
 
|}
 
|}
 
'''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]
 
'''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]
第19行: 第17行:
 
</nowiki></pre>
 
</nowiki></pre>
  
'''Secondly:''' disable warm-booting the video hardware on resume by editing your /etc/default/acpi-support as follows :
+
This bug is tracked at https://launchpad.net/bugs/34043.
 +
 
 +
'''Second:''' disable warm-booting the video hardware on resume by editing your /etc/default/acpi-support as follows:  
 
<pre><nowiki>
 
<pre><nowiki>
 
...
 
...
第29行: 第29行:
 
</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.
+
(Note: On Gutsy, POST_VIDEO only affects suspend, not hibernate.)
 
+
{|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
+
You should also disable the SAVE_VBE_STATE option, if it set in your file:
  
 
<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>
  
You probably also want to enable suspend to ram
+
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.
 
+
<pre><nowiki>
+
# Uncomment the next line to enable ACPI suspend to RAM
+
ACPI_SLEEP=true
+
</nowiki></pre>
+
  
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!
+
'''Third:''' 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*. You can set this option to false by running:
  
Any questions feel free to email me
+
<code><nowiki>gconftool --set /apps/compiz/general/screen0/options/sync_to_vblank 0 --type bool</nowiki></code>
  
lathiat@bur.st [TrentLloyd]
+
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.
  
 
[[category:CategoryLaptop]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryLaptop]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月21日 (三) 18:27的版本

<tablewidth="100%" #FF0000>This introduction is reported to work with Ubuntu 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"  :

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

This bug is tracked at https://launchpad.net/bugs/34043.

Second: 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.

Third: 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*. You can set this option to false by running:

gconftool --set /apps/compiz/general/screen0/options/sync_to_vblank 0 --type bool

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.