View Single Post
Old 02-22-07, 12:44 PM   #173
tkbletsc
Registered User
 
Join Date: Feb 2006
Posts: 6
Default Re: first display on twinview

Thanks you to nVidia and to everyone in this thread who posted helpful xorg.conf examples. I finally have LCD+CRT twinview!

I have a 1280x1024 LCD as my main display, and a little 800x600@75 CRT on an upper shelf for watching background jobs and/or movies. I'm using the 97.46 driver on Ubuntu 6.10. The card is a GeForce FX 5200. Here's my complete xorg.conf:

Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)

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

Section "Module"
  Load "i2c"
  Load "bitmap"
  Load "ddc"
  Load "extmod"
  Load "freetype"
  Load "int10"
  Load "type1"
  Load "vbe"
  load "glx"
  load "v4l"
EndSection

Section "InputDevice"
  Identifier "Generic Keyboard"
  Driver "kbd"
  option "CoreKeyboard"
  option "XkbRules" "xorg"
  option "XkbModel" "pc105"
  option "XkbLayout" "us"
  option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
  Identifier "Configured Mouse"
  Driver "mouse"
  option "CorePointer"
  option "Device" "/dev/input/mice"
  option "Protocol" "ExplorerPS/2"
  option "ZAxisMapping" "4 5"
  option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "stylus"
  option "Device" "/dev/wacom"# Change to 
  option "Type" "stylus"
  option "ForceDevice" "ISDV4"# Tablet PC ONLY
  # /dev/input/event
  # for USB
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "eraser"
  option "Device" "/dev/wacom"# Change to 
  option "Type" "eraser"
  option "ForceDevice" "ISDV4"# Tablet PC ONLY
  # /dev/input/event
  # for USB
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "cursor"
  option "Device" "/dev/wacom"# Change to 
  option "Type" "cursor"
  option "ForceDevice" "ISDV4"# Tablet PC ONLY
  # /dev/input/event
  # for USB
EndSection

Section "Device"
  identifier "nvdevice"
  boardname "nv"
  busid "PCI:1:0:0"
  driver "nvidia"
	Option "NvAGP" "2"
	Option "RenderAccel" "0"
	Option "CursorShadow" "1"
	Option "Coolbits" "1"
	Option "ConnectedMonitor" "dfp, crt"
	Option "NoPowerConnectorCheck"
	Option "TwinView" "1"
	Option "TwinViewOrientation" "Below"
	Option "TwinViewXineramaInfoOrder" "DFP-0, CRT-0"
	Option "Metamodes" "800x600,1280x1024"
	Option "SecondMonitorHorizSync" "30-70"
	Option "SecondMonitorVertRefresh" "56-85"
  screen 0
EndSection

Section "Monitor"
  identifier "lcdmonitor"
  vendorname "Dell"
  modelname "Dell 1800FP (Digital)"
  HorizSync 30.0-70.0
  VertRefresh 56.0-85.0
  modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
  modeline  "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
  modeline  "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
  modeline  "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
  modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
  modeline  "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
  modeline  "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
  modeline  "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
  modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
  modeline  "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
  modeline  "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
  modeline  "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
  modeline  "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
  modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
  modeline  "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
  modeline  "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
  modeline  "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
  modeline  "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
  gamma 1.0
EndSection

Section "Screen"
  Identifier "lcdscreen"
  device "nvdevice"
  monitor "lcdmonitor"
  DefaultDepth 24
	#ViewPort 0 0
  SubSection "Display"
    depth 24
    modes "1280x1024@60" "1400x1050@60" "1280x960@60" "1152x864@75" "1024x768@60" "1024x768@70" "1024x768@75" "1024x768@85" "832x624@75" "800x600@60" "800x600@85" "800x600@75" "800x600@72" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
  EndSubSection
EndSection

Section "ServerLayout"
  Identifier "Twinview Layout"
      Option       "Xinerama"  "Off"
  screen 0 "lcdscreen" 0 0
  InputDevice "Generic Keyboard"
  InputDevice "Configured Mouse"
  InputDevice "stylus" "SendCoreEvents"
  InputDevice "cursor" "SendCoreEvents"
  InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
  Mode 0666
EndSection

Section "ServerFlags"
  option "Xinerama" "true"
EndSection
These sites were useful in getting things tweaked right:
http://www.ublug.org/ubuntu/twinview...to-breezy.html
http://gentoo-wiki.com/HOWTO_Dual_Monitors#TwinView

Also, you can set movies to play fullscreen on the second display with one mplayer command:

$ mplayer -fs -xineramascreen 2 "The Blues Brothers.avi"
tkbletsc is offline   Reply With Quote