protonscr

Add mechanism to apply command line options globally (useful for PRIME Render Offload)

steamclosed
ValveSoftware/steam-for-linux#10439 · opened 2024-01-27 by MateusRodCosta · updated 2024-01-27 · 2 comments · github
MMateusRodCosta 2024-01-27 github

Your system information

  • Steam client version (build number or date): 1706306386
  • Distribution (e.g. Ubuntu): Fedora Silverblue 39 - Flatpak
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes
  • Steam Logs: [generate by running this command in a terminal tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs] N/A
  • GPU: Intel UHD 630 + Nvidia GTX 1660 TI Mobile (Nvidia Optimus)

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Depending on the scenario, it might be useful to set certain environment variables to all games at the same time, one good example is PRIME and Prime Render offload, where the user might prefer to run Steam in the iGPU but the games always in the dGPU.

If the user launches Steam in the dGPU, the games also render in the dGPU. But if Steam is launched in the iGPU, the user has to add DRI_PRIME=1 %command% or __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only %command% to every single game manually.

It should be preferable to run Steam in the iGPU, as that allows the dGPU to be in low power mode or even completely turned off while the user is not currently gaming, but adding the flags can be slightly annoying, having a place where you can set global environment variables and paraters could be useful, then it would be a matter of the per-game setting using it and having an option to ignore the global values.

Steps for reproducing this issue:

  1. N/A
MMateusRodCosta 2024-01-27 github

Partially related to #9940

Kkisak-valve maintainer 2024-01-27 github

Hello @MateusRodCosta, this issue is already being tracked at #3453. Closing as a duplicate.