/etc/X11/xorg.conf:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "AllowEmptyInput" "off"
Option "Clone" "false"
Option "Xinerama" "false"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
Section "Files"
ModulePath "/usr/X11R6/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
FontPath "/usr/local/lib/X11/fonts/cyrillic/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/bitstream-vera/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/webfonts/"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "glx"
Load "extmod"
Load "record"
Load "dbe"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc101"
Option "XkbLayout" "us,ru"
Option "XkbVariant" ",winkeys"
Option "XKbOptions" "grp:ctrl_shift_toggle,grp_led:scroll_lock"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Benq"
ModelName "E2200HDA"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
Option "PreferredMode" "1920x1080"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Samsung"
ModelName "SyncMaster 710N"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 75.0
Option "PreferredMode" "1280x1024"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
Option "TwinView" "true"
Option "TwinViewOrientation" "RightOf"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
Option "HWcursor"
Option "CursorShadow"
Option "UseEdidDpi" "FALSE"
Option "DPI" "96 x 96"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 32
EndSubSection
EndSection
3. G86 [GeForce 8400M GS] rev 161 на чипсете NVIDIA (ноутбук SONY VAIO модель PSG-6S6P)
Ставим порт с драйверами:
Port: nvidia-driver-256.53_1
Path: /usr/ports/x11/nvidia-driver
Info: NVidia graphics card binary drivers for hardware OpenGL rendering
Подгружаем:
# kldload nvidia.ko
Делаем чтобы подгружалось само после бута, правим /boot/loader.conf и добавляем:
nvidia_load="YES"
Монитор «Samsung» – основной
Ноутбук – стоит слева от основного и является отдельным рабочим столом
/etc/X11/xorg.conf:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
"AllowEmptyInput" "off"
InputDevice "Mouse0" "CorePointer"
"AllowEmptyInput" "off"
Option "Xinerama" "true"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/cyrillic/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/misc"
FontPath "/usr/local/lib/X11/fonts/webfonts/"
FontPath "/usr/local/lib/X11/fonts/avifonts/"
FontPath "/usr/local/lib/X11/fonts/bitstream-vera/"
EndSection
Section "Module"
Load "extmod"
Load "record"
Load "dbe"
Load "glx"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
# gtf 1680 1050 60
Identifier "CRT-0"
VendorName "Samsung"
ModelName "SyncMaster 2243nw"
Gamma 0 0 0
Modeline "1680x1050_60.00" 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync
EndSection
Section "Monitor"
#gtf 1280 800 60
Identifier "DFP-0"
VendorName "Sony"
Gamma 0 0 0
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
EndSection
Section "Device"
Option "HWcursor" "true"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "TwinView" "true"
Option "TwinViewOrientation" "LeftOf"
Option "metamodes" "DFP-0:1280x800_60.00+0+0,CRT-0:1680x1050_60.00+1280+0"
Option "ConnectedMonitor" "DFP-0,CRT-0"
Screen 0
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "DFP-0"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x800" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 32
Modes "1280x800" "800x600" "640x480"
EndSubSection
EndSection