GPU Switch

Hey! Does someone knows how I choose the GPU to run a game in Steam and outside steam?

Welcome to the forum.

You’ll probably need to be a bit more specific if you hope to find an answer to your question.

I suggest, for start, to post your hardware info:

inxi -Faz

Output for that code/Hardware info:

System:
  Kernel: 6.1.66-1-lts arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux-lts
    root=UUID=3d9babe1-4309-4266-9451-1e830f2fe0e3 rw nowatchdog
    nvme_load=YES nvidia-drm.modeset=1 loglevel=3
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: Tabby vt: 2 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 16-c0xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8901 v: 89.62 serial: <superuser required> UEFI: AMI
    v: F.20 date: 03/16/2023
Battery:
  ID-1: BAT0 charge: 56.5 Wh (100.0%) condition: 56.5/56.5 Wh (100.0%)
    volts: 17.0 min: 15.4 model: HP Primary type: Li-ion serial: <filter>
    status: full cycles: 194
CPU:
  Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000D
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1818 high: 2394 min/max: 1200/4462 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1914 2: 1200
    3: 1200 4: 1916 5: 1915 6: 1916 7: 1916 8: 2273 9: 2394 10: 2392 11: 1916
    12: 1200 13: 1200 14: 1916 15: 1915 16: 1916 bogomips: 102244
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+
    status: current (as of 2023-10; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 3 speed: 8 GT/s
    lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none
    empty: DP-1,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:25a0 class-ID: 0300
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Hewlett-Packard driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: DP-2
    bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 46.0 C
  Device-3: Chicony HP Wide Vision HD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:3 chip-ID: 04f2:b735
    class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2 compositors:
    1: Tabby 2: kwin_x11 driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,vesa alternate: fbdev,nouveau,nv dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: ChiMei InnoLux 0x1619 built: 2021
    res: 1920x1080 hz: 144 dpi: 137 gamma: 1.2 size: 355x199mm (13.98x7.83")
    diag: 407mm (16") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
    drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast surfaceless:
    drv: nvidia x11: drv: radeonsi inactive: gbm,wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (renoir LLVM
    16.0.6 DRM 3.49 6.1.66-1-lts) device-ID: 1002:1638 memory: 500 MiB
    unified: no
  API: Vulkan v: 1.3.269 layers: 1 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 3050 Ti Laptop GPU driver: nvidia v: 545.29.06
    device-ID: 10de:25a0 surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:2291 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
    driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x, snd_pci_acp5x,
    snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.1.66-1-lts status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 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 RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw89_8852ae v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8852
    class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:4 chip-ID: 0bda:2852
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 4 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
Drives:
  Local Storage: total: 983.17 GiB used: 173.24 GiB (17.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB1T0HBLR-000H1 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS0NEXF temp: 39.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Generic model: Flash Disk
    size: 29.3 GiB block-size: physical: 512 B logical: 512 B type: USB rev: 2.0
    spd: 480 Mb/s lanes: 1 mode: 2.0 tech: SSD serial: <filter> fw-rev: 8.07
    scheme: GPT
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 952.89 GiB size: 936.85 GiB (98.32%)
    used: 173.24 GiB (18.5%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 1000 MiB size: 998 MiB (99.80%)
    used: 288 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 62.6 C mobo: N/A gpu: amdgpu temp: 46.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
  Processes: 363 Uptime: 14h 7m wakeups: 3 Memory: total: 40 GiB note: est.
  available: 38.53 GiB used: 9.47 GiB (24.6%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 1186
  pm: pacman pkgs: 1144 libs: 294 tools: yay pm: flatpak pkgs: 42 Shell: Bash
  v: 5.2.21 running-in: tabby inxi: 3.3.31

In off-chance that you’re using integrated cpu, I find this command would help to guide your system to pick the right GPU to run the game:

DRI_PRIME=1 DXVK_FILTER_DEVICE_NAME="your GPU name" %command%

This may help you in some games in Steam. Hope this help you somewhat.

%command% is the game ID?

No, it’s just an ending command within game launch options.

So I put: DRI_PRIME=1 DXVK_FILTER_DEVICE_NAME=“GeForce RTX 3050 Ti Mobile” %command%
Right?

Correct.

But I like to reiterate, this only works within Steam.

If Kresimir and other forum member has additional suggestion you should try those too.

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