Configurando vídeo no Debian Lenny
Dica publicada em Linux / Configuração
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:
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:
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.
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
#
# 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
#
# 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.
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.