You are not logged in.

#1 2005-11-04 16:29:43

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Dualhead is working, but it is always on..

Hi!

I have a problem, and I expect that others have too...

I have a laptop, with a geforce4200go in it, and most of the time I am not connected to an external monitor, but once in a while I have my lcd-tv connected and therefore I have created a dual-head setup...It is working flawlessly...

but now for my problem, I only wanna use this WHEN, and only when, the external monitor is connected, as I have now, it is always configured to run, which starts up two instances of my vm and so on...(which is fine when using the other monitor)....

How can I do "a detection" that the screen isn't in use and in some way get the driver/xorg.conf file realize that I only have one screen actiive?

here is my xorg.conf (note: I will NOT use xinerama nor twinview)
if anyone has an idea, please share, I would prefer not using two xorg.conf's but if that is the only way, please explain where one might do a cat /some/file |grep "second monitor" and then do a bash-script which would choose to start either one of the xorg.conf -files

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    Screen      1  "ScreenTV" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option           "Xinerama" "false"
EndSection

Section "Extensions"
  Option "Composite" "Enable"
EndSection

# *********************************************************************
#  Files section.  This allows default font and rgb paths to be set
#      not to self, this section should be good to go
# ********************************************************************
Section "Files"
    RgbPath    "/usr/X11R6/lib/X11/rgb"    
    ModulePath "/usr/X11R6/lib/modules"
    FontPath   "/usr/share/fonts/"
    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/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath   "/usr/X11R6/lib/X11/fonts/artwiz-fonts/"
EndSection

# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************
Section "Module"
    Load  "glx"
    Load  "record"
    Load  "extmod"
    Load  "dbe"
    Load  "xtrap"
    Load  "freetype"
    Load  "type1"
EndSection

# **********************************************************************
# Keyboards         -  need to fix this...
# **********************************************************************
Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "se"
EndSection

# **********************************************************************
# Mice (one section takes care of all)
# **********************************************************************
Section "InputDevice"
    Identifier  "Mouse0"
    Driver  "mouse"
    Option  "CorePointer"
    Option  "Protocol"        "ExplorerPS/2"
    Option  "Device"          "/dev/input/mice"
    Option  "ZAxisMapping"   "6 7"
    Option  "Buttons"         "7"
    Option  "Emulate3Buttons" "on"
EndSection

Section "Monitor"
    Identifier  "Monitor0"
    ModelName "Dell Inspiron 8500 WXGA Panel"
    HorizSync   15-100.0
    VertRefresh 15.0-120.0
    DisplaySize  426 266
    # 60Hz
    Modeline "640x480" 25.175 640 664 760 800 480 491 493 525
    Modeline "800x600" 40.12 800 848 968 1056 600 601 605 628
    Modeline "1024x768" 85 1024 1056 1152 1360 768 784 787 823
    Modeline "1360x768"  84.50  1360 1392 1712 1744 768  783  791  807
    Modeline "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087
    # 75Hz
    Modeline "1680x1050" 188.07 1680 1800 1984 2288 1050 1051 1054 1096
    # 85Hz
    Modeline "1680x1050" 214.51 1680 1800 1984 2288 1050 1051 1054 1103
    # 100Hz
    Modeline "1680x1050" 256.20 1680 1808 1992 2304 1050 1051 1054 1112
EndSection

Section "Monitor"
    Identifier   "MonitorTV"
    VendorName   "Centrum"
    ModelName    "Centrum 32 widescreen TV"
    HorizSync    31.4 - 61
    VertRefresh  56-75
       DisplaySize  810 400
    #    Modeline    "1024x768@100" 85 1024 1056 1152 1360 768 784 787 823
    #Modeline    "1024x576@60" 45.81 1024 1056 1224 1256 576 587 593 605
    Modeline "1360x768" 85.750 1360 1432 1568 1776 768 771 776 798 -hsync +vsync
    #    Modeline "1360x768"  84.50  1360 1392 1712 1744 768  783  791  807
    #    ModeLine "1366x768" 88.03 1366 1424 1680 1816 768 770 782 808
        ModeLine "1368x768" 84.97 1368 1400 1720 1752 768 783 791 807


#    Option        "TVStandard" "PAL-B"
#    Option        "TVOutFormat" "SVIDEO"
EndSection

Section "Device"
    Identifier  "Videocard0"
    Driver      "nvidia"
    VendorName  "NVidia"
    BoardName   "NVIDIA GeForce 4200 Go"
    Option        "NoLogo" "true"
    Option      "NvAGP" "3"
    BusID       "PCI:1:0:0"
    VideoRam 65536
    Option "DPMS" "true"
    BusID  "PCI:1:0:0"
    Option "RenderAccel" "true"
    Option "NoRenderExtension" "false"
#    Option "FlatPanelProperties" "Scaling = aspect-scaled"
    Option "NoPowerConnectorCheck" "true"
    Option "dpms"
    Option "UseEdidFreqs"   "yes"
    Option "IgnoreEDID" "false"
    Option "AllowDDCCI" "true"
    Option "Coolbits" "1"
    Option "AllowGLXWithComposite" "true"
    Option "NoFlip" "false"
    Option "RandRRotation" "false"
#    Option "DigitalVibrance" "2"
#        Option "SWCursor" "0"
#        Option "HWCursor" "1"
#        Option "CursorShadow" "1"
#        Option "CursorShadowAlpha" "64"
#        Option "CursorShadowXOffset" "4"
#        Option "CursorShadowYOffset" "2"
     Option "ConnectedMonitor" "DFP"
#    Option "TwinView" "1"
#    Option "TwinViewOrientation" "Clone"
#   Option "MetaModes" "1360x768, 1360x768; 800x600, 800x600; 640x480, 640x480"
#   Option "MetaModes" "DFP-0: 1360x768, CRT-0: 1360x768"
#    Option "NoTwinViewXineramaInfo" "1"
#    Option "TVStandard" "PAL-B"
#    Option "TVOutFormat" "SVIDEO"
#    Option "ConnectedMonitor" "DFP-0, TV-0"
#    Option "HorizSync" "DFP-0: 15-100; CRT-0: 30-60"
#    Option "VertRefresh" "DFP-0: 15-120; CRT-0: 30-60"
#    Option "TVOverScan" "0.6"
EndSection

Section "Device"
    Identifier  "VideocardTV"
    Driver      "nvidia"
    VendorName  "NVidia"
    BoardName   "NVIDIA GeForce 4200 Go"
    Option        "NoLogo" "true"
    Option        "ConnectedMonitor" "CRT"
    Option        "NvAGP" "3"
    BusID       "PCI:1:0:0"
    VideoRam 65536
    Option "DPMS" "true"
    Option "RenderAccel" "true"
    Option "NoRenderExtension" "false"
    Option "NoPowerConnectorCheck" "true"
    Option "AllowGLXWithComposite" "true"
    Option "NoFlip" "false"
    Option "AllowDDCCI" "true"
    Option "Coolbits" "1"

    Option "RandRRotation" "false"
#    Option "DigitalVibrance" "2"
#        Option "SWCursor" "0"
#        Option "HWCursor" "1"
#        Option "CursorShadow" "1"
#        Option "CursorShadowAlpha" "64"
#        Option "CursorShadowXOffset" "4"
#        Option "CursorShadowYOffset" "2"
    Screen      1
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Videocard0"
    Monitor    "Monitor0"
    DefaultDepth     24
    Subsection "Display"
        Depth       8
        Modes       "1680x1050" "1360x768" "1024x768" "800x600" "640x480"
        #ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1680x1050" "1360x768" "1024x768" "800x600" "640x480"
        #ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1680x1050" "1360x768" "1024x768" "800x600" "640x480"
        #ViewPort    0 0
    EndSubSection
EndSection

Section "Screen"
    Identifier "ScreenTV"
    Device     "VideocardTV"
    Monitor    "MonitorTV"
    DefaultDepth     24
    Subsection "Display"
        Depth       8
        Modes       "1360x768" "1024x768@60" "800x600@60" "640x480@60"
        #ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1360x768" "1024x768" "800x600" "640x480"
        #ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1368x768" "1360x768" "1024x768" "800x600" "640x480"
        #ViewPort    0 0
    EndSubSection
EndSection

http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

Board footer

Powered by FluxBB