Re: [XFree86] Test VGA interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2003-09-01 at 14:44, Kevin Brosius wrote:
> Chimou wrote:
> > 
> > 
> > Hi,
> > 
> > I would like to know if it is possible with standard xfree features
> > to know if a display is connected to a particular VGA interface or
> > if it is specific to the hardware/driver used.
> > 
> > For information, I have a nvidia card and I use the binary driver
> > from NVIDIA. The goal is to start a different layout in function of
> > connected display.
> > 
> > Thx for your help or your tips
> 
> The XF86Config file allows you to specify BusID for each "Device" in the
> form:
> BusID        "0:14:0"
> Each device could then be configured with it's own "Screen" section. 
> And then you just need to specify their layout with the "ServerLayout"
> section (if you are doing multi-head).  Most of what you need should be
> in 'man XF86Config' for the keywords.

I think you may have misundertand my question. I already have a working
configuration for both my xinerama and my mono monitor with two layout
(I attach my XF86Config with this email).

That what I would do it's to automatically detect if a monitor is
connected to my analog D-SUB VGA Connector of my laptop, and if yes,
start X with the layout support Xinerama, and if no, start X with
the simple layout with only one monitor.

So my question is : Does someone know a command or a package, within
X or indepently (specific or not to a particular card), to detect
which monitor is attached to a card ?

Thx in advance for your help.


-- 
Chimou <chimou@xxxxxxx>
###############################################################################

Section "Files"

    RgbPath    "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/truetype/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

EndSection

###############################################################################

Section "Module"

    Load        "dbe"
    Load        "extmod"
    Load        "type1"
    Load        "freetype"
    Load        "glx"

EndSection

###############################################################################

Section "ServerFlags"

#    Option "NoTrapSignals"
#    Option "DontVTSwitch"
#    Option "DontZap"
#    Option "Dont Zoom"
#    Option "DisableVidModeExtension"
#    Option "AllowNonLocalXvidtune"
#    Option "DisableModInDev"
#    Option "AllowNonLocalModInDev"

    Option "BlankTime" "0"
    Option "StandbyTime" "5"
    Option "SuspendTime" "10"
    Option "OffTime" "15"

EndSection

###############################################################################

Section "InputDevice"

    Identifier	"clavier"
    Driver	"Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"	"xfree86"
    Option "XkbModel"	"pc105"
    Option "XkbLayout"	"fr"

EndSection

Section "InputDevice"

    Identifier	"touchpad"
    Driver	"mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
    Option "Emulate3Buttons"

EndSection

Section "InputDevice"

    Identifier	"logitech usb"
    Driver	"mouse"
    Option "Protocol"    "imPS/2"
    Option "Device"      "/dev/input/mice"
    Option "Buttons" "5"
    Option "ZAxisMapping" "4 5"
    Option "SendCoreEvents" "true"

EndSection

###############################################################################

Section "Monitor"

    Identifier  "lcd"
    DisplaySize 335 210
    HorizSync 30-82
    VertRefresh 50-160
    Modeline "1680x1050" 135.36 1680 1712 2224 2256 1050 1072 1081 1103
    Option "DPMS"

EndSection

Section "Monitor"

    Identifier  "lg775n"
    HorizSync 30-64
    VertRefresh 50-100
    Modeline "1680x1050" 135.36 1680 1712 2224 2256 1050 1072 1081 1103
    Option "DPMS"

EndSection

Section "Monitor"

    Identifier  "a901ht"
    Option "DPMS"

EndSection

Section "Monitor"

    Identifier  "tv"
    HorizSync   50-100
    VertRefresh 30-100

EndSection

###############################################################################

Section "Device"

    Identifier  "solo"
    Driver      "nvidia"
#    Driver      "nv"
    Option      "NoLogo" "true" 
    Option      "NvAGP" "3"
    Option      "FlatPanelProperties" "Scaling = aspect-scaled"
    Option      "TwinView" "false"

EndSection

Section "Device"

    Identifier  "boulot"
    Driver      "nvidia"
    Option      "NoLogo" "true" 
    Option      "NvAGP" "3"
    Option      "FlatPanelProperties" "Scaling = aspect-scaled"
    Option      "SecondMonitorHorizSync" "30-82"
    Option      "SecondMonitorVertRefresh" "50-160"
    Option      "TwinView" "true"
    Option      "Metamodes" "1024x768,1680x1050;NULL,1280x1024;NULL,1024x768;NULL,800x600;NULL,640x480"

EndSection

Section "Device"

    Identifier  "tv"
    Driver      "nvidia"
    Option      "NoLogo" "true" 
    Option      "NvAGP" "3"
#    Option      "TVStandard" "PAL-N"
    Option      "TwinView" "true"
    Option      "TwinViewOrientation" "Clone"
    Option      "SecondMonitorHorizSync" "30-82"
    Option      "SecondMonitorVertRefresh" "50-160"
    Option      "Metamodes" "1024x768,1024x768"

EndSection


###############################################################################

Section "Screen"

    Identifier  "solo"
    Device      "solo"
    Monitor     "lcd"
    DefaultDepth 24

    Subsection "Display"

        Depth       24
        Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0

    EndSubsection

EndSection

Section "Screen"

    Identifier  "boulot"
    Device      "boulot"
    Monitor     "lg775n"
    DefaultDepth 24

    Subsection "Display"

        Depth       24
        Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0

    EndSubsection

EndSection

Section "Screen"

    Identifier  "tv"
    Device      "tv"
    Monitor     "tv"
    DefaultDepth 24

    Subsection "Display"

        Depth       24
        Modes       "1024x768"
        ViewPort    0 0

    EndSubsection

EndSection

###############################################################################

Section "ServerLayout"

    Identifier  "solo"
    Screen "solo"
    InputDevice "touchpad" "CorePointer"
    InputDevice "clavier" "CoreKeyboard"
    InputDevice "logitech usb" "SendCoreEvents"

EndSection

Section "ServerLayout"

    Identifier  "boulot"
    Screen "boulot"
    InputDevice "touchpad" "CorePointer"
    InputDevice "clavier" "CoreKeyboard"
    InputDevice "logitech usb" "SendCoreEvents"

EndSection

Section "ServerLayout"

    Identifier  "tv"
    Screen "tv"
    InputDevice "touchpad" "CorePointer"
    InputDevice "clavier" "CoreKeyboard"

EndSection

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux