User Tools

Site Tools


linux:manjaro:xorg_and_non-free_driver_uses_secondary_video_card_in_sli_setup

You have two NVidia cards installed and whenever you use the non-free driver (while booting a live cd or installed on a local disk) Manjaro appears to freeze during boot after the screen flashes but what has really happened is that Manjaro/NVidia drivers or somesuch have actually chosen to use the use the secondary video card (the one installed furthest from the CPU) for the X screen, which is a huge PITA because Windows (into which you are also dual booting) uses the other card (the one installed closest to the CPU) and this forces you to switch connect your monitor to the card each time you boot into the other OS

To fix this:

  • Connect your monitor to the wrong video card temporarily (after it appears to have frozen during boot).
  • Determine the BusID of the card you want with the following command:
nvidia-settings -q all
  • There will be a lot of output, half for one card half for the other.
  • To identify which card is which look toward the end of each half and you'll see which one has a monitor attached to it. You want the Bus ID of the monitor without anything attached.
  • cd /etc/X11/Xorg.conf.d
  • ls -l
  • Verify that there's a 90-mhwd.conf symlink there. If so, we're good to go.
  • sudo cp 90-mhwd.conf fixed.conf
  • Within fixed.conf, there should be a section looking something like this:
Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    BusID "PCI:8:0:0" # add this line with correct BusID
EndSection
  • Add the BusID line, using the BusID determined earlier.
  • sudo mhwd-gpu –setxorg fixed.conf
  • You'll note that this last command has now replaced the 90-mhwd.conf symlink with one to fixed.conf.
  • Just reboot and all should be happy.

Also, to prevent screen tearing, after this make sure you have ForceCompositionPipeline turned on in the “Screen” section.

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    ...
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
    ...
EndSection
linux/manjaro/xorg_and_non-free_driver_uses_secondary_video_card_in_sli_setup.txt · Last modified: 2018/04/03 09:23 by dave