Lihuen
RSSRSS AtomAtom

Diferencia entre revisiones de «Multiterminales con Xorg»

Línea 1: Línea 1:
 
Nota: No usar el driver VESA en ningún dispositivo
 
Nota: No usar el driver VESA en ningún dispositivo
 
*Ejemplo de xorg.conf:
 
*Ejemplo de xorg.conf:
<nowiki>
+
<nowiki>
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
+
Section "Files"
#
+
# 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 "Files"
+
 
FontPath "/usr/share/fonts/X11/misc"
 
FontPath "/usr/share/fonts/X11/misc"
 
FontPath "/usr/X11R6/lib/X11/fonts/misc"
 
FontPath "/usr/X11R6/lib/X11/fonts/misc"
Línea 35: Línea 19:
 
# path to defoma fonts
 
# path to defoma fonts
 
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
 
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
+
EndSection
+
 
Section "Module"
+
Section "Module"
 
Load "bitmap"
 
Load "bitmap"
 
Load "ddc"
 
Load "ddc"
# Load "dri"
+
# Load "dri"
 
Load "extmod"
 
Load "extmod"
 
Load "freetype"
 
Load "freetype"
# Load "glx"
+
# Load "glx"
 
Load "int10"
 
Load "int10"
 
Load "vbe"
 
Load "vbe"
EndSection
+
EndSection
# Tarjeta integrada
+
 
Section "InputDevice"
+
# --- Desde aquí hay que repetir estas secciones tantas veces como terminales querramos ---
Identifier "Generic Keyboard"
+
# --- cambiando los identificadores y las características del hardware según sea necesario ---
 +
# Teclados
 +
Section "InputDevice"
 +
Identifier "Keyboard0"
 
Driver "evdev"
 
Driver "evdev"
Option "Device" "/dev/input/event0"
+
Option "Device" "/dev/input/event0" # Cambiar event0 por lo que corresponda
 
Option "XkbModel" "evdev"
 
Option "XkbModel" "evdev"
 
Option "CoreKeyboard"
 
Option "CoreKeyboard"
 
Option "XkbRules" "xorg"
 
Option "XkbRules" "xorg"
 
Option "XkbLayout" "es"
 
Option "XkbLayout" "es"
EndSection
+
EndSection
+
 
Section "InputDevice"
+
Section "InputDevice"
Identifier "Configured Mouse"
+
Identifier "Mouse"
 
Driver "mouse"
 
Driver "mouse"
 
Option "CorePointer"
 
Option "CorePointer"
Option "Device" "/dev/input/mouse0"
+
Option "Device" "/dev/input/mouse0" # Cambiar mouse0 por lo que corresponda
 
Option "Protocol" "imPS/2"
 
Option "Protocol" "imPS/2"
 
Option "Buttons" "5"
 
Option "Buttons" "5"
 
Option "ZAxisMapping" "4 5"
 
Option "ZAxisMapping" "4 5"
EndSection
+
EndSection
+
 
Section "Device"
+
Section "Device"
Identifier "Tarjeta0"
+
Identifier "Tarjeta0"
Driver "ati"
+
Driver     "ati"
# Screen 0
+
BusID       "PCI:1:0:0"
BusID "PCI:1:0:0"
+
  Option     "NoInt10"      "Yes" # Anulamos la inicialización de la placa por BIOS
        Option         "NoInt10"      "Yes"
+
Option     "DDCMode" "True"
# Option "UseFBDev" "true"
+
Option     "MonitorLayout" "CRT, CRT"
Option "DDCMode" "True"
+
EndSection
Option "MonitorLayout" "CRT, CRT"
+
 
EndSection
+
Section "Monitor"
+
Section "Monitor"
+
 
Identifier "Monitor0"
 
Identifier "Monitor0"
 
Option "DPMS"
 
Option "DPMS"
 
HorizSync 30-70
 
HorizSync 30-70
 
VertRefresh 50-160
 
VertRefresh 50-160
EndSection
+
EndSection
+
 
Section "Screen"
+
Section "Screen"
Identifier "Screen0"
+
Identifier "Screen0"
Device "Tarjeta0"
+
Device     "Tarjeta0"
Monitor "Monitor0"
+
Monitor     "Monitor0"
 
DefaultDepth 24
 
DefaultDepth 24
SubSection "Display"
+
Depth   24
Depth 1
+
 
Modes "1024x768" "800x600" "640x480"
 
Modes "1024x768" "800x600" "640x480"
 
EndSubSection
 
EndSubSection
SubSection "Display"
+
EndSection
Depth 4
+
 
Modes "1024x768" "800x600" "640x480"
+
Section "ServerLayout"
EndSubSection
+
SubSection "Display"
+
Depth 8
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 15
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 16
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 24
+
Modes "800x600" #"1024x768" "800x600" "640x480"
+
EndSubSection
+
EndSection
+
+
Section "ServerLayout"
+
 
Identifier "Layout0"
 
Identifier "Layout0"
Screen "Screen0"
+
Screen   "Screen0"
 
InputDevice "Generic Keyboard"
 
InputDevice "Generic Keyboard"
 
InputDevice "Configured Mouse"
 
InputDevice "Configured Mouse"
EndSection
+
EndSection
+
# --- De aquí en más lo que sigue no hay que repetirlo ---
#Tarjeta PCI
+
Section "InputDevice"
+
Identifier "Keyboard USB"
+
        Driver          "evdev"
+
        Option          "Device"        "/dev/input/event4"
+
        Option          "XkbModel"      "evdev"
+
        Option          "CoreKeyboard"
+
        Option          "XkbRules"      "xorg"
+
        Option          "XkbLayout"    "es"
+
EndSection
+
+
Section "InputDevice"
+
Identifier "Mouse USB"
+
Driver "mouse"
+
Option "CorePointer"
+
Option "Device" "/dev/input/mouse1"
+
Option "Protocol" "imPS/2"
+
Option "Buttons" "5"
+
Option "ZAxisMapping" "4 5"
+
EndSection
+
 
+
Section "Device"
+
Identifier "Tarjeta1"
+
Driver "s3virge"
+
BusID "PCI:0:9:0"
+
# Screen 0
+
        Option          "NoInt10"      "Yes"
+
# Option "UseFBDev" "true"
+
        Option          "DDCMode" "True"
+
Option "MonitorLayout" "CRT, CRT"
+
EndSection
+
+
Section "Monitor"
+
Identifier "Monitor1"
+
Option "DPMS"
+
HorizSync 30-70
+
VertRefresh 50-160
+
EndSection
+
 
+
Section "Screen"
+
Identifier "Screen1"
+
Device "Tarjeta1"
+
Monitor "Monitor1"
+
DefaultDepth 24
+
SubSection "Display"
+
Depth 1
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 4
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 8
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 15
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 16
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 24
+
Modes "800x600" #"1024x768" "800x600" "640x480"
+
EndSubSection
+
EndSection
+
+
Section "ServerLayout"
+
Identifier "Layout1"
+
Screen "Screen1"
+
# Screen "Default Screen"
+
InputDevice "Keyboard USB"
+
InputDevice "Mouse USB"
+
EndSection
+
+
Section "ServerLayout"
+
      Identifier      "Layout2"
+
      Screen          "Screen0" 0 0
+
      Screen "Screen1" RightOf "Screen0"
+
#      Screen "Screen1" 1 0
+
#      Screen          "Screen1" Relative "Screen0" 1 0
+
      InputDevice    "Keyboard USB" "SendCoreEvents"
+
      InputDevice    "Mouse USB" "SendCoreEvents"
+
#      Option "Clone" "off"
+
      Option "Xinerama" "on"
+
EndSection
+
 
+
Section "DRI"
+
Mode 0666
+
EndSection
+
</nowiki>
+
 
+
*xorg.conf.probe
+
<nowiki>
+
# /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 "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 "bitmap"
+
Load "ddc"
+
# Load "dri"
+
Load "extmod"
+
Load "freetype"
+
# Load "glx"
+
Load "int10"
+
Load "vbe"
+
EndSection
+
# Tarjeta integrada
+
Section "InputDevice"
+
Identifier "Generic Keyboard"
+
# Driver "evdev"
+
Driver "kbd"
+
Option "CoreKeyboard"
+
# Option "Protocol" "evdev"
+
# Option "Dev Phys" "isa0060/serio0/input0"
+
Option "XkbRules" "xorg"
+
Option "XkbModel" "pc104"
+
Option "XkbLayout" "es"
+
EndSection
+
+
Section "InputDevice"
+
Identifier "Configured Mouse"
+
Driver "mouse"
+
Option "CorePointer"
+
Option "Device" "/dev/input/mouse0"
+
Option "Protocol" "imPS/2"
+
Option "Buttons" "5"
+
Option "ZAxisMapping" "4 5"
+
EndSection
+
+
Section "Device"
+
Identifier "Tarjeta0"
+
Driver "ati"
+
# Screen 0
+
BusID "PCI:1:0:0"
+
        Option          "NoInt10"      "No"
+
# Option "UseFBDev" "true"
+
Option "DDCMode" "True"
+
Option "MonitorLayout" "CRT, CRT"
+
EndSection
+
+
Section "Monitor"
+
Identifier "Monitor0"
+
Option "DPMS"
+
HorizSync 30-70
+
VertRefresh 50-160
+
EndSection
+
+
Section "Screen"
+
Identifier "Screen0"
+
Device "Tarjeta0"
+
Monitor "Monitor0"
+
DefaultDepth 24
+
SubSection "Display"
+
Depth 1
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 4
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 8
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 15
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 16
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 24
+
Modes "800x600" #"1024x768" "800x600" "640x480"
+
EndSubSection
+
EndSection
+
 
+
 
+
#Tarjeta PCI
+
Section "InputDevice"
+
Identifier "Keyboard USB"
+
#Driver "evdev"
+
Driver "kbd"
+
Option "CoreKeyboard"
+
# Option "Protocol" "evdev"
+
# Option "Dev Phys" "usb-0000:00:10.0-1/input0"
+
Option "XkbRules" "xorg"
+
Option "XkbModel" "pc104"
+
Option "XkbLayout" "es"
+
EndSection
+
+
Section "InputDevice"
+
Identifier "Mouse USB"
+
Driver "mouse"
+
Option "CorePointer"
+
Option "Device" "/dev/input/mouse1"
+
Option "Protocol" "PS/2"
+
Option "ZAxisMapping" "4 5"
+
EndSection
+
+
Section "Device"
+
Identifier "Tarjeta1"
+
Driver "s3virge"
+
# BusID "PCI:1:0:0"
+
# Screen 0
+
      Option          "NoInt10"      "No"
+
# Option "UseFBDev" "true"
+
        Option          "DDCMode" "True"
+
Option "MonitorLayout" "CRT, CRT"
+
EndSection
+
+
Section "Monitor"
+
Identifier "Monitor1"
+
Option "DPMS"
+
HorizSync 30-70
+
VertRefresh 50-160
+
EndSection
+
+
Section "Screen"
+
Identifier "Screen1"
+
Device "Tarjeta1"
+
Monitor "Monitor1"
+
DefaultDepth 24
+
SubSection "Display"
+
Depth 1
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 4
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 8
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 15
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 16
+
Modes "1024x768" "800x600" "640x480"
+
EndSubSection
+
SubSection "Display"
+
Depth 24
+
Modes "800x600" #"1024x768" "800x600" "640x480"
+
EndSubSection
+
EndSection
+
  
 +
# Este layout puede ser utilizado para probar las placas usando Xinerama
 +
Section "ServerLayout"
 +
      Identifier      "Layout2"
 +
      Screen          "Screen0" 0 0
 +
      Screen       "Screen1" RightOf "Screen0"
 +
      Screen       "Screen2" RightOf "Screen1"
 +
      [...]
 +
      InputDevice    "Keyboard0" "SendCoreEvents"
 +
      InputDevice    "Mouse0" "SendCoreEvents"
 +
      Option          "Xinerama" "on"
 +
EndSection
  
Section "ServerLayout"
+
Section "DRI"
      Identifier      "probe"
+
      Screen          "Screen0" 0 0
+
      Screen "Screen1" 1 0
+
#      Screen          "Screen1" Relative "Screen0" 1 0
+
      InputDevice    "Keyboard USB" "SendCoreEvents"
+
      InputDevice    "Mouse USB" "SendCoreEvents"
+
      Option "Clone" "off"
+
      Option "Xinerama" "on"
+
EndSection
+
+
Section "DRI"
+
 
Mode 0666
 
Mode 0666
EndSection
+
EndSection
</nowiki>
+
  </nowiki>
*/etc/init.d/xorg-multiterminal
+
<nowiki>
+
  #!/bin/bash
+
+
file=/etc/X11/xorg.conf.probe
+
echo Configurando Xorg para MultiHead
+
/usr/X11R6/bin/X -config "$file" -probeonly 2>/dev/null
+
</nowiki>
+

Revisión de 21:31 20 nov 2007

Nota: No usar el driver VESA en ningún dispositivo

  • Ejemplo de xorg.conf:
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	"bitmap"
	Load	"ddc"
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
#	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

# --- Desde aquí hay que repetir estas secciones tantas veces como terminales querramos ---
# --- cambiando los identificadores y las características del hardware según sea necesario ---
# Teclados
Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"evdev"
	Option		"Device"	"/dev/input/event0" # Cambiar event0 por lo que corresponda
	Option		"XkbModel"	"evdev"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbLayout"	"es"
EndSection

Section "InputDevice"
	Identifier	"Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mouse0" # Cambiar mouse0 por lo que corresponda
	Option		"Protocol"		"imPS/2"
	Option		"Buttons"		"5"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier  "Tarjeta0"
	Driver      "ati"
	BusID       "PCI:1:0:0"
  Option      "NoInt10"       "Yes" # Anulamos la inicialización de la placa por BIOS
	Option      "DDCMode" "True"
	Option      "MonitorLayout" "CRT, CRT"
EndSection

Section "Monitor"
	Identifier	"Monitor0"
	Option		"DPMS"
	HorizSync	30-70
	VertRefresh	50-160
EndSection

Section "Screen"
	Identifier  "Screen0"
	Device      "Tarjeta0"
	Monitor     "Monitor0"
	DefaultDepth	24
		Depth   24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Layout0"
	Screen	  	"Screen0"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection
# --- De aquí en más lo que sigue no hay que repetirlo ---

# Este layout puede ser utilizado para probar las placas usando Xinerama
Section "ServerLayout"
      Identifier      "Layout2"
      Screen          "Screen0" 0 0
      Screen		      "Screen1" RightOf "Screen0"
      Screen		      "Screen2" RightOf "Screen1"
      [...]
      InputDevice     "Keyboard0" "SendCoreEvents"
      InputDevice     "Mouse0" "SendCoreEvents"
      Option          "Xinerama" "on"
EndSection

Section "DRI"
	Mode	0666
EndSection