Diferencia entre revisiones de «Placas de Video»

De gacq wiki
Saltar a: navegación, buscar
(Instalando driver privativo nvidia)
 
(No se muestran 2 ediciones intermedias de 2 usuarios)
Línea 1: Línea 1:
= nvidia =
+
=Instalando driver privativo nvidia =
 
==Usando los nuevos paquetes non-free==
 
==Usando los nuevos paquetes non-free==
 
  apt-get install nvidia-kernel-2.6.16-2-686-smp
 
  apt-get install nvidia-kernel-2.6.16-2-686-smp
Línea 19: Línea 19:
 
  EndSection
 
  EndSection
 
   
 
   
 +
 
  Section "Screen"
 
  Section "Screen"
 
         [..]
 
         [..]
Línea 24: Línea 25:
 
         [..]
 
         [..]
 
  EndSection
 
  EndSection
 +
 +
==Build your own nvidia driver (if you build your own kernel)==
 +
apt-get install nvidia-kernel-source nvidia-kernel-common
 +
cd /usr/src
 +
tar xvzf nvidia-kernel-source.tar.gz
 +
cd linux-source-2.6.18
 +
make-kpkg --revision gacq01 modules_image
 +
cd ..
 +
dpkg -i nvidia-kernel-2.6.18_1.0.8776-1+gacq01_i386.deb
 +
apt-get install nvidia-glx nvidia-settings
 +
 +
More info in:
 +
*http://wiki.debian.org/NvidiaGraphicsDrivers
 +
*http://www.leonscape.co.uk/linux/how2-nvg4.html
 +
*http://taliesin.wordpress.com/linux-kernel-custom-compile-the-debian-way/
 +
*http://wiki.clug.org.za/wiki/How_do_I_compile_my_own_kernel_into_a_deb%3F
  
 
==Instalacion de drivers de ndivia como .deb==
 
==Instalacion de drivers de ndivia como .deb==
Línea 119: Línea 136:
 
Option "MetaModes" "1024x768,1024x768;800x600,800x600;640x480,640x480;512x384,512x384"
 
Option "MetaModes" "1024x768,1024x768;800x600,800x600;640x480,640x480;512x384,512x384"
 
EndSection
 
EndSection
 +
</nowiki></pre>
 +
 +
== Problemas con nvidia-glx ==
 +
apt-get install nvidia-glx
 +
 +
Si hay problemas al intentar instalar este paquete y se ven errores como los siguientes, es probable que
 +
anteriormente se haya intentado hacer funcionar la placa NVIDIA con paquetes como el nvidia-glx-legacy lo que deja
 +
un conflicto que puede resolverse.
 +
 +
=== Los errores: ===
 +
<pre><nowiki>
 +
debian:/var/lib/dpkg# apt-get install nvidia-glx
 +
        Reading package lists... Done
 +
        Building dependency tree... Done
 +
        Suggested packages:
 +
        nvidia-settings
 +
        The following NEW packages will be installed
 +
        nvidia-glx
 +
        0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded.
 +
        Need to get 0B/3291kB of archives.
 +
        After unpacking 10.9MB of additional disk space will be used.
 +
        (Reading database ... 131868 files and directories currently installed.)
 +
        Unpacking nvidia-glx (from .../nvidia-glx_1.0.8762-2_i386.deb) ...
 +
        dpkg-divert: `diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx' clashes with `diversion of /
 +
        usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy'
 +
        dpkg: error processing /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb (--unpack):
 +
        subprocess pre-installation script returned error exit status 2
 +
        Errors were encountered while processing:
 +
        /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb
 +
        E: Sub-process /usr/bin/dpkg returned an error code (1)
 +
</nowiki></pre>
 +
 +
=== Listar los paquetes conflictivos: ===
 +
 +
dpkg-divert --list nvidia-glx-legacy
 +
  diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy
 +
  diversion of /usr/lib/xorg/modules/extensions/libglx.a to /usr/lib/nvidia/libglx.a.xlibmesa by nvidia-glx-legacy
 +
  diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/nvidia/libglx.so.xlibmesa by nvidia-glx-legacy
 +
 +
=== Remover los conflictos: ===
 +
 +
<pre><nowiki>
 +
dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.a
 +
dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.so
 +
dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libGLcore.a
 +
</nowiki></pre>
 +
 +
=== Reinstalar el paquete: ===
 +
 +
<pre><nowiki>
 +
Instalar nvidia-glx y ejecutar nvidia-xconfig o modificar xorg.conf manualmente.
 +
 +
Cuando arranca el X, antes de la pantalla de login se debe ver el logo de NVIDIA.     
 
</nowiki></pre>
 
</nowiki></pre>

Revisión actual del 19:25 26 abr 2007

Instalando driver privativo nvidia

Usando los nuevos paquetes non-free

apt-get install nvidia-kernel-2.6.16-2-686-smp
apt-get install nvidia-glx nvidia-settings

Update your /etc/X11/xorg.conf

Section "Module"
        [..]
        #Load   "dri"
        [..]
EndSection

Section "Device"
        Identifier      "NVIDIA"
        Driver          "nvidia"
        Option          "NoLogo"
        Option          "RenderAccel"   "true"
        Option          "NvAGP"       "1"
EndSection

Section "Screen"
        [..]
        Device          "NVIDIA"
        [..]
EndSection

Build your own nvidia driver (if you build your own kernel)

apt-get install nvidia-kernel-source nvidia-kernel-common
cd /usr/src
tar xvzf nvidia-kernel-source.tar.gz
cd linux-source-2.6.18
make-kpkg --revision gacq01 modules_image
cd ..
dpkg -i nvidia-kernel-2.6.18_1.0.8776-1+gacq01_i386.deb
apt-get install nvidia-glx nvidia-settings

More info in:

Instalacion de drivers de ndivia como .deb

Receta en 6 pasos

apt-get install nvidia-kernel-common module-assistant
m-a prepare
m-a a-i -i -t -f nvidia-kernel
depmod -a
apt-get install nvidia-glx nvidia-glx-dev xserver-xorg
dpkg-reconfigure xserver-xorg (solo la primera vez)

Otra manera

Note: As of this time, there are NO nvidia drivers in sarge. You would have to add sid sources to your sources.list and pin the system to sarge to get access to the nvidia drivers. I will try to add this information later. For now it still applies to woody and sid.

Step 0: Cleaning up the mess from nvidia's installer (if you used it first)

Make sure to remove all the garbage created by the nvidia installer, since it places files in different locations, and may cause problems even after following these instructions. It is supposed to have an uninstall option. Something like: nvidia-installer --uninstall should do it. I have not used it myself, since doing it this way is so simple and works very well, and of course: It is `The Debian Way'. The --uninstall option should remove everything it installed (At least I hope so.)

Do NOT try to mix and match with the debian packages and the nvidia installer. They do not get along, they don't agree on where files should go or how just about anything should be done. It's one way or the other. To do it right the Debian way, all traces of the nvidia installer has to go.

For people running sarge or sid: Ensure you have main contrib non-free in your /etc/apt/sources.list since the nvidia drivers are in non-free and some of the helpers are in contrib

# Como root
apt-get update
apt-get install nvidia-kernel-source nvidia-kernel-common
apt-get install kernel-headers-`uname -r`
export KVERS=`uname -r`
export KSRC=/usr/src/kernel-headers-`uname -r`
cd /usr/src
tar xvzf nvidia-kernel-source.tar.gz
cd modules/nvidia-kernel
debian/rules binary_modules
cd ..
dpkg -i nvidia-kernel-`uname -r`*deb
depmod -a
apt-get install nvidia-glx nvidia-glx-dev xserver-xfree86
dpkg-reconfigure xserver-xfree86

Select nvidia instead of nv as your driver

Keep in mind that whenever a new version of the nvidia driver comes out, or whenever you upgrade to a newer kernel, you will have to go through these steps again to build the nvidia kernel module to match the new driver and/or new kernel.

Notes: If the nvidia modules doesn't load automatically and the X server complains about it, add 'nvidia' to /etc/modules to make it auto load on boot.

When upgrading, the simplest is to reboot afterwards to make sure X and the kernel module are using the same version. You could also stop X, rmmod nvidia, modprobe nvidia, start X again.

Cómo tiene que quedar la configuracion del X

Section "Module"
        Load    "glx"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "nvidia"
#aca se pueden poner parametros a la placa de video
#como por ejemplo activar la salida de TV
#leer doc de nVidia
        BusID           "PCI:1:0:0"
EndSection

Las fotos se ven muy oscuras aunque subo el brillo al 100 %

Aparentemente esto pasa con algunos monitores viejos, para corregirlo se puede calibrar el monitor con xgamma que viene con el paquete xbase-clients. Para hacerlo mas facil recomiendo usar el panel de control del driver nvidia (Paquete nvidia-settings)

Salida de TV

xorg.conf

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NoLogo"
Option "TwinView" "true"
Option "TwinViewOrientation" "Clone"
Option "TVOutFormat" "S-VIDEO"
Option "TVStandard" "PAL-G"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "MetaModes" "1024x768,1024x768;800x600,800x600;640x480,640x480;512x384,512x384"
EndSection

Problemas con nvidia-glx

apt-get install nvidia-glx

Si hay problemas al intentar instalar este paquete y se ven errores como los siguientes, es probable que anteriormente se haya intentado hacer funcionar la placa NVIDIA con paquetes como el nvidia-glx-legacy lo que deja un conflicto que puede resolverse.

Los errores:

debian:/var/lib/dpkg# apt-get install nvidia-glx
        Reading package lists... Done
        Building dependency tree... Done
        Suggested packages:
         nvidia-settings
        The following NEW packages will be installed
         nvidia-glx
        0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded.
        Need to get 0B/3291kB of archives.
        After unpacking 10.9MB of additional disk space will be used.
        (Reading database ... 131868 files and directories currently installed.)
        Unpacking nvidia-glx (from .../nvidia-glx_1.0.8762-2_i386.deb) ...
        dpkg-divert: `diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx' clashes with `diversion of /
        usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy'
        dpkg: error processing /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb (--unpack):
        subprocess pre-installation script returned error exit status 2
        Errors were encountered while processing:
        /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)

Listar los paquetes conflictivos:

dpkg-divert --list nvidia-glx-legacy

  diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy
  diversion of /usr/lib/xorg/modules/extensions/libglx.a to /usr/lib/nvidia/libglx.a.xlibmesa by nvidia-glx-legacy
  diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/nvidia/libglx.so.xlibmesa by nvidia-glx-legacy

Remover los conflictos:

dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.a
dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.so
dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libGLcore.a

Reinstalar el paquete:

Instalar nvidia-glx y ejecutar nvidia-xconfig o modificar xorg.conf manualmente.

Cuando arranca el X, antes de la pantalla de login se debe ver el logo de NVIDIA.