Talk:NVIDIA: Difference between revisions

imported>Cassandracomar
add reverse prime notes. will update the main page once I've tested hotplugging and fixed some issues with startup.
imported>Cassandracomar
update reverse prime notes to include instructions on how to configure render offloading
Line 104: Line 104:
     };
     };
   };
   };
  # now set up reverse PRIME by configuring the NVIDIA provider's outputs as a source for the
  # amdgpu. you'll need to get these providers from `xrandr --listproviders` AFTER switching to the
  # above config AND rebooting.
  services.xserver.displayManager.sessionCommands = ''
    ${pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource NVIDIA-G0 "Unknown AMD Radeon GPU @ pci:0000:05:00.0"
  '';
}
}
</nowiki>}}
</nowiki>}}
you'll need to restart your display manager session one more time after setting up the xrandr provider output source. if you still don't see the external displays attached to the NVIDIA card, it probably means the providers weren't both initialized when the command was run. you'll need to move setting up the output provider source to a later point, such as after window manager start up.
this set up does carry one negative and it's that there's unavoidable high CPU usage by the X server while monitors are connected in this way. see the bug report here: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-470/+bug/1944667. swapping to discrete mode (and disabling prime render offloading), with the NVIDIA card set up as the primary output does away with this high usage, at the cost of having the discrete card powered on even once the external displays are disconnected. hopefully this is resolved in future versions of the NVIDIA driver.
Return to "NVIDIA" page.