Xorg (xorg.conf)

Xorg com vídeo VESA, para monitor LCD, mouse Serial e/ou USB e teclado ABNT2

Categoria: X11

Software: Xorg

[ Hits: 12.603 ]

Por: Lorran Luiz



Este arquivo configura o Xorg para usar o driver de vídeo genérico VESA, um monitor LCD (no meu caso o L177WS da LG), um teclado ABNT2, um mouse de 3 botões Serial ou USB ou mesmo os dois ao mesmo tempo! O mouse USB pode ter rodinha (Scroll) que a mesma terá sua funcionalidades aplicadas.


Esse arquivo deve ser salvo no diretório /etc/X11.


# /etc/X11/xorg.conf (xorg 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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 "ServerFlags"
   Option "AllowMouseOpenFail" "true"
EndSection

Section "Files"
   FontPath   "/usr/share/fonts/X11/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/share/fonts/X11/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/share/fonts/X11/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/share/fonts/X11/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   # path to defoma fonts
   FontPath   "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
   Load   "i2c"
   Load   "bitmap"
   Load   "ddc"
   Load   "dri"
   Load   "extmod"
   Load   "freetype"
   Load   "glx"
   Load   "int10"
   Load   "vbe"
EndSection

Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver      "kbd"
   Option      "CoreKeyboard"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "abnt2"
   Option      "XkbLayout"   "br"
   Option      "XkbVariant"   "abnt2"
EndSection

Section "InputDevice"
   Identifier   "Serial Mouse"
   Driver      "mouse"
   Option      "Protocol"      "Microsoft"
   Option      "Device"      "/dev/ttyS0"
   Option      "Emulate3Buttons"   "true"
   Option      "Emulate3Timeout"   "70"
   Option      "SendCoreEvents"   "true"
EndSection

Section "InputDevice"
   Identifier    "USB Mouse"
   Driver       "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "SendCoreEvents" "true"
   Option       "ZAxisMapping" "4 5"
   Option       "Buttons" "5"
EndSection

Section "Device"
   Identifier   "Silicon Integrated Systems [SiS] 5597 [SiS5582]"
   Driver      "vesa"
   VendorName   "SIS"
   BoardName   "V64 S3 Trio"
   BusID      "PCI:0:11:0"
EndSection

Section "Monitor"
   Identifier   "L177W"
   VendorName   "LG"
   ModelName   "L177WS"
   HorizSync   31.5 - 50
   VertRefresh   40 - 90
   ModeLine   "1280x1024" 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
   ModeLine   "1024x768" 78.75 1024 1040 1136 1342 768 769 772 800 +hsync +vsync
   ModeLine   "800x600" 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync
   Option      "DPMS"
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Device      "Silicon Integrated Systems [SiS] 5597 [SiS5582]"
   Monitor      "L177W"
   DefaultColorDepth 24
   #DefaultDepth   8
   SubSection "Display"
      Depth      1
      Modes      "1280x720" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
   SubSection "Display"
      Depth      4
      Modes      "1280x720" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
   SubSection "Display"
      Depth      8
      Modes      "1024x768" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
   SubSection "Display"
      Depth      15
      Modes      "1280x720" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
   SubSection "Display"
      Depth      16
      Modes      "1280x720" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
   SubSection "Display"
      Depth      24
      Modes      "1280x720" "1152x864" "1024x768" "800x600" "720x400" "640x480"
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier   "Default Layout"
   Screen      "Default Screen"
   InputDevice   "Generic Keyboard"
   InputDevice   "USB Mouse" "CorePointer"
   InputDevice    "Serial Mouse" "CorePointer"
EndSection

Section "DRI"
   Mode   0666
EndSection
  


Comentários
[1] Comentário enviado por removido em 01/07/2011 - 10:53h

Excelente, ajudou a resolver um problema de imagem distorcida em monitor LCD.

Parabéns e obrigado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts