Nvidia Prime and Steam Launch Options

Hello everyone,
I have been using Garuda for a few weeks now and despite some hickups at the beginning, I am loving it.

At the beginning it was a bit of a headache to get Nvidia drivers and Prime running, but now everything is running smoothly so far. I am just seeking a little explanation as to what I am doing to better understand and avoid mistakes in the future, since any Information I found on it was rather scarce…

To cut to the chase: I am currently playing 2 games, Helldivers 2 and Tekken 8. Both require launch options, to work properly. At first I thought I had to add

prime-run %command%

as launch option to every game in order to play it using my dedicated graphics card. For Tekken 8 I need to set a

HOST_LC_ALL=de_DE.UTF-8 %command%

as launch option, for it to set my player region correctly. It took a lot of research, trial and error to find out that I don’t need “prime-run” for Tekken 8.

So I am wondering why that is or if I am doing something wrong…
Is it game specific if it determines which graphics card to use itself or by OS?
Am I running my game on integrated graphics and am not realising it?

I am kinda confused as to how steam launch options work in the first place, and how to chain them together or what individual parts even do, since they don’t resemble program parameters I’m familiar with, but maybe that is just my lack of knowledge. :sweat_smile:
In my research I found out that apparently %command% is what actually launches the game and prime somehow sets up an environment before that or something…

For now everything seems works fine. Helldivers runs easy on 200FPS and Tekken finally set me to EU. I am just seeking some explanation…

Inxi below, just in case:

System:
  Kernel: 6.8.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 clocksource: tsc
    avail: hpet,acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=99631e25-ffb7-4559-b239-5d419bd256fe rw rootflags=subvol=@ quiet loglevel=3 ibt=off
  Desktop: KDE Plasma v: 6.0.3 tk: Qt v: N/A info: frameworks v: 6.0.0 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B650 GAMING PLUS WIFI (MS-7E26) v: 1.0
    serial: <superuser required> uuid: <superuser required> UEFI: American Megatrends LLC. v: 1.80
    date: 12/15/2023
CPU:
  Info: model: AMD Ryzen 5 7600X bits: 64 type: MT MCP arch: Zen 4 gen: 5 level: v4 note: check
    built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x61 (97) stepping: 2
    microcode: 0xA601206
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 6 MiB desc: 6x1024 KiB L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3824 high: 5450 min/max: 400/5453 scaling: driver: amd-pstate-epp
    governor: powersave cores: 1: 3717 2: 3685 3: 4350 4: 3306 5: 400 6: 4361 7: 4345 8: 4121 9: 4634
    10: 3619 11: 5450 12: 3903 bogomips: 112800
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA AD104 [GeForce RTX 4070 SUPER] vendor: ASUSTeK driver: nvidia v: 550.67
    alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current (as of 2024-02) arch: Lovelace
    code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:2783 class-ID: 0300
  Device-2: AMD Raphael vendor: Micro-Star MSI driver: amdgpu v: kernel arch: RDNA-2
    code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: none empty: DP-1, DP-2, DP-3, HDMI-A-1, Writeback-1 bus-ID: 10:00.0 chip-ID: 1002:164e
    class-ID: 0300 temp: 42.0 C
  Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 23.2.6 compositor: kwin_x11 driver: X:
    loaded: modesetting,nouveau,nvidia unloaded: amdgpu alternate: fbdev,nv,vesa dri: radeonsi
    gpu: nvidia,amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 91 s-size: 1070x301mm (42.13x11.85")
    s-diag: 1112mm (43.76")
  Monitor-1: DP-0 pos: primary,left res: 1920x1080 dpi: 90 size: 544x303mm (21.42x11.93")
    diag: 623mm (24.52") modes: N/A
  Monitor-2: HDMI-0 pos: right res: 1920x1080 hz: 60 dpi: 102 size: 478x269mm (18.82x10.59")
    diag: 548mm (21.59") modes: N/A
  Monitor-3: None-3-1 size-res: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0 drv: nvidia device: 2
    drv: radeonsi device: 3 drv: swrast gbm: drv: kms_swrast surfaceless: drv: nvidia x11:
    drv: nvidia inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.67 glx-v: 1.4 direct-render: yes
    renderer: NVIDIA GeForce RTX 4070 SUPER/PCIe/SSE2 memory: 11.71 GiB
  API: Vulkan v: 1.3.279 layers: 14 device: 0 type: discrete-gpu name: NVIDIA GeForce RTX 4070
    SUPER driver: nvidia v: 550.67 device-ID: 10de:2783 surfaces: xcb,xlib device: 1
    type: integrated-gpu name: AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO) driver: mesa radv
    v: 24.0.5-arch1.1 device-ID: 1002:164e surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
    (LLVM 17.0.6 256 bits) driver: mesa llvmpipe v: 24.0.5-arch1.1 (LLVM 17.0.6)
    device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc class-ID: 0403
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 10:00.1
    chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 10:00.6 chip-ID: 1022:15e3 class-ID: 0403
 
 Device-4: Medeli USB LCS AUDIO driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5.4:8 chip-ID: 0a67:ffff class-ID: 0300
    serial: <filter>
  API: ALSA v: k6.8.5-zen1-1-zen status: kernel-api with: aoss type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: e000 bus-ID: 0b:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: enp11s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter driver: mt7921e
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 0c:00.0 chip-ID: 14c3:0616 class-ID: 0280
  IF: wlp12s0 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-7:5 chip-ID: 0e8d:0616 class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2 lmp-v: 11 status:
    discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 1.82 TiB used: 313.48 GiB (16.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: MP600 PRO XT size: 1.82 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: EIFM80.0 temp: 32.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 1.82 TiB size: 1.82 TiB (100.00%) used: 313.48 GiB (16.8%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 584 KiB (0.2%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 1.82 TiB size: 1.82 TiB (100.00%) used: 313.48 GiB (16.8%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 1.82 TiB size: 1.82 TiB (100.00%) used: 313.48 GiB (16.8%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 1.82 TiB size: 1.82 TiB (100.00%) used: 313.48 GiB (16.8%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 30.54 GiB used: 0 KiB (0.0%) priority: 100 comp: zstd
    avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 45.5 C mobo: 34.0 C
  Fan Speeds (rpm): N/A
  GPU: device: nvidia screen: :0.0 temp: 40 C fan: 0% device: amdgpu temp: 42.0 C
Info:
  Memory: total: 32 GiB note: est. available: 30.54 GiB used: 3.6 GiB (11.8%)
  Processes: 365 Power: uptime: 4m states: freeze,mem,disk suspend: deep avail: s2idle wakeups: 0
    hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 12.18 GiB
    services: org_kde_powerdevil, power-profiles-daemon, upowerd Init: systemd v: 255
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1982 libs: 583 tools: octopi,paru Compilers: clang: 17.0.6
    gcc: 13.2.1 Client: shell wrapper v: 5.2.26-release inxi: 3.3.33
Garuda (2.6.25-1):
  System install date:     2024-03-25
  Last full system update: 2024-04-12
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Btw, sorry if this is the wrong place for this. Felt more like a Linux Question, than a Steam Question to me…

I guess this is the wrong place then, okay…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.