[linux] 2 pouzivatelia na 2 monitoroch

Juraj Variny jv99737 na decef.elf.stuba.sk
Sobota Srpen 14 16:15:44 CEST 2004


Zdravim,

chcel by som rozbehat 2 nezavisle X konzoly na jednom pocitaci. Mam AGP Nvidiu 
geforce2 a PCI ATi Mach64. Multihead konfiguracia funguje bez problemov. Ale 
ked sa pokusam spustit dva X servery, tak to vyzera takto:

- spustim jeden X server na :0 (napriklad ATI na pravom monitore), nabehne WM. 
Lavy monitor(kde bola textova konzola) zhasne.
- spustim druhy X server na :1, v tom okamihu sa ale na pravom monitore objavi 
iba "ATI Mach64 BIOS..". Na lavom monitore na :1 nabehne WM.
- ukoncim :1, nasledne sa na druhom monitore znovu objavi funkcny povodny WM 
na displeji :0.
- pravy monitor zostane tmavy az kym neukoncim WM na :0 .

Sprava sa to rovnako ci pouzijem "nvidia" alebo "nv" drajver. Naraz funguje 
iba jedna karta.

Pokial viem, Xy 4.3.0 toto umoznuju a riesenie je mozno trivialne (nejako mu 
zakazat inicializaciu videokariet nepatriacich do danej konfiguracie). Neviem 
sa ale toho dopatrat.

Mam momentalne k dispozicii iba jednu klavesnicu, ale to  by nemalo mat 
suvislost. Dokonca si mozem v pohode vyberat pomocou Ctl-Alt-Fx: bud je mozne 
vidiet a ovladat jeden z X serverov alebo textovu konzolu....


------------- další část ---------------
# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
    # Multiple FontPath entries are allowed (they are concatenated together)
    # By default, Mandrake 6.0 and later now use a font server independent of
    # the X server to render fonts.
    FontPath "unix/:-1"
EndSection

Section "ServerFlags"
    #DontZap # disable <Crtl><Alt><BS> (server abort)
    AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
    DefaultServerLayout "layout1"
EndSection

Section "Module"
    Load "dbe" # Double-Buffering Extension
    Load "v4l" # Video for Linux
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx" # 3D layer
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "Keyboard"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "sk_qwerty"
    Option "XkbOptions" ""
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier "Mouse2"
    Driver "mouse"
    Option "Protocol" "IntelliMouse"
    Option "Device" "/dev/ttyS0"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Plug'n Play"
    HorizSync 30-95
    VertRefresh 50-160
    #pod chromium to uz viac nestiha
    
    # Sony Vaio C1(X,XS,VE,VN)?
    # 1024x480 @ 85.6 Hz, 48 kHz hsync
    # ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync
    
    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
    
    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
    
    # 640x400 @ 85 Hz, 37.86 kHz hsync
    ModeLine "640x400"     31.5   640  672 736   832   400  401  404  445 -HSync +VSync
    
    # 800x600 @ 85 Hz, 55.84 kHz hsync
    ModeLine "800x600"    60.75  800  864  928 1088   600  616  621  657 -HSync -VSync
    
    # 1024x768 @ 85 Hz, 70.24 kHz hsync
    # ModeLine "1024x768"   98.9  1024 1056 1216 1408   768 782 788 822 -HSync -VSync
    ModeLine "1024x768"   115  1024 1056 1216 1408   768 782 788 822 -HSync -VSync
    
    # 1280x1024 @ 85 Hz, 91.15 kHz hsync
    ModeLine "1280x1024"  157.5  1280 1344 1504 1728  1024 1025 1028 1072 +HSync +VSync
    
    # 1152x864 @ 84 Hz, 76.0 kHz hsync
    ModeLine "1152x864"   135    1152 1464 1592 1776   864  864  876  908
    ModeLine "1280x960"  125  1280 1344 1504 1728  960 961 964 1004 +HSync +VSync
    ModeLine "1400x1050" 172   1400 1464 1720 1896  1050 1052 1064 1100 -HSync -VSync
    DisplaySize 332 249
EndSection

Section "Monitor"
    Identifier "Monitor2"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
EndSection

Section "Device"
    Identifier "device1"
    VendorName "nVidia Corporation"
    BoardName "NVIDIA GeForce2 DDR (generic)"
    Driver "nvidia"
#    Driver "nv"
    Option "DPMS"
    Option "NoLogo" "True"
    # Option "BackingStore" "yes"
    	BusID       "PCI:1:0:0"
EndSection

Section "Device"
    Identifier "Card1"
    VendorName "ATI"
    BoardName "3D Rage II+ 215GTB [Mach64 GTB]"
    ChipSet "ati"
    Driver "ati"
    BusID "PCI:0:15:0"
    #Option "shadow_fb"          	# [<bool>]
    #Option "sw_cursor"          	# [<bool>]
    #Option "reference_clock"    	# <freq>
    ChipId 0x4755
    #Option "probe_clocks"       	# [<bool>]
    #Option "composite_sync"     	# [<bool>]
    #Option "mmio_cache"         	# [<bool>]
    
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "accel"              	# [<bool>]
    #Option "panel_display"      	# [<bool>]
    #Option "linear"             	# [<bool>]
    #Option "hw_cursor"          	# [<bool>]
    #Option "crt_display"        	# [<bool>]
    ChipRev 0x9a
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24
    
    Subsection "Display"
        Depth 8
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 15
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 16
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 24
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
EndSection

Section "Screen"
    Identifier "screen2"
    Device "Card1"
    Monitor "monitor2"
    DefaultColorDepth 24
    
    Subsection "Display"
        Depth 8
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 15
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 16
        Modes "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "320x200"
    EndSubsection
    
    Subsection "Display"
        Depth 24
        Modes "800x600" "640x480" "320x200"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Mouse2" "SendCoreEvents"
EndSection

Section "ServerLayout"
    Identifier "layout2"
    Screen "screen2"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse2" "CorePointer"
EndSection

Section "DRI"
    Mode 0666
EndSection


Další informace o konferenci linux