Configurando vídeo no Debian Lenny

Publicado por Carlos em 25/05/2009

[ Hits: 17.306 ]

Blog: http://lattes.cnpq.br/2631598131280012

 


Configurando vídeo no Debian Lenny



E aí pessoal, tudo bem?

Instalei o Linux Debian Lenny em meu notebook (Positivo V126) e o vídeo estava desconfigurado devido ao LCD ser widescreen. Consegui resolver o problema com a ajuda do pessoal aqui do Viva o Linux e então resolvi postar essa dica. Bem, vamos lá!

O arquivo de configuração de vídeo é o xorg.conf, localizado no diretório /etc/X11. Para editá-lo você deve estar logado como root. Digite o seguinte comando:

# nano /etc/X11/xorg.conf

O arquivo estava assim:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
   Identifier      "Generic Keyboard"
   Driver          "kbd"
   Option          "XkbRules"      "xorg"
   Option          "XkbModel"      "abnt2"
   Option          "XkbLayout"     "br"
   Option          "XkbVariant"    "abnt2"
EndSection

Section "InputDevice"
   Identifier      "Configured Mouse"
   Driver          "mouse"
EndSection

Section "Device"
   Identifier      "Configured Video Device"
EndSection

Section "Monitor"
   Identifier      "Configured Monitor"
EndSection

Section "Screen"
   Identifier      "Default Screen"
   Monitor         "Configured Monitor"
EndSection

Procure no arquivo a linha Section "screen".

Nesta parte o arquivo deve ser editado em algumas linhas para que o vídeo seja configurado corretamente. No meu caso a resolução máxima é de "1280x800" e ficou da seguinte forma:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
   Identifier      "Generic Keyboard"
   Driver          "kbd"
   Option          "XkbRules"      "xorg"
   Option          "XkbModel"      "abnt2"
   Option          "XkbLayout"     "br"
   Option          "XkbVariant"    "abnt2"
EndSection

Section "InputDevice"
   Identifier      "Configured Mouse"
   Driver          "mouse"
EndSection

Section "Device"
   Identifier      "Configured Video Device"
EndSection

Section "Monitor"
   Identifier      "Configured Monitor"
EndSection

Section "Screen"
   Identifier      "Default Screen"
   Device          "Generic Video Card"
   Monitor         "Configured Monitor"
   DefaultDepth 24
   SubSection "Display"
      Depth   4
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth   4
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth   8
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth   15
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth   16
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth   24
      Modes "1280x800" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection

Após editar essas linhas, é só salvar o arquivo pressionando Ctrl+o e sair do editor pressionando Ctrl+x e reiniciar a máquina. O seu vídeo já deverá estar configurado.

Espero ter ajudado com essa dica e estou aqui aberto para perguntas, sugestões, elogios, críticas etc.

Obrigado.

Outras dicas deste autor
Nenhuma dica encontrada.
Leitura recomendada

Diminuindo o tempo de boot do Slackware

Instalando fontes do Android no Slackware/Zenwalk

Slackware Linux substituindo Windows

Ubuntu 13.10 com Gnome Shell: Borda da janela não muda [Resolvido]

Ubuntu 14.04 - Erro: "nova linha no campo nome '#padding'" [Resolvido]

  

Comentários
[1] Comentário enviado por amado2vezes em 25/05/2009 - 16:14h

SubSection "Display"
Depth 4
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection

Existe a necessidade de repetir esta configuração duas vezes? Valeu.

[2] Comentário enviado por carlinhojunior em 26/05/2009 - 12:43h

não há necessidade...

[3] Comentário enviado por jasiel_otto em 24/06/2009 - 23:35h

Olá pessoal!!!

Agradeço muito por essa dica de configuração de vídeo. Gostaria de acrescentar que no meu caso, tenho uma máquina Windows com o VirtualBox instalado, queria colocar o Debian 5, fiz a cópia deste arquivo e sobrescrevi no "/etc/X11", reiniciei e funcionou muito bem.

Obrigado a todos!!!

[4] Comentário enviado por thorzapata21 em 04/04/2011 - 22:09h

Boa noite amigos, sou novo e no Debian, já lí e teneti alguma coisa para resolver o mesmo problema no Debian 5.0 na VirtualBox, mas ao usar o camando informado lá em cima no começo: nano /etc/X11/xorg.conf , meu arquivo está em branco, ou seja não há nada nele, o que devo fazer, e não entendi essa ultima parte de colar e colar nesse arquivo.

Desde já agradeço à todos

[5] Comentário enviado por thg.lorencini em 26/11/2011 - 09:10h

Instalei o debian lenny 6 e a parte grafica não aparece pra mim, o meu monitor é da marca AOC V7 de 19 polegadas, ja peguei toda a configuração dele e ja editei o arquivo /etc/X11/xorg.conf e mesmo assim não subiu a tela grafica, se puderem me ajudar agrdeço desde já . . .



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts