Portál AbcLinuxu, 26. dubna 2024 22:16


Dotaz: Dva monitory, dvě plochy

1.6.2010 19:10 Kall Ell | skóre: 15
Dva monitory, dvě plochy
Přečteno: 977×
Odpovědět | Admin
Ahoj všem. Nedaří se mě rozjet dvě virtuální plochy na dvou monitorech, a už nevím jak dál. Článků jsem našel mraky i různých nastavení xorg.conf, ale vždy jsem tím zhodil xserver do terminálu a musel jsem vše vrátit zpět. Mám PC s integrovanou VGA a dvěma výstupy, DVI a VGA. Do VGA mám FullHD TV a v DVI mám LCD 20,1" 1600*1200. grafika je v tom Intel 82615G/GV/910GL Integration Graphics Controler. Distribuci mám Debian lanny a používám gnome. Budu ohromě rád za každou radu, která povede k tomu, abych měl na každé obrazovce vlastní plochu. Na LCD 1600x1200 na TV 1360x768. můj default xorg.conf:

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"cz"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
EndSection

Tohle nastavení jsem neúspěšně zkoušel:
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"cz"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

#Zde zacinaji sekce definic graficke karty
Section "Device"
       Identifier       "Device Interni"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "NONE,LFP"
       #VideoRam        131072 #pro 128MB Video Ram jen nove karty
       VideoRam 65536 #pro 64MB Video Ram
EndSection

Section "Device"
       Identifier       "Device Externi"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "NONE,CRT"
       #VideoRam        131072 #pro 128MB Video Ram jen nove karty
       VideoRam 65536 #pro 64MB Video Ram
EndSection

Section "Device"
       Identifier       "Device Interni Dual"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "CRT,LFP"
       Screen           0
EndSection

Section "Device"
       Identifier       "Device Externi Dual"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Screen           1
EndSection
#Zde konci sekce definic graficke karty

#Zde zacinaji sekce definic monitoru
Section "Monitor"
        Identifier      "Interni Monitor"
        Option          "DPMS"
EndSection

Section "Monitor"
        Identifier      "Externi Monitor"
        Option          "DPMS"
        HorizSync       30.0 - 81.0
        VertRefresh     56.0 - 75.0
EndSection
#Zde konci sekce definic monitoru

#Zde zacinaji sekce definic nastaveni rozliseni a barev s vyuzitim sekci predchozich
Section "Screen"
       Identifier      "Screen Externi"
       Device          "Device Externi"
       Monitor         "Externi Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1280x1024" "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1280x1024" "1024x768"
       EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Interni"
       Device          "Device Interni"
       Monitor         "Interni Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1024x768"
       EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Externi Dual"
       Device          "Device Externi Dual"
       Monitor         "Externi Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1280x1024" "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1280x1024" "1024x768"
       EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Interni Dual"
       Device          "Device Interni Dual"
       Monitor         "Interni Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1024x768"
       EndSubSection
EndSection
#Zde konci sekce definic nastaveni rozliseni a barev s vyuzitim sekci predchozich

#Zde zacinaji sekce konecnych prostredi s vyuzitim vsech predchozich definic
Section "ServerLayout"
        Identifier      "Dual"
        Screen          0 "Screen Interni Dual"
        Screen          1 "Screen Externi Dual" LeftOf "Screen Interni Dual"
#       Screen          1 "Screen Externi Dual" RightOf "Screen Interni Dual"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
        Option          "Xinerama" "true"
EndSection

Section "ServerLayout"
        Identifier      "Externi"
        Screen          "Screen Externi"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
EndSection

Section "ServerLayout"
        Identifier      "Interni"
        Screen          "Screen Interni"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
EndSection
#Zde konci sekce konecnych prostredi s vyuzitim vsech predchozich definic

Section "DRI"
        Mode    0666
EndSection

# Zde zacina sekce pro specialni volby pro cele xka, 
# v nasem pripade urcujeme s jakym nastavenim ze vsech
# definovanych maji nakonec xka nabehnout
Section "ServerFlags"
        #Option         "DefaultServerLayout" "Interni"
        Option          "DefaultServerLayout" "Externi"
        #Option         "DefaultServerLayout" "Dual"
EndSection
# Zde konci sekce pro specialni volby pro cele xka
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

2.6.2010 02:04 pakanek | skóre: 28 | Vyškov
Rozbalit Rozbalit vše Re: Dva monitory, dvě plochy
Odpovědět | | Sbalit | Link | Blokovat | Admin
Co tento návod: http://www.thinkwiki.org/wiki/Xorg_RandR_1.2?
Všechno dobré je pro něco zlé.
2.6.2010 09:04 Kall Ell | skóre: 15
Rozbalit Rozbalit vše Re: Dva monitory, dvě plochy
Tohle vyzkouším, uvidíme k čemu se dopátrám. Ještě bych se k tomu chtěl na něco zeptat, všude se mluví o verzi ovladače, ale netuším, jak mám zjistit, který ovladač a jakou verzi tam mám. Poradíte? Gnome mám chvilku a dosti v tom plavu.
7.6.2010 18:29 Kall Ell | skóre: 15
Rozbalit Rozbalit vše Re: Dva monitory, dvě plochy
Ten návod mě zavedl do systému nastavení. Přes xrandr zapínám a vypínám ty obrazovky, ale nevím jak mám napsat do souboru xorg.conf rozlišení a to že jsou plochy vitruální. Nevím kam. Zkoušel jsem to podle toho návodu, ale ať jsem napsal do toho souboru cokoliv, vždy mě xserver spadnul a musel jsem dát výchozí xorg.conf. Propadám zoufalství. xrandr mě vypíše:
Screen 0: minimum 320x320, current 1360x768 maximum 1680x1680
VGA connected 1360x768+0+0 (normal left inverted right x axis y axis)
nějaký druhy rozlišení
TMDS-1 connected 1280x768+0+0 (normal left inverted right x axis y axis)
Já bych potřeboval aby VGA mělo 1920x1080 a TMDS-1 1600x1200 s tím že výchozí by byl TMDS-1. na VGA by možná stačilo i 1360x768 mám to jenom na přehrávání filmů. I když TV podporuje fullHD zatím to rozlišení nevyžaduju. Poradíte prosím?

Pokud jsem to dobře pochopil, musím do souboru xorg.conf někam napsat, že se jedná o virtuální plochu o rozlišení 2960 x 1200. Pak nastavit na TMDS-1 rozlišeni na 1600x1200 a na VGA 1360x768 a VGA posunout po ose x o 1200px. teorie hezká, ale jak to napsat do toho souboru aby to ten xserver pobral?
7.6.2010 18:51 michal | skóre: 24 | blog: Blog
Rozbalit Rozbalit vše Re: Dva monitory, dvě plochy
Oficiální návod je tady http://intellinuxgraphics.org/dualhead.html

ty virtuální plochy nejsou třeba řešit pokud máš novější verze ovladačů alespoň 2.10.x . Pokud z nějakého důvodu chceš zůstat u starších ovladačů tak do xorg.conf přidej
Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "LVDS"
    SubSection "Display"
        Depth 24
        Virtual 4096 2048
    EndSubSection
EndSection
kde za Device a Monitor dosaď ze svého xorg.conf
7.6.2010 19:11 Kall Ell | skóre: 15
Rozbalit Rozbalit vše Re: Dva monitory, dvě plochy
prosím tě, už mě to jakš takš funguje. Jen s tím že lišty mám na TV a ne na monitoru. potřeboval je mýt na TMDS-1. Jak zjistím verzi ovladače VGA? Klidně přejdu na novější, poradíš mě jak? V tomto jsem začátečník a rád bych se v tom zdokonalil. Dík

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.