Le problème

Avant sur ma Debian Testing - nommée olivia pour les connaisseurs -, j'avais un câble sony qui me permet de connecter le portable à la télé pour avoir le doucle-écran. Seulement depuis peu, ça ne marche plus! J'ai donc bidouiller mon xorg.conf pour essayer de m'en sortir mais rien n'y faisait. Depuis que j'ai upgadé le kernel d'une 2.6.15 en une 2.6.18.

Résolution

Je n'y suis pas allé par 4 chemins

apt-get remove nvidia-glx

puis

apt-get install nvidia-glx-legacy-dev nvidia-kernel-legacy-2.6.18-3-k7 linux-headers-2.6.18-3-k7

Bien sûr, j'ai ensuite fait une copie de mon xorg.conf

cp /etc/X11/xorg.cong /home/david/

Il y avait une commande avec NVIDIA nvidia-xconfig que j'ai découvert justement par hasard qui m'a permis de préconfigurer un xorg.conf comme il faut

nvidia-xconfig -c /home/david/xorg.conf   --twinview --separate-x-screens --no-xinerama  -o /home/bourgogne/xorg.conf
cp /home/bourgogne/xorg.conf /etc/X11/

Remarques: utilisez l'option -A pour avoir un descriptif de toutes les options possibles

Il a fallut ensuite modifier légèrement le script obtenu

  • dans la section «ServerLayout», commenter la ligne concernant Screen 1
    Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Default Screen"
    #    Screen      1  "Default Screen (2nd)" RightOf "Default Screen"
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
        InputDevice    "Synaptics Touchpad"
    EndSection
    
  • dans la setion «Screen», pour Option TwinViewOrientation, remplacez RightOf par Clone
    Section "Screen"
        Identifier     "Default Screen"
        Device         "NVIDIA Corporation NV17 [GeForce4 420 Go]"
        Monitor        "Écran générique"
        DefaultDepth    24
        Option         "TwinView" "True"
        Option         "TwinViewOrientation" "Clone"
        Option         "UseEdidFreqs" "True"
        Option         "MetaModes" "1024x768, 1024x768"
        SubSection     "Display"
            Depth       1
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection     "Display"
            Depth       4
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection     "Display"
            Depth       8
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection     "Display"
            Depth       15
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection     "Display"
            Depth       16
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection     "Display"
            Depth       24
            Modes      "1024x768" "800x600" "640x480"
        EndSubSection
    EndSection
    

Pour mémo, je laisse mon xorg.conf consultable ici