Forum Linux.général Configurer Xorg pour affichage LCD + projecteur

Posté par  .
Étiquettes : aucune
0
20
juil.
2006
Bonjour,

Je dois faire une présentation avec un projecteur, et je me suis rendu compte que ça va pas être évident avec mon laptop tournant sous Linux (mandriva 2006).

Il semblerait qu'il va falloir configurer le fichier xorg.conf. J'ai lu le man xorg.conf, et j'en suis sorti encore plus confus qu'avant.

Est ce que quelqu'un a de l'expérience sur comment configurer xorg.conf pour qu'il sorte une image compatible avec un projecteur? Je pense qu'il faut choisir un mode d'affichage "clone" (cad même image pour le LCD laptop et projecteur, mais à des résolutions différentes).

Voici mon xorg.conf actuel (créé à l'origine par mandriva+ATI, et un peu bidouillé par moi pour faire marcher une wacom):

# File: xorg.conf
# File generated by fglrxconfig (C) ATI Technologies, a substitute for xf86config.

# Note by ATI: the below copyright notice is there for servicing possibly
# pending third party rights on the file format and the instance of this file.
#
# Copyright (c) 1999 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 Project.
#

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
# **********************************************************************

# **********************************************************************
# DRI Section
# **********************************************************************

Section "dri"
# Access to OpenGL ICD is allowed for all users:
Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
# Group 100 # users
# Mode 0660
EndSection
# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#

Section "Module"
# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"

# This loads the GLX module
Load "glx" # libglx.a
Load "dri" # direct rendering

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

Subsection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubsection
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
#

# 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/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
# FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path. The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"
# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

# Option "NoTrapSignals"

# Uncomment this to disable the server abort sequence
# This allows clients to receive this key event.

# Option "DontZap"

# Uncomment this to disable the <KP_+>/<KP_-> mode switching
# sequences. This allows clients to receive these key events.

# Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

# Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

# Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

# Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

# Option "AllowNonLocalModInDev"
EndSection
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "pt"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

# Option "Protocol" "Xqueue"

Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"

# These are the default XKB settings for XFree86
# Option "XkbRules" "xfree86"
# Option "XkbModel" "pc101"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""

# Option "XkbDisable"

Option "XkbRules" "xfree86"
Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
Identifier "Eraser1"
Driver "wacom"
Option "Device" "/dev/input/event3"
Option "Type" "eraser"
Option "Mode" "Absolute"
Option "USB"
EndSection

Section "InputDevice"
Identifier "Cursor1"
Driver "wacom"
Option "Device" "/dev/input/event3"
Option "Type" "cursor"
Option "Mode" "Relative"
Option "USB"
EndSection

Section "InputDevice"
Identifier "Stylus1"
Driver "wacom"
Option "Device" "/dev/input/event3"
Option "Type" "stylus"
Option "Mode" "Absolute"
Option "USB"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "Flat Panel 1680x1050"
HorizSync 31.5-90
VertRefresh 60

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_120" 313.20 1680 1816 2000 2320 1050 1051 1054 1125 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_100" 256.20 1680 1808 1992 2304 1050 1051 1054 1112 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_85" 214.51 1680 1800 1984 2288 1050 1051 1054 1103 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_75" 188.07 1680 1800 1984 2288 1050 1051 1054 1096 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_60" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_50" 120.21 1680 1776 1952 2224 1050 1051 1054 1081 -HSync +Vsync
EndSection

Section "Device"
Identifier "device1"
BoardName "ATI Radeon (fglrx)"
Driver "fglrx"
Option "DPMS"
Option "FSAAMSPosY1" "0.000000"
Option "StereoSyncEnable" "1"

# === disable PnP Monitor ===
#Option "NoDDC"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAADisableGamma" "no"

# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
Option "ForceGenericCPU" "no"
Option "GammaCorrectionII" "0x00000000"
Option "VRefresh2" "unspecified"
Option "FSAAMSPosY5" "0.000000"
Option "CenterMode" "off"
Option "IgnoreEDID" "off"

# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
Option "FSAACustomizeMSPos" "no"

# === FSAA ===
Option "FSAAScale" "1"

# === FireGL DDX driver module specific settings ===
# === Screen Management ===
Option "DesktopSetup" "0x00000000"
Option "HSync2" "unspecified"
Option "TVHStartAdj" "0"
Option "FSAAMSPosX0" "0.000000"
Option "no_dri" "no"
Option "GammaCorrectionI" "0x00000000"
Option "FSAAMSPosX1" "0.000000"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "MonitorLayout" "AUTO, AUTO"

# === disable/enable XAA/DRI ===
Option "no_accel" "no"

# === Misc Options ===
Option "UseFastTLS" "0"
Option "FSAAMSPosY3" "0.000000"

# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
Option "TVStandard" "NTSC-M"
Option "TVVPosAdj" "0"
Option "TVColorAdj" "0"
Option "FSAAMSPosY2" "0.000000"

# === TV-out Management ===
Option "NoTV" "yes"
Option "TVHSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "ScreenOverlap" "0"

# === QBS Support ===
Option "Stereo" "off"
Option "FSAAMSPosX3" "0.000000"
Option "TVVSizeAdj" "0"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1680 1050
EndSubsection

Subsection "Display"
Depth 15
Virtual 1680 1050
EndSubsection

Subsection "Display"
Depth 16
Virtual 1680 1050
EndSubsection

Subsection "Display"
Depth 24
Virtual 1680 1050
EndSubsection
EndSection
# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
# The Identifier line must be present
Identifier "Server Layout"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Eraser1" "AlwaysCore"
InputDevice "Cursor1" "AlwaysCore"
InputDevice "Stylus1" "AlwaysCore"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection

  • # Normalement pas de problème...

    Posté par  . Évalué à 1.

    J'ai déjà fait plusieurs présentations, avec différents ordinateurs, et aucun problème, la sortie pour le vidéo-projecteur marchait directement.

    Eventuellement, en cas de problème, brancher le video-projecteur avant d'allumer le bestiau, mais normalement pas de soucis.
    Tu as déjà essayé, ou c'est juste une précaution?
  • # alors voila

    Posté par  . Évalué à 1.

    1°) tu peux brancher le portable sur le video et n'avoir l'affichage que sur le video (il doit y avoir un bouton sur le portable pour jongler avec les affichages - FN+F8 chez dell, FN+F4 chez compaq)

    le probleme est que ta resolution en 1680x1050, je ne suis pas sur que le videoprojecteur apprecie

    tu peux donc baisser cette resolution dans le fichier afin de te garantir que cela passe dans ce cas.


    2°) tu veux faire du double ecran, là c'est une autre paire de manche
    il doit y avoir des tutoriaux sur internet pour la carte ATI.
    Grosso modo ce sera en xinerama.

    Google etant ton ami, les mots
    linux ati xinerama
    devrait pouvoir t'apporter quelques reponses.
  • # meme probleme avec mon Sony

    Posté par  (site Web personnel) . Évalué à 2.

    J'ai un Sony dont l'ecran a une resolution tres particuliere (un peu style 16/9), et la seule solution que j'ai trouve est de definir deux ServerLayout: un pour le fonctionnement usuel, l'autre pour le fonctionnement avec projecteur video. Le choix s'effectue avec les options passees a startx: --layout nom_du_layout. Je ne suis pour l'instant pas parvenu a modifier Kdm pour pouvoir choisir dans Kdm quel layout utiliser.

    Par contre, en layout "dual" (lcd+video), j'ai la meme resolution sur les deux (je ne suis pas parvenu a avoir une resolution differente entre le lcd et le video projecteur, d'ou un affichage LCD un peu tassé...).

    Mathias

Suivre le flux des commentaires

Note : les commentaires appartiennent à ceux qui les ont postés. Nous n’en sommes pas responsables.