Placas de Video

De gacq wiki
Saltar a: navegación, buscar

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"

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

Section "Screen"
        Device          "NVIDIA"

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"

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"

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


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"

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:
        The following NEW packages will be installed
        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:
        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/ to /usr/lib/nvidia/ 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/
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.