LINUX.ORG.RU

Корректен ли данный конфиг?

 , , ,


1

1

Задача включить второй монитор, на второй видеокарте, не выходит.


Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	Option         "Xinerama" "0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection


Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	Option "Primary" "true"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"	
	Option      "LeftOf" "Monitor0"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
	Screen	    0 
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "nouveau"
	BusID       "PCI:2:0:0"
	Screen	    1 
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	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
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    DefaultDepth    24
	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
EndSection

Когда чего-то не выходит, то принято еще и лог выкладывать. Телепаты спились все. Я вот, например, бредположил, что у тебя от такого конфига просто мониторы взорвались. Что не выходит? Что пишет? Не совсем ясно. Выкладывай /var/log/Xorg.0.log на pastebin.com.

Zubok ★★★★★
()
Ответ на: комментарий от alexVio

ok, расскажи тогда, пробовал удалять Screen 1 и Screen 0 из секций Device? В принципе, эти опции не для этого случая, который ты настраиваешь. Они применяются, когда хочешь с одной карты с разных видеовыходов сделать два разных экрана.

Section "Device"
	Identifier  "Card1"
	Driver      "nouveau"
	BusID       "PCI:2:0:0"
	Screen	    1    <------- вот это удали и Screen 0
EndSection

man xorg.conf:

Screen number

This option is mandatory for cards where a single PCI entity can drive more than one display (i.e., multiple CRTCs sharing a sin‐ gle graphics accelerator and video memory). One Device section is required for each head, and this parameter determines which head each of the Device sections applies to. The legal values of number range from 0 to one less than the total number of heads per entity. Most drivers require that the primary screen (0) be present.

Zubok ★★★★★
()
Ответ на: Заработало от alexVio

Xinerama - это совсем другая вещь. То, что делал ты - это два отдельных независимых экрана. Тогда оконный менеджер надо запускать на обоих отдельно через переменную DISPLAY. Либо оконный менеджер должен явно уметь с раздельными экранами работать (некоторые умеют).

Xinarama делает один большой виртуальный экран на два монитора. Более современный механизм - RandR.

Zubok ★★★★★
()
Последнее исправление: Zubok (всего исправлений: 1)
Ответ на: комментарий от Zubok

Возможно ли это в моём случае, с двумя разными видеокартами...

alexVio
() автор топика
Ответ на: Заработало от alexVio

Спасибо...только DE не совсем корректно работают...но подозреваю что xinerama поможет

Это не рассказ для технического форума. А как работает? А что за DE? А как ожидается или как хочется?

Zubok ★★★★★
()
Последнее исправление: Zubok (всего исправлений: 1)
Ответ на: комментарий от Zubok

KDE отображается некорректно, c xfce работает лучше.

xrandr

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384
HDMI-1 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
VGA-1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
   1366x768      59.79*+
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08 

И на втором мониторе:


Screen 1: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
VGA-1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
   1440x900      59.89*+  74.98  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1152x864      75.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
alexVio
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.