Проект переехал на новый домен!  [[ перейти ]]

X11 (Как я иксы устанавлилвал до xfce))))
sh# uname -a 
FreeBSD 6.2-RELEASE #0: Wed Jan 16 11:08:03 UTC 2008

Наконец добрался до иксов. (Будем подглядывать в хендбук)
Собственно установка:

Первым делом мне стало интересно, 
что потянет за собой X11 при установке из портов?

Нашёл следущее:
sh# man ports
==============================================================================
~
 readmes  Create a port's README.html.  This can be used from
          /usr/ports to create a browsable web of all ports on
          your system.
~
==============================================================================
Кстати советую почитать поподробнее это ман.

Дальше применяем прочитаное:

В ответ получил что комманда pretty-print-build-depends-list не может
выдать данные так как должна читать из файла INDEX-6, а он у меня отсутствует. 
И для его создания нужно сделать следущее...

sh# cd /usr/ports/
sh# make index			; Создание файла индексации
==============================================================================
Generating INDEX-6 - please wait.. make: don't know how to make describe. Stop
===> editors/kxmleditor failed
*** Error code 1
1 error

********************************************************************
Before reporting this error, verify that you are running a supported
version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you
have a complete and up-to-date ports collection.  (INDEX builds are
not supported with partial or out-of-date ports collections -- in
particular, if you are using cvsup, you must cvsup the "ports-all"
collection, and have no "refuse" files.)  If that is the case, then
report the failure to ports@FreeBSD.org together with relevant
details of your ports configuration (including FreeBSD version,
your architecture, your environment, and your /etc/make.conf
settings, especially compiler flags and WITH/WITHOUT settings).

Note: the latest pre-generated version of INDEX may be fetched
automatically with "make fetchindex".
********************************************************************

*** Error code 1

Stop in /usr/ports.
*** Error code 1

Stop in /usr/ports.
==============================================================================
Вобщем закончилось неудачей...

Пробуем по-другому:

sh# cd /usr/ports/
sh# make fetchindex		; или Обновление файла индексации
==============================================================================
fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2 :Timed Out
fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2 :Timed Out
fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2 :Timed Out
fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2 :Timed Out
Ctrl^Z
==============================================================================
... вобщем второй вариант ринулся в инет... 

Вобщем кошмар что творится в системе! ;)

Я дал доступ через фаирвол и снова вариант два:
sh# cd /usr/ports/
sh# make fetchindex
==============================================================================
/usr/ports/INDEX-6.bz2                         17% of 1147 kB 5159  Bps 03m09s
==============================================================================
В /usr/ports/ появились два файла: INDEX-6.bz2 и INDEX-6
Но попробывав:
sh# cd /usr/ports/x11/xorg
sh# make readmes
Результат был не плохой, но и не хороший. Никаких связей найдено не было!!!
Уже что-то... но всё же не то. Будем пытатся дальше...

sh# cd /usr/ports/
sh# make index
==============================================================================
Generating INDEX-6 - please wait..
Done.
==============================================================================
О чудо!!! )))) Неужели всё как надо создалось...

Перемещаемся и пробуем снова посмотреть зависимости:
sh# cd /usr/ports/x11/xorg
sh# make readmes
А лучше сразу:
sh# make pretty-print-run-depends-list
=========================================================================================
This port requires package(s) "appres-1.0.1 bdftopcf-1.0.1 beforelight-1.0.2 bitmap-1.0.3 
bitstream-vera-1.10_4 compositeproto-0.3.1 damageproto-1.1.0_2 dri-7.0.1,2 editres-1.0.3 
encodings-1.0.2,1 expat-2.0.0_1 fixesproto-4.0 font-adobe-100dpi-1.0.0_1 font-adobe-75dpi
-1.0.0 font-adobe-utopia-100dpi-1.0.1 font-adobe-utopia-75dpi-1.0.1 font-adobe-utopia-typ
e1-1.0.1 font-alias-1.0.1 font-arabic-misc-1.0.0 font-bh-100dpi-1.0.0 font-bh-75dpi-1.0.0
font-bh-lucidatypewriter-100dpi-1.0.0 font-bh-lucidatypewriter-75dpi-1.0.0 font-bh-ttf-1.
0.0 font-bh-type1-1.0.0 font-bitstream-100dpi-1.0.0 font-bitstream-75dpi-1.0.0 font-bitst
ream-type1-1.0.0 font-cronyx-cyrillic-1.0.0 font-cursor-misc-1.0.0 font-daewoo-misc-1.0.0
font-dec-misc-1.0.0 font-ibm-type1-1.0.0 font-isas-misc-1.0.0 font-jis-misc-1.0.0 font-mi
cro-misc-1.0.0 font-misc-cyrillic-1.0.0 font-misc-ethiopic-1.0.0 font-misc-meltho-1.0.0_1
font-misc-misc-1.0.0 font-mutt-misc-1.0.0 font-schumacher-misc-1.0.0 font-screen-cyrillic
-1.0.1 font-sony-misc-1.0.0 font-sun-misc-1.0.0 font-util-1.0.1 font-winitzki-cyrillic-1.
0.0 font-xfree86-type1-1.0.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 f
onttosfnt-1.0.3 freetype2-2.2.1_2 fslsfonts-1.0.1 fstobdf-1.0.2 gettext-0.16.1_3 iceauth-
1.0.1 ico-1.0.1 inputproto-1.3.2 kbproto-1.0.3 libFS-1.0.0 libGL-7.0.1 libICE-1.0.3,1 lib
SM-1.0.3,1 libX11-1.1.2_1,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.
3,1 libXcomposite-0.3.2,1 libXcursor-1.1.8_1 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0
.2 libXext-1.0.3,1 libXfixes-4.0.3 libXfont-1.2.8,1 libXfontcache-1.0.4 libXft-2.1.12 lib
Xi-1.0.2,1 libXinerama-1.0.2,1 libXmu-1.0.3,1 libXp-1.0.0,1 libXpm-3.5.6_1 libXprintAppUt
il-1.0.1 libXprintUtil-1.0.1 libXrandr-1.2.1 libXrender-0.9.2 libXres-1.0.3_1 libXt-1.0.5
libXtst-1.0.2 libXv-1.0.3,1 libXvMC-1.0.4 libXxf86dga-1.0.1 libXxf86misc-1.0.1 libXxf86vm
-1.0.1 libdmx-1.0.2 libdrm-2.3.0 libfontenc-1.0.4 libiconv-1.9.2_2 liboldX-1.0.1 libxkbfi
le-1.0.4 libxkbui-1.0.2 listres-1.0.1 luit-1.0.2_2 mkcomposecache-1.2_1 mkfontdir-1.0.3 m
kfontscale-1.0.3 oclock-1.0.1 pkg-config-0.22 png-1.2.18 printproto-1.0.3 randrproto-1.2.
1 recordproto-1.13.2 renderproto-0.9.2 rgb-1.0.1 rstart-1.0.2 scripts-1.0.1 scrnsaverprot
o-1.1.0 sessreg-1.0.2 setxkbmap-1.0.3 showfont-1.0.1 smproxy-1.0.2 trapproto-3.4.3 twm-1.
0.3_3 videoproto-2.2.2 viewres-1.0.1 x11perf-1.4.1 xauth-1.0.2 xbiff-1.0.1 xbitmaps-1.0.1
xcalc-1.0.1 xclipboard-1.0.1 xclock-1.0.2 xcmsdb-1.0.1 xconsole-1.0.2 xcursor-themes-1.0.
1_1 xcursorgen-1.0.1 xdbedizzy-1.0.2 xditview-1.0.1 xdm-1.1.4_3 xdpyinfo-1.0.2 xdriinfo-1
.0.1_1 xedit-1.0.2 xev-1.0.2 xextproto-7.0.2 xeyes-1.0.1 xf86-input-keyboard-1.1.1 xf86-i
nput-mouse-1.1.2 xf86-video-ati-6.6.3_2 xf86-video-i810-1.6.5_2 xf86-video-nv-2.1.3 xf86-
video-vesa-1.3.0 xf86-video-vga-4.1.0 xf86-video-via-0.2.2_1 xf86dga-1.0.2 xf86dgaproto-2
.0.2 xf86miscproto-0.9.2 xf86vidmodeproto-2.2.2 xfd-1.0.1 xfindproxy-1.0.1 xfontsel-1.0.2
xfs-1.0.4_4,1 xfsinfo-1.0.1 xfwp-1.0.1 xgamma-1.0.1 xgc-1.0.1 xhost-1.0.1 xineramaproto-1
.1.2 xinit-1.0.4_1 xkbcomp-1.0.3 xkbevd-1.0.2 xkbprint-1.0.1 xkbutils-1.0.1 xkeyboard-con
fig-1.0_1 xkill-1.0.1 xload-1.0.2 xlogo-1.0.1 xlsatoms-1.0.1 xlsclients-1.0.1 xlsfonts-1.
0.2 xmag-1.0.1 xman-1.0.2 xmessage-1.0.1 xmh-1.0.1 xmodmap-1.0.2 xmore-1.0.1 xorg-apps-7.
2 xorg-docs-1.3,1 xorg-drivers-7.2_2 xorg-fonts-100dpi-7.2 xorg-fonts-7.2 xorg-fonts-75dp
i-7.2 xorg-fonts-cyrillic-7.2 xorg-fonts-miscbitmaps-7.2 xorg-fonts-truetype-7.2 xorg-fon
ts-type1-7.2 xorg-libraries-7.2_2 xorg-protos-7.2 xorg-server-1.2.0_2,1 xphelloworld-1.0.
1 xplsprinters-1.0.1 xpr-1.0.2 xprehashprinterlist-1.0.1 xprop-1.0.2 xproto-7.0.10 xrandr
-1.2.0 xrdb-1.0.3 xrefresh-1.0.2 xrx-1.0.1 xset-1.0.2 xsetmode-1.0.0 xsetpointer-1.0.0 xs
etroot-1.0.1 xsm-1.0.1 xstdcmap-1.0.1 xterm-229 xtrans-1.0.3 xtrap-1.0.2 xvidtune-1.0.1 x
vinfo-1.0.1 xwd-1.0.1 xwininfo-1.0.2 xwud-1.0.1" to run.
=========================================================================================
Вау сколько всего барахла нужно. ))) Ну что же... Надо - значит надо!

Что делаем дальше?
sh# cd /usr/ports/x11/xorg
sh# make install clean

Ждать пришлось несколько часов и вот результат был таков:
============================================================
~
===>   Returning to build of xorg-7.2
===>   xorg-7.2 depends on file: /usr/local/bin/Xorg - found
===>   Generating temporary packing list
===>  Checking if x11/xorg already installed
===>   Registering installation for xorg-7.2
============================================================
Всё встало без ошибок. Это радует )))

Дальше мы будем конфигурировать наш сервер Xorg.
sh# man Xorg
В man'e по Xorg я вычитал что если задать параметр -configure
... то X-сервер сам попытается всё определить и настроить.
sh# Xorg -configure
===================================================================================================
X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-RELEASE i386
Current Operating System: FreeBSD  6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Jan 16 11:08:03 UTC 2008 
Build Date: 21 January 2008
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 22 11:31:21 2008
List of video drivers:
        ati
        atimisc
        r128
        radeon
        i810
        nv
        via
        vesa
        vga
(++) Using config file: "/root/xorg.conf.new"
												
												
Xorg detected your mouse at device /dev/sysmouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
												
Your xorg.conf file is /root/xorg.conf.new
												
To test the server, run 'X -config /root/xorg.conf.new'
===================================================================================================													
Отсюда видим что у нас создался файл в нашей домашней директории: /root/xorg.conf.new
И видно что для тестового запуска Xorg нужно указать файл с конфигурацией: 'X -config /root/xorg.conf.new'

Замечу что под root'ом сидеть "плохой тон"(а ещё и опасно!), но всё никак не отвыкну.
Замечу что X, это всего лишь линк на Xorg. ( X -> Xorg )

Делаем как написано
sh# Xorg -config /root/xorg.conf.new
В ответ вместо графического режима с крестиком вместо курсора мыши мне вывалилось это:
===================================================================================================
X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-RELEASE i386
Current Operating System: FreeBSD  6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Jan 16 11:08:03 UTC 2008
Build Date: 21 January 2008
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 22 11:43:31 2008
(++) Using config file: "/root/xorg.conf.new"
(EE) I810(0): Given bpp (32) is not supported by i810 driver
(EE) Screen(s) found, but none have a usable configuration.
===================================================================================================				
Прочитав предпоследнюю строку можно понять что 32bit не поддерживается драйвером i810!
Нужно ковырять! )))

А лучше почитать ман:
sh# man i810
=======================================================================
i810  is  an  Xorg  driver for Intel integrated graphics chipsets.  The
driver supports depths 8, 15, 16 and 24.  All  visual  types  are  sup-
ported  in  depth  8.  For the i810/i815 other depths support the True-
Color and DirectColor visuals.  For the i830M and later, only the True-
Color  visual  is supported for depths greater than 8.  The driver sup-
ports hardware accelerated 3D via the Direct  Rendering  Infrastructure
(DRI),  but only in depth 16 for the i810/i815 and depths 16 and 24 for
the 830M and later.
=======================================================================

Почему по-умолчанию всё же выставляется 32bit? Странно...
Нужно по-умолчанию выставить меньше. 
sh# ee /root/xorg.conf.new
=====================================================
~
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24    ; <= Добавил эту строку
~	
=====================================================
Сохранил и запускаю вновь:
sh# Xorg -config /root/xorg.conf.new
И снова неудача! Вываливает опять ошибко:
===================================================================================================
X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-RELEASE i386
Current Operating System: FreeBSD  6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Jan 16 11:08:03 UTC 2008
Build Date: 21 January 2008
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 22 15:40:44 2008
(++) Using config file: "/root/xorg.conf.new"
(EE) GARTInit: Unable to open /dev/agpgart (No such file or directory)
(EE) I810(0): AGP GART support is not available.  Make sure your kernel has
	agpgart support or that the agpgart kernel module is loaded.
(EE) Screen(s) found, but none have a usable configuration.
					
Fatal server error:
no screens found
===================================================================================================					
Ругань идёт потому что моё ядро собрано без поддержки device agp;
А в хендбуке я нашёл что для чипсета i810 в ядре нужна agp. 
А я её закомментировал так как у меня agp на машине не отсутствует.
Так... Очень лень пересобирать ядро. Выход есть всегда и для лентяев!
Можно модуль agp подгружать при каждой загрузки системы:

Ищем модуль:
sh# ls -l /boot/kernel | grep agp
======================================================
-r-xr-xr-x  1 root  wheel    86198 Jan 16 11:34 agp.ko
======================================================

Загружаем его:
sh# kldload /boot/kernel/agp.ko
В ответ вижу результат:
============================================================================================================================				
agp0:  mem 0xe0000000-0xe3ffffff,0xe5000000-0xe507ffff irq 16 at device 2.0 on pci0
============================================================================================================================				
А значит наш чип определился!!! Здорово. ))))

Ну и чтоб модуль грузился при каждой загрузке ОС, без пересбора ядра:
sh# echo 'agp_load="YES"' >> /boot/loader.conf
sh# reboot

Проверить загружено ли можно так:
sh# kldstat | grep ag
======================================
 2	1 0xc0735000 148fc	agp.ko
======================================	
Загружено! Здорово!

Двигаемся дальше:
sh# Xorg -config /root/xorg.conf.new
И о чудо! Свершилось... Запустилось... Но мыша не работает. ((

Выход из графического режима Xorg осуществляется Ctrl + Alt + Backspace
С мышью можно разобратся через sysinstall, но я сделал проще:
sh# echo 'moused_enable="YES"' >> /etc/rc.conf	; Запуск демона
sh# echo 'moused_type="auto"' >> /etc/rc.conf	; Тип авто (устройство psm0, в ядре у меня было вставлено!)
sh# echo 'mousechar_start="3"' >> /etc/rc.conf	; 3-копки у мыши

Потом перечитываем rc.conf без перезапуска системы:
sh# sh /etc/rc

И вуаля у меня уже заработала мышь...
sh# Xorg -config /root/xorg.conf.new
И в иксах мышь работает тоже! ))))

Также всё это дело с конфигруирование файлы xorg.conf
можно осуществить в текстовом режиме коммандой:
sh# xorgcfg -textmode

Что же ещё можно отстроить в файле xorg.conf.new?
Например в секцию Monitor можно добавить строчку ModeLine.
Нужно проанализировать файл /var/log/Xorg.0.log
sh# ee /var/log/Xorg.0.log
==============================================================================================
(II) I810(0): Supported additional Video Mode:
(II) I810(0): clock: 94.5 MHz   Image Size:  312 x 234 mm
(II) I810(0): h_active: 1024  h_sync: 1072  h_sync_end 1168 h_blank_end 1376 h_border: 0
(II) I810(0): v_active: 768  v_sync: 769  v_sync_end 772 v_blanking: 808 v_border: 0
==============================================================================================
Строка составляется так:
ModeLine   <4 horiz. timings> <4 vert. timings>

Значит в оригинале будет так:
ModeLine   "1024x768"   954.5   1024 1072   1168 1376   768 769   772 808
А дальше это строку переносим в /root/xorg.conf.new
===============================================================================
Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "SAM"
    ModelName    "SyncMaster"
    ModeLine     "1024x768"   954.5   1024 1072   1168 1376   768 769   772 808
    Option       "DPMS"
EndSection
===============================================================================							 

НО!

Нам нужно выставить 85Hz частоту обновление монитора (герцовку). Как быть?
Вообще впринципе есть калькулятор gtf который может подсчитать цифрки...
Он устанавливается всесте с Xorg.

Начну с того что в yandex.ru я нашёл спецификацию моего монитора 
http://market.yandex.ru/model.xml?hid=91052&modelid=107052&clid=502
и там вычитал следущее:
==========================================================================
Поддерживаемые разрешения	800x600 @ 109 Гц
				1024x768 @ 86 Гц (рекоменд)
				1280x1024 @ 65 Гц
     
Частота развертки	горизонтальная: 30-70 КГц; вертикальная: 50-160 Гц
     
Полоса пропускания	110 МГц
===========================================================================

!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?
Маленькое отступление:
Дома у меня стоит вот такая модель: 
http://market.yandex.ru/model.xml?hid=91052&modelid=107141
===========================================================================
Поддерживаемые разрешения	800x600 @ 110 Гц
				1024x768 @ 85 Гц (рекоменд)
				1280x1024 @ 75 Гц
				1600x1200 @ 60 Гц
     
Частота развертки	горизонтальная: 30-86 КГц; вертикальная: 50-160 Гц
     
Полоса пропускания	135 МГц
===========================================================================
Но до этого моника я ещё не добрался... Вообще целая проблема...
Этот моник и видяха моя Radeon x1950pro... Ну ничего я и до них доберусь...
!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?

Идём дальше:
Через gtf я сделал расчёты:
sh# gtf 800 600 109 > /info.txt
sh# gtf 1024 768 86 >> /info.txt
sh# gtf 1280 1024 65 >> /info.txt
sh# ee /info.txt
==============================================================================================
   # 800x600 @ 109.00 Hz (GTF) hsync: 69.65 kHz; pclk: 74.67 MHz
   Modeline "800x600_109.00"  74.67  800 848 936 1072  600 601 604 639  -HSync +Vsync
   # 1024x768 @ 86.00 Hz (GTF) hsync: 69.40 kHz; pclk: 95.50 MHz
   Modeline "1024x768_86.00"  95.50  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync
   # 1280x1024 @ 65.00 Hz (GTF) hsync: 69.09 kHz; pclk: 119.40 MHz
   Modeline "1280x1024_65.00"  119.40  1280 1368 1504 1728  1024 1025 1028 1063  -HSync +Vsync
==============================================================================================    

Теперь занесём всё это в файл:
sh# ee /root/xorg.conf.new
=============================================================================================
~
Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "SAM"
        ModelName    "SyncMaster"

	# ==========----------**********>
        # 800x600 @ 109.00 Hz (GTF) hsync: 69.65 kHz; pclk: 74.67 MHz
        Modeline "800x600_109.00"  74.67  800 848 936 1072  600 601 604 639  -HSync +Vsync
        # 1024x768 @ 86.00 Hz (GTF) hsync: 69.40 kHz; pclk: 95.50 MHz
        Modeline "1024x768_86.00"  95.50  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync
        # 1280x1024 @ 65.00 Hz (GTF) hsync: 69.09 kHz; pclk: 119.40 MHz
        Modeline "1280x1024_65.00"  119.40  1280 1368 1504 1728  1024 1025 1028 1063  -HSync +Vsync
	# ==========----------**********>

 ### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 71.0
	VertRefresh  50.0 - 160.0
	Option      "DPMS"
EndSection
											 
~
~
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport   0 0
                Depth     1
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "800x600_109.00" "1024x768_86.00" "1280x1024_65.00"
        EndSubSection
EndSection
=============================================================================================
После запускаем и играемся с разными разрешениями:
sh# Xorg -config /root/xorg.conf.new

В меню самого монитора можно просмотреть установленую герцовку в данный момент!
Всё верно. Режимы работают на ура. +1 мне опыту ))).

Теперь я хочу поставить ещё немного Шрифтов:
sh# cd /usr/ports/x11-fonts/webfonts
sh# make install clean
Добовляем строку в xorg.conf.new в секцию Files:
======================================================
~
Section "Files"
        RgbPath      "/usr/local/share/X11/rgb"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        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/webfonts/"
EndSection
~
======================================================
И делаем перезапуск иксов.

Далее
sh# cd /usr/ports/x11-fonts/urwfonts
sh# make install clean
После установки вывалилось:
============================================================
You'll have to add /usr/X11R6/lib/X11/fonts/URW
to your X font path by either:

$ xset fp+ /usr/X11R6/lib/X11/fonts/URW
$ xset fp rehash

or by adding it to your X-server configuration file (usually
/etc/X11/XF86Config) and restarting the X-server.
============================================================

Делаем как нам сказали!

Добовляем строку в xorg.conf.new
======================================================
~
Section "Files"
        RgbPath      "/usr/local/share/X11/rgb"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        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/webfonts/"
	FontPath     "/usr/X11R6/lib/X11/fonts/URW"
EndSection
~
======================================================
Или же просто подгружаем без перезагрузке в сеансе X.
sh# xset fp+ /usr/X11R6/lib/X11/fonts/URW
sh# xset fp rehash

И всё! Шрифты у нас добавлены!

Двигаем дальше... 
Займёмся раскладкой клавиатуры! 
Сначала как всегда:
sh# man kbd
Там узнаём какие секции можно добавить в InputDevice!

И отредкатировал xorg.conf.new
==================================================================
~
Section "InputDevice"
    Identifier  "Keyboard0"		; Идентификатор
    Driver      "kbd"			; Драйвер
    Option      "XkbRules" "xorg"	; Просто название
    Option      "XkbModel" "pc104"	; Модель клавы 104 клавиши
    Option      "XkbLayout" "us,ru"	; Переключение между US,RU
    # Раскладка меняется на Ctrl + Shift и включает лампочку Scroll Lock!				
    Option      "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
    Option      "XkbVariant" ",winkeys"	; Используем клаву с клавишей WIN
    Option      "AutoRepeat" "250 30"	; Автоповторение нажатой клавиши
EndSection
~
===================================================================

Взял отсюда: http://ru.gentoo-wiki.com/XkbOptions
===================================================================================================================
 Параметры "XkbOptions"
 
 Варианты переключателей между языками в файле /etc/X11/xorg.conf
 
    1. grp:toggle - переключение правым Alt;
    2. grp:shift_toggle - двумя клавишами shift;
    3. grp:ctrl_shift_toggle - ctrl+shift;
    4. grp:alt_shift_toggle - alt+shift;
    5. grp:ctrl_alt_toggle - ctrl+alt;
    6. grp:caps_toggle - переключение по CapsLock;
    7. grp:lwin_toggle - переключение по левой "Win" клавише на Windows клавиатуре (для X Window старше 4.2);
    8. grp:rwin_toggle - переключение по правой "Win" клавише на Windows клавиатуре (для X Window старше 4.2);
    9. grp:menu_toggle - переключение по клавише "Контекстное меню" на Windows клавиатуре (для X Window старше 4.2);
   10. grp:lctrl_toggle переключение по левой клавише Control
   11. grp:rctrl_toggle переключение по правой клавише Control
   12. grp:switch - переключение по правому Alt только на момент нажатия
   13. grp:lwin_switch - переключение по левой клавише Windows только на момент нажатия
   14. grp:rwin_switch - переключение по правой клавише Windows только на момент нажатия
   15. grp:win_switch - переключение по любой клавише Windows только на момент нажатия 
					
    Возможные значения grp_led:
					
    1. grp_led - использовать индикаторы на клавиатуре для показания изменения группы
    2. grp_led:num - индикатор Num_Lock показывает изменения группы
    3. grp_led:caps - индикатор Caps_Lock показывает изменение группы
    4. grp_led:scroll - индикатор Scroll_Lock показывает изменение группы 
=====================================================================================================================

После завершения настроек просто перенесём файл xorg.conf.new в:
sh# cp /root/xorg.conf.new /etc/X11/xorg.conf
Теперь запуск делать можно просто:
sh# Xorg 
или 
sh# xdm 
или
sh# startx

Дальше поставим какой-нибудь графический менеджер...
Я вот всё хочу xfce посмотреть.
sh# cd /usr/ports/x11-wm/xfce4
sh# make pretty-print-run-depends-list
==================================================================================================
This port requires package(s) "compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0
fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 gcc-4.1.3_20071224 gdk-
pixbuf-0.22.0_6 gettext-0.16.1_3 glib-1.2.10_12 gtk-1.2.10_18 inputproto-1.4.2.1 jpeg-6b_4 kbproto
-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 
libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0
.2 libXevie-1.0.2 libXext-1.0.3,1 libXfixes-4.0.3 libXfont-1.3.1_1,1 libXfontcache-1.0.4 libXft-2.
1.12 libXi-1.1.3,1 libXinerama-1.0.2,1 libXmu-1.0.3,1 libXp-1.0.0,1 libXpm-3.5.7 libXprintAppUtil-
1.0.1 libXprintUtil-1.0.1 libXrandr-1.2.2 libXrender-0.9.4 libXres-1.0.3_2 libXt-1.0.5 libXtst-1.0
.3 libXv-1.0.3,1 libXvMC-1.0.4 libXxf86dga-1.0.2 libXxf86misc-1.0.1 libXxf86vm-1.0.1 libaudiofile-
0.2.6 libdmx-1.0.2 libfontenc-1.0.4 libiconv-1.11_1 liboldX-1.0.1 libxkbfile-1.0.4 libxkbui-1.0.2 
perl-5.8.8_1 pixman-0.9.6 pkg-config-0.22_1 png-1.2.23_1 printproto-1.0.3 randrproto-1.2.1 recordp
roto-1.13.2 renderproto-0.9.3 scrnsaverproto-1.1.0 tiff-3.8.2_1 trapproto-3.4.3 videoproto-2.2.2 x
extproto-7.0.2 xf86dgaproto-2.0.3 xf86miscproto-0.9.2 xf86vidmodeproto-2.2.2 xineramaproto-1.1.2 x
org-libraries-7.3_1 xproto-7.0.10_1 xtrans-1.0.4" to build.
==================================================================================================
Установка...
sh# cd /usr/ports/x11-wm/xfce4
sh# make install clean

... после установки:
sh# echo "startxfce4">>~/.xinitrc 
sh# startx

Наслаждаемся ))) 

PS: Только запускать нужно не от root'a!