Re: [HS] Portable deux écrans
Le 15.01.2007, zelos 414 <zelos414@gmail.com> a écrit :
Bonjour,
Peux-tu nous poster ton script et tes Xorg.conf pour voir ce qui clocherait?
Zelos
Je veux bien, mais ça risque d'être un peu long, non ?
Voici les scripts en question :
----------------------------------------------------------
1ecran.pl :
#!/usr/bin/perl -w
use strict;
use File::Copy;
my ($xorg, $xorg1, $xorg2);
$xorg = "/etc/X11/xorg.conf";
$xorg1 = "/etc/X11/xorg.conf.orig";
$xorg2 = "/etc/X11/xorg.conf.tv";
copy($xorg1,$xorg);
system "/etc/init.d/gdm stop";
exec "/etc/init.d/gdm start";
-----------------------------------------------------------
2ecrans.pl :
#!/usr/bin/perl -w
use strict;
use File::Copy;
my ($xorg, $xorg1, $xorg2);
$xorg = "/etc/X11/xorg.conf";
$xorg1 = "/etc/X11/xorg.conf.orig";
$xorg2 = "/etc/X11/xorg.conf.tv";
copy($xorg2,$xorg);
system "/etc/init.d/gdm stop";
exec "/etc/init.d/gdm start";
-----------------------------------------------------------
xorg.conf (deux écrans) :
(J'ai enlevé les sections qui ne présentent pas d'interet)
Section "Device"
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express
Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
Option "MonitorLayout" "TV,LFP"
Option "DevicePresence" "true"
Screen 0
EndSection
Section "Device"
Identifier "i810 TV-A"
Driver "i810"
Option "MonitorLayout" "TV,LFP"
Option "DevicePresence" "true"
Screen 1
BusId "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "LCD"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Television"
HorizSync 30.0-50.0
VertRefresh 60
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics
Controller"
Monitor "LCD"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800" "800x600"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800" "800x600"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800" "800x600"
EndSubSection
EndSection
Section "Screen"
Identifier "TV Screen"
Device "i810 TV-A"
Monitor "Television"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "768x576"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Default Screen"
Screen 1 "TV Screen" RightOf "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
-------------------------------------------------------------------
--
Nicolas Roudninski
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Reply to: