Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 13/04/2008, à 21:20

O.

[Résolu] Double affichage avec nvidia sous Hardy Heron

J'avais [jusqu'à la dernière mise à jour, hier matin] mon affichage avec deux écrans avec une résolution de 1280x1024.

Je reboote, et je me retrouve à 640x480 !

La haine.

Après tout mon dimanche à fouiller les forums francophones et anglophones, j'en arrive à voir la solution.

important : il faut absolument avoir dans la section "monitor" de xorg.conf les deux paramètres HorizSync et VertRefresh, et avec les paramètres *corrects*.

Après quelques heures, j'arrivais à avoir mes deux écrans ... à 1024x768 !!! Mais pas plus !

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "Module"
	Load		"glx"
	Load		"v4l"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"de"
EndSection

Section "InputDevice"
	Identifier "Configured Mouse"
	Driver "vmmouse"
	Option "CorePointer"
	Option "Device" "/dev/input/mice"
	Option "Protocol" "ExplorerPS/2"
	Option "Buttons" "7"
	Option "ZAxisMapping" "4 5"
	EndSection


Section "Device"
	Identifier	"Failsafe Device"
	Boardname	"NVIDIA GeForce4 (generic)"
	Busid		"PCI:2:0:0"
	Driver		"nvidia"
	Screen	0
	Vendorname	"NVIDIA"
EndSection

Section "Monitor"
	Identifier	"Failsafe Monitor"
	Vendorname	"LG Electonics"
	Modelname	"LG1952S"
	Option		"DPMS"	
	HorizSync	30-83
	VertRefresh	56-75
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Failsafe Device"
	Monitor		"Failsafe Monitor"
	Defaultdepth	24
	SubSection "Display"
		Depth	24
		Modes		"1280x1024@60"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  	screen 0 "Default Screen" 0 0
  	screen 1 "screen1" leftof "Default Screen"
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
EndSection
Section "device" #    
	Identifier	"device1"
	Boardname	"NVIDIA GeForce4 (generic)"
	Busid		"PCI:2:0:0"
	Driver		"nvidia"
	Screen	1
	Vendorname	"NVIDIA"
EndSection
Section "screen" #    
	Identifier	"screen1"
	Device		"device1"
	Defaultdepth	24
	Monitor		"monitor1"
	SubSection "Display"
		Depth	24
		Modes		"1280x1024@60"	
	EndSubSection
EndSection
Section "monitor" #    
	Identifier	"monitor1"
	Vendorname	"LG Electronics"
	Modelname	"L1710S"
	HorizSync	30-83
	VertRefresh	56-75  
 	Gamma	1.0
EndSection
Section "ServerFlags"
	Option		"Xinerama"	"true"
EndSection

Et, en continuant de chercher, j'ai fini par avoir dans mon menu System->Administration un chouette programme qui s'appelle nvidia-settings. Vraiment chouette.

Sauf que : d'abord, je ne peux pas «tester».

The X Server does not support the XRandR extension.  Runtime resolution changes to the display size are not available.

Mais il y la possibilité de modifier xorg.conf. Je tente : on n'a pas le droit !

Donc je prends un terminal, et je tape :

sudo nvidia-settings

Là, je configure mes deux écrans à 1280x1024, je sauve xorg.conf (on ne peut toujours pas tester), et je relance mon X.

Là, résultats mitigés : le programme a décidé, sans rien me demander mon avis, de désactiver l'option «Xinerama». Donc, même si j'étais bien (hourra !!) en 1280x1024, j'étais... enfermé dans un de mes écrans. La souris ne passait plus d'un écran à l'autre.

Un petit coup de Alt+F2 :

sudo gedit /etc/X11/xorg.conf

J'ai réactivé l'option Xinerama : J'ai gagné. J'ai mes deux écrans avec la bonne résolution, et ma souris peut même atteindre le menu ... magique !

La version finale de mon xorg.conf (j'en ai fait au moins 20 versions aujourd'hui)

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@vernadsky)  Tue Mar  4 20:24:34 UTC 2008

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 1280 0
    Screen      1  "Screen1" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Module"
    Load           "glx"
    Load           "v4l"
EndSection

Section "ServerFlags"

Option "Xinerama" "true"
    Option         "Xinerama" "1"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "de"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "vmmouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "Buttons" "7"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Failsafe Monitor"
    VendorName     "LG Electonics"
    ModelName      "LG1952S"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"

 #    
    Identifier     "monitor1"
    VendorName     "Unknown"
    ModelName      "CRT-1"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Gamma           1
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Failsafe Device"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "NVIDIA GeForce4 (generic)"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"

 #    
    Identifier     "device1"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "NVIDIA GeForce4 (generic)"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce4 MX Integrated GPU"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce4 MX Integrated GPU"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Failsafe Device"
    Monitor        "Failsafe Monitor"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024@60"
    EndSubSection
EndSection

Section "Screen"

 #    
    Identifier     "screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT-1: 1280x1024 +0+0; CRT-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
	Option         "TwinView" "0"
	Option         "TwinViewXineramaInfoOrder" "CRT-0"
	Option         "metamodes" "CRT-0: 1280x1024 +0+0; CRT-0: nvidia-auto-select +0+0"
EndSection

Autre petite merde, le nvidia-settings avait gardé la valeur 1024. Au lieu de : 

Screen      0  "Screen0" 1280 0

j'ai trouvé

Screen      0  "Screen0" 1024 0

Résultat. mon premier écran se continuait sur le seconde. Amusant, si on a de l'humour.

Voilà. J'espère que ça pourra aider quelqu'un ...


Erreur : pas de clavier détecté. Appuyer sur F1 pour continuer

Hors ligne

#2 Le 14/04/2008, à 01:25

Narann

Re : [Résolu] Double affichage avec nvidia sous Hardy Heron

Bon et bien merci pour la méthode, ça peut servir à pas mal de monde...:)
Franchement... xorg.conf c'est hyper galère a configurer a chaque fois...
Linux + Matos (continu de) = prise de tête... Malheureusement...:(

Hors ligne