{{tag>X11}} = Xorg.conf généré par nvidia-xconfig Voir : * https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml * https://en.opensuse.org/SDB:NVIDIA_troubleshooting * https://doc.ubuntu-fr.org/xorg * https://debian-facile.org/doc:environnements:x11:xserver-xorg:conf * https://http.download.nvidia.com/XFree86/Linux-x86/313.18/README/xconfigoptions.html * https://download.nvidia.com/XFree86/Linux-x86/1.0-8756/README/appendix-d.html * https://forum.ubuntu-fr.org/viewtopic.php?id=236387 nvidia-xconfig nvidia-xconfig -a # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 440.64 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "kbd" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" Option "DPMS" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection Section "Screen" Identifier "Screen0" Device "nvidia" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection == Faire fonctionner la carte intégrée pour l'écran Voir [[https://linuxfr.org/forums/linux-general/posts/utiliser-la-carte-graphique-nvidia-et-la-carte-intel-integree|LinuxFr - Utiliser la carte graphique NVIDIA et la carte INTEL intégrée]] PS : Xorg est obligé de créer un "Screen" par carte graphique, et qu'un Screen n'est pas un écran physique Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen1" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "kbd" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" Option "DPMS" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" VendorName "NVIDIA Corporation" #Option "ConstrainCursor" "off" Option "UseDisplayDevice" "none" Option "ProbeAllGpus" "false" Option "AllowEmptyInitialConfiguration" #Option "IgnoreDisplayDevices" "CRT" EndSection Section "Device" Identifier "Intel" BusID "PCI:0:2:0" Driver "modesetting" VendorName "Intel Corporation" #BoardName "Display controller" #ModelName "Device 3e98" #Option "AccelMethod" "SNA" EndSection Section "Screen" Identifier "Screen0" Device "Intel" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "nvidia" EndSection $ lspci | grep 'Display controller: Intel Corporation Device' | awk -F'[:. ]' '{print $1, $2, $3}' | sed -r 's|0([0-9]) |\1:|g' 0:2:0 https://github.com/Bumblebee-Project/Bumblebee/blob/master/conf/xorg.conf.nvidia Section "ServerLayout" Identifier "Layout0" Option "AutoAddDevices" "false" Option "AutoAddGPU" "false" EndSection Section "Device" Identifier "DiscreteNvidia" Driver "nvidia" VendorName "NVIDIA Corporation" # If the X server does not automatically detect your VGA device, # you can manually set it here. # To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data # as you see in the commented example. # This Setting may be needed in some platforms with more than one # nvidia card, which may confuse the proprietary driver (e.g., # trying to take ownership of the wrong device). Also needed on Ubuntu 13.04. # BusID "PCI:01:00:0" # Setting ProbeAllGpus to false prevents the new proprietary driver # instance spawned to try to control the integrated graphics card, # which is already being managed outside bumblebee. # This option doesn't hurt and it is required on platforms running # more than one nvidia graphics card with the proprietary driver. # (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT). # If this option is not set, the new Xorg may blacken the screen and # render it unusable (unless you have some way to run killall Xorg). Option "ProbeAllGpus" "false" Option "NoLogo" "true" Option "UseEDID" "false" Option "UseDisplayDevice" "none" EndSection https://gist.githubusercontent.com/mokkabonna/7ebf99590e42fcee9dfe/raw/6963a2e2ff6255a2ee251435953eba27cc9f5275/gistfile1.txt Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" #Inactive "intel" # Not supported ? EndSection Section "Device" Identifier "intel" Driver "intel" BusID "PCI:0@0:2:0" Option "AccelMethod" "SNA" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:2@0:0:0" Option "ConstrainCursor" "off" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" EndSection https://gist.githubusercontent.com/dvejmz/879eebb607b9069b536b/raw/df2ec920573326cd05f95452d5af87a4d055e6e4/sample-xorg.conf Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" #Inactive "intel" # Not supported ? EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "Yes" EndSection Section "Device" Identifier "intel" Driver "modesetting" Option "AccelMethod" "none" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection