Driver Nvidia no Debian Squeeze
Estando o
Debian Squeeze mais próximo do congelamento dos pacotes, agora ficou mais fácil ter instalados os
drivers 3D da
Nvidia sem ter que correr atrás do binário da própria.
1° passo - feche o ambiente gráfico:
Ctrl+Alt+F1
2° passo - logue-se com seu usuário normal e pare seu Gerenciador de Login:
sudo /etc/init.d/gdm stop
* Substitua gdm pelo seu Gerenciador de Login correspondente (kdm, slim, xdm ou outro).
3° passo - atualize as listas de pacotes e instale os programas necessários:
sudo apt-get update
$ sudo apt-get install build-essential linux-headers-`uname -r` nvidia-kernel-dkms nvidia-kernel-195.36.24 nvidia-settings nvidia-xconfig module-assistant
4° passo - caso já tenha um xorg.conf pronto, pule o passo abaixo:
sudo nvidia-xconfig
5° passo - edite seu arquivo
/etc/X11/xorg.conf e deixe-o parecido com este:
sudo nano /etc/X11/xorg.conf
* Substitua o nano pelo editor de sua preferência (caso use o nano, salve e saia com Ctrl+o e Ctrl+x).
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
Section "Files"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "NoLogo" "True"
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "AddARGBGLXVisuals" "True"
Option "NvAGP" "1"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Exemplo do meu xorg.conf:
# /etc/X11/xorg.conf (Xorg X Window System server configuration file)
#
# This file was generated by fll_xorgconfig, the F.U.L.L.S.T.O.R.Y.
# Xorg Configuration tool.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
Section "ServerLayout"
Identifier "Xorg Configured"
Screen "Screen 0"
EndSection
Section "Device"
Identifier "Device 0"
Driver "nvidia"
BoardName "nVidia Corporation G72 [GeForce 7300 LE]"
BusID "PCI:5:0:0"
EndSection
Section "Monitor"
Identifier "Monitor 0"
ModelName "W1952"
HorizSync 30-83
VertRefresh 56-75
# 640x350 @ 85.00 Hz (GTF) hsync: 31.28 kHz; pclk: 25.02 MHz
Modeline "640x350" 25.02 640 656 720 800 350 351 354 368 -HSync +Vsync
# 640x400 @ 85.00 Hz (GTF) hsync: 35.78 kHz; pclk: 29.20 MHz
Modeline "640x400" 29.20 640 664 728 816 400 401 404 421 -HSync +Vsync
# 640x480 @ 60.00 Hz (GTF) hsync: 29.82 kHz; pclk: 23.86 MHz
Modeline "640x480" 23.86 640 656 720 800 480 481 484 497 -HSync +Vsync
# 640x480 @ 72.00 Hz (GTF) hsync: 36.07 kHz; pclk: 29.43 MHz
Modeline "640x480" 29.43 640 664 728 816 480 481 484 501 -HSync +Vsync
# 640x480 @ 75.00 Hz (GTF) hsync: 37.65 kHz; pclk: 30.72 MHz
Modeline "640x480" 30.72 640 664 728 816 480 481 484 502 -HSync +Vsync
# 640x480 @ 85.00 Hz (GTF) hsync: 42.92 kHz; pclk: 35.71 MHz
Modeline "640x480" 35.71 640 672 736 832 480 481 484 505 -HSync +Vsync
# 640x480 @ 100.00 Hz (GTF) hsync: 50.90 kHz; pclk: 43.16 MHz
Modeline "640x480" 43.16 640 680 744 848 480 481 484 509 -HSync +Vsync
# 720x400 @ 85.00 Hz (GTF) hsync: 35.78 kHz; pclk: 32.64 MHz
Modeline "720x400" 32.64 720 744 816 912 400 401 404 421 -HSync +Vsync
# 768x576 @ 60.00 Hz (GTF) hsync: 35.82 kHz; pclk: 34.96 MHz
Modeline "768x576" 34.96 768 792 872 976 576 577 580 597 -HSync +Vsync
# 768x576 @ 72.00 Hz (GTF) hsync: 43.27 kHz; pclk: 42.93 MHz
Modeline "768x576" 42.93 768 800 880 992 576 577 580 601 -HSync +Vsync
# 768x576 @ 75.00 Hz (GTF) hsync: 45.15 kHz; pclk: 45.51 MHz
Modeline "768x576" 45.51 768 808 888 1008 576 577 580 602 -HSync +Vsync
# 768x576 @ 85.00 Hz (GTF) hsync: 51.42 kHz; pclk: 51.84 MHz
Modeline "768x576" 51.84 768 808 888 1008 576 577 580 605 -HSync +Vsync
# 768x576 @ 100.00 Hz (GTF) hsync: 61.10 kHz; pclk: 62.57 MHz
Modeline "768x576" 62.57 768 816 896 1024 576 577 580 611 -HSync +Vsync
# 800x600 @ 56.00 Hz (GTF) hsync: 34.72 kHz; pclk: 35.55 MHz
Modeline "800x600" 35.55 800 832 912 1024 600 601 604 620 -HSync +Vsync
# 800x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 38.22 MHz
Modeline "800x600" 38.22 800 832 912 1024 600 601 604 622 -HSync +Vsync
# 800x600 @ 72.00 Hz (GTF) hsync: 45.07 kHz; pclk: 46.87 MHz
Modeline "800x600" 46.87 800 840 920 1040 600 601 604 626 -HSync +Vsync
# 800x600 @ 75.00 Hz (GTF) hsync: 47.02 kHz; pclk: 48.91 MHz
Modeline "800x600" 48.91 800 840 920 1040 600 601 604 627 -HSync +Vsync
# 800x600 @ 85.00 Hz (GTF) hsync: 53.55 kHz; pclk: 56.55 MHz
Modeline "800x600" 56.55 800 840 928 1056 600 601 604 630 -HSync +Vsync
# 800x600 @ 100.00 Hz (GTF) hsync: 63.60 kHz; pclk: 68.18 MHz
Modeline "800x600" 68.18 800 848 936 1072 600 601 604 636 -HSync +Vsync
# 1024x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 48.96 MHz
Modeline "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +Vsync
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
# 1024x768 @ 70.00 Hz (GTF) hsync: 56.00 kHz; pclk: 76.16 MHz
Modeline "1024x768" 76.16 1024 1080 1192 1360 768 769 772 800 -HSync +Vsync
# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline "1024x768" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1024x768" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
# 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
Modeline "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync
# 1152x864 @ 75.00 Hz (GTF) hsync: 67.65 kHz; pclk: 104.99 MHz
Modeline "1152x864" 104.99 1152 1224 1352 1552 864 865 868 902 -HSync +Vsync
# 1152x864 @ 60.00 Hz (GTF) hsync: 53.70 kHz; pclk: 81.62 MHz
Modeline "1152x864" 81.62 1152 1216 1336 1520 864 865 868 895 -HSync +Vsync
# 1152x864 @ 85.00 Hz (GTF) hsync: 77.10 kHz; pclk: 119.65 MHz
Modeline "1152x864" 119.65 1152 1224 1352 1552 864 865 868 907 -HSync +Vsync
# 1152x864 @ 100.00 Hz (GTF) hsync: 91.50 kHz; pclk: 143.47 MHz
Modeline "1152x864" 143.47 1152 1232 1360 1568 864 865 868 915 -HSync +Vsync
# 1152x900 @ 77.00 Hz (GTF) hsync: 72.46 kHz; pclk: 112.45 MHz
Modeline "1152x900" 112.45 1152 1224 1352 1552 900 901 904 941 -HSync +Vsync
# 1152x900 @ 66.00 Hz (GTF) hsync: 61.71 kHz; pclk: 94.79 MHz
Modeline "1152x900" 94.79 1152 1224 1344 1536 900 901 904 935 -HSync +Vsync
# 1280x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 80.14 MHz
Modeline "1280x768" 80.14 1280 1344 1480 1680 768 769 772 795 -HSync +Vsync
# 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
Modeline "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
# 1280x960 @ 60.00 Hz (GTF) hsync: 59.64 kHz; pclk: 102.10 MHz
Modeline "1280x960" 102.10 1280 1360 1496 1712 960 961 964 994 -HSync +Vsync
# 1280x960 @ 72.00 Hz (GTF) hsync: 72.07 kHz; pclk: 124.54 MHz
Modeline "1280x960" 124.54 1280 1368 1504 1728 960 961 964 1001 -HSync +Vsync
# 1280x960 @ 75.00 Hz (GTF) hsync: 75.15 kHz; pclk: 129.86 MHz
Modeline "1280x960" 129.86 1280 1368 1504 1728 960 961 964 1002 -HSync +Vsync
# 1280x960 @ 85.00 Hz (GTF) hsync: 85.68 kHz; pclk: 149.43 MHz
Modeline "1280x960" 149.43 1280 1376 1512 1744 960 961 964 1008 -HSync +Vsync
# 1280x960 @ 100.00 Hz (GTF) hsync: 101.70 kHz; pclk: 178.99 MHz
Modeline "1280x960" 178.99 1280 1376 1520 1760 960 961 964 1017 -HSync +Vsync
# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
# 1280x1024 @ 67.00 Hz (GTF) hsync: 71.29 kHz; pclk: 123.19 MHz
Modeline "1280x1024" 123.19 1280 1368 1504 1728 1024 1025 1028 1064 -HSync +Vsync
# 1280x1024 @ 75.00 Hz (GTF) hsync: 80.17 kHz; pclk: 138.54 MHz
Modeline "1280x1024" 138.54 1280 1368 1504 1728 1024 1025 1028 1069 -HSync +Vsync
# 1280x1024 @ 76.00 Hz (GTF) hsync: 81.32 kHz; pclk: 141.82 MHz
Modeline "1280x1024" 141.82 1280 1376 1512 1744 1024 1025 1028 1070 -HSync +Vsync
# 1280x1024 @ 85.00 Hz (GTF) hsync: 91.38 kHz; pclk: 159.36 MHz
Modeline "1280x1024" 159.36 1280 1376 1512 1744 1024 1025 1028 1075 -HSync +Vsync
# 1280x1024 @ 100.00 Hz (GTF) hsync: 108.50 kHz; pclk: 190.96 MHz
Modeline "1280x1024" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -HSync +Vsync
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
# 1400x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 122.61 MHz
Modeline "1400x1050" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -HSync +Vsync
# 1400x1050 @ 72.00 Hz (GTF) hsync: 78.77 kHz; pclk: 149.34 MHz
Modeline "1400x1050" 149.34 1400 1496 1648 1896 1050 1051 1054 1094 -HSync +Vsync
# 1400x1050 @ 75.00 Hz (GTF) hsync: 82.20 kHz; pclk: 155.85 MHz
Modeline "1400x1050" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -HSync +Vsync
# 1400x1050 @ 85.00 Hz (GTF) hsync: 93.76 kHz; pclk: 179.26 MHz
Modeline "1400x1050" 179.26 1400 1504 1656 1912 1050 1051 1054 1103 -HSync +Vsync
# 1400x1050 @ 100.00 Hz (GTF) hsync: 111.20 kHz; pclk: 214.39 MHz
Modeline "1400x1050" 214.39 1400 1512 1664 1928 1050 1051 1054 1112 -HSync +Vsync
# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
# 1600x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 160.96 MHz
Modeline "1600x1200" 160.96 1600 1704 1880 2160 1200 1201 1204 1242 -HSync +Vsync
# 1600x1200 @ 65.00 Hz (GTF) hsync: 80.99 kHz; pclk: 176.23 MHz
Modeline "1600x1200" 176.23 1600 1712 1888 2176 1200 1201 1204 1246 -HSync +Vsync
# 1600x1200 @ 70.00 Hz (GTF) hsync: 87.43 kHz; pclk: 190.25 MHz
Modeline "1600x1200" 190.25 1600 1712 1888 2176 1200 1201 1204 1249 -HSync +Vsync
# 1600x1200 @ 75.00 Hz (GTF) hsync: 93.97 kHz; pclk: 205.99 MHz
Modeline "1600x1200" 205.99 1600 1720 1896 2192 1200 1201 1204 1253 -HSync +Vsync
# 1600x1200 @ 85.00 Hz (GTF) hsync: 107.10 kHz; pclk: 234.76 MHz
Modeline "1600x1200" 234.76 1600 1720 1896 2192 1200 1201 1204 1260 -HSync +Vsync
# 1600x1200 @ 100.00 Hz (GTF) hsync: 127.10 kHz; pclk: 280.64 MHz
Modeline "1600x1200" 280.64 1600 1728 1904 2208 1200 1201 1204 1271 -HSync +Vsync
# 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
Modeline "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync
# 1792x1344 @ 60.00 Hz (GTF) hsync: 83.46 kHz; pclk: 202.97 MHz
Modeline "1792x1344" 202.97 1792 1920 2112 2432 1344 1345 1348 1391 -HSync +Vsync
# 1792x1344 @ 75.00 Hz (GTF) hsync: 105.23 kHz; pclk: 259.27 MHz
Modeline "1792x1344" 259.27 1792 1928 2128 2464 1344 1345 1348 1403 -HSync +Vsync
# 1856x1392 @ 60.00 Hz (GTF) hsync: 86.46 kHz; pclk: 218.57 MHz
Modeline "1856x1392" 218.57 1856 1992 2192 2528 1392 1393 1396 1441 -HSync +Vsync
# 1856x1392 @ 75.00 Hz (GTF) hsync: 108.97 kHz; pclk: 277.23 MHz
Modeline "1856x1392" 277.23 1856 2000 2200 2544 1392 1393 1396 1453 -HSync +Vsync
# 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz
Modeline "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync
# 1920x1440 @ 60.00 Hz (GTF) hsync: 89.40 kHz; pclk: 234.59 MHz
Modeline "1920x1440" 234.59 1920 2064 2272 2624 1440 1441 1444 1490 -HSync +Vsync
# 1920x1440 @ 75.00 Hz (GTF) hsync: 112.73 kHz; pclk: 297.59 MHz
Modeline "1920x1440" 297.59 1920 2072 2280 2640 1440 1441 1444 1503 -HSync +Vsync
EndSection
Section "Screen"
Identifier "Screen 0"
Monitor "Monitor 0"
DefaultColorDepth 24
Option "CursorShadow" "1"
Option "CursorShadowAlpha" "63"
Option "CursorShadowYOffset" "2"
Option "CursorShadowXOffset" "4"
Option "FlatPanelProperties" "Scaling = native"
Option "NoLogo" "True"
Option "UseEDID" "True"
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "AddARGBGLXVisuals" "True"
Option "NvAGP" "1"
SubSection "Display"
Depth 8
Modes "1440x900" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1440x900" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1440x900" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x900" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Nota: tendo concluído os passos tentei iniciar o GDM, mas deu erro, ao reiniciar o computador tudo ficou normal.
Então, reinicie o computador e pronto! Quando seu Kernel Debian for atualizado o módulo para o driver Nvidia também o será.
Um abraço.
Outras dicas deste autor
Um painel Tint2 mais completo
Acelerando o reboot em sistemas Debian-like
screenFetch - The Bash Screenshot Information Tool
Adicionando Web Rádio em Blog (Blogger)
Desmembrando o Transmission no Slackware
Leitura recomendada
Reading package lists... Error! [Resolvido]
Comando ifconfig do Arch Linux não funciona [RESOLVIDO]
Gerador automático de sources.list para Ubuntu
Lista de mimetypes para Squid, Dansguardian e etc
Configurando proxy no APT-GET
Comentários
Só para complementar, quem tiver uma "geforce fx 5200", "fx 5500" e versão fx 5xxx deverá executar desse jeito que é para placas um pouco antiga.
# apt-get install build-essential linux-headers-`uname -r` nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx nvidia-settings nvidia-xconfig module-assistant dkms
Ficando o "xorg.conf" deste jeito:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 51.0
VertRefresh 43.0 - 60.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
Option "Coolbits" "1"
Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "false"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "enable"
# Option "RENDER" "disable"
EndSection
Até mais...
Mensagem
Para informações mais completas (Stable|Testing|Unstable) leiam:
http://www.vivaolinux.com.br/artigo/Instalacao-do-driver-Nvidia-no-Debian-e-em-distros-derivadas/
Rsrsrs...
Novamente depois de uma m*rd* na nvidia feita tive que fazer o procedimento descrito.
Ainda bem que essa dica fica nos favoritos.
** Agora com o Kernel 3.2.0 (que não é o meu caso ainda no desktop) ela dará suporte a essa nvidia geforce fx-5200?
No Sabayon após o kernel 3.2.0 ele não dará mais suporte a essa placa (já constatado no sabayon instalado no desktop).
Como que os usuários ficam?
...
Mensagem
Rsrsrs...
Novamente depois de uma m*rd* na nvidia feita tive que fazer o procedimento descrito.
Ainda bem que essa dica fica nos favoritos.
** Agora com o Kernel 3.2.0 (que não é o meu caso ainda no desktop) ela dará suporte a essa nvidia geforce fx-5200?
No Sabayon após o kernel 3.2.0 ele não dará mais suporte a essa placa (já constatado no sabayon instalado no desktop).
Como que os usuários ficam?
...
Cara, porque você não usa o Backports ou compila o kernel e usa o driver nouveau?
Não vejo nenhuma vantagem em usar o kernel 2.6.32-5.
Mensagem
Cara, porque você não usa o Backports ou compila o kernel e usa o driver nouveau?
Não vejo nenhuma vantagem em usar o kernel 2.6.32-5.
Contribuir com comentário
Enviar