Re: [XFree86] Test VGA interface

2003-09-02 Thread Chimou
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:
 BusID0: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 [EMAIL PROTECTED]
###

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

Loaddbe
Loadextmod
Loadtype1
Loadfreetype
Loadglx

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 ProtocolPS/2
Option Device  /dev/psaux
Option Emulate3Buttons

EndSection

Section InputDevice

Identifier  logitech usb
Driver  mouse
Option ProtocolimPS/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 

Re: [XFree86] Test VGA interface

2003-09-02 Thread Mark Vojkovich
On Tue, 2 Sep 2003, Chimou wrote:

 On Mon, 2003-09-01 at 14:44, Kevin Brosius wrote:
  
  The XF86Config file allows you to specify BusID for each Device in the
  form:
  BusID0: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.


   There are EDID probing utilities out there, and I'm told that
there are Vesa standard ways to probe multiple heads on a single
device.  Whether those EDID probing utilities are up-to-date enough
to support the multihead Vesa stuff is another matter.  So basically,
it should be possible to do this in a device independent way, but
I don't know if there is any software that does that.


Mark.

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] Test VGA interface

2003-09-01 Thread Kevin Brosius
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:
BusID0: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.

-- 
Kevin
___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86