Steam still does not open without adding environment variables

Steam does not open without __GL_CONSTANT_FRAME_RATE_HINT=3 steam. - AMD GPU Fedora 42. What’s the reason for this? who’s working on fixing it if anybody? It’s a 3 month old problem from what I can see. I’m not trying to be funny, just looking for information.

1 Like

I run stream from rpmfusion on amdgpu without needing any workarounds.

What hardware do you have?
Post the output of inxi -Fzxx as preformatted text please.
Are you using steam from rpmfusion or something else?

1 Like

You can always edit the desktop file used to launch steam and insert that environment variable into the exec=..... line so it is always used when launching steam from the menu icon. The default exec line is Exec=/usr/bin/steam %U

The desktop file is probably /usr/share/applications/steam.desktop
Copy that file into ~/.local/share/applications and make the changes on the new file. It will override the default file under /usr/

I am using the rpmfusion version of steam yeah - thanks for the reply. I am not 100 percent sure what preformatted text means but I am assuming it means as is with no changes at all.

System:
  Kernel: 6.15.7-200.fc42.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
  Desktop: KDE Plasma v: 6.4.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 42 (KDE Plasma Desktop Edition)
Machine:
  Type: Desktop Mobo: ASRock model: B650M-HDV/M.2 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 3.01 date: 05/10/2024
CPU:
  Info: 6-core model: AMD Ryzen 5 7600X bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 384 KiB L2: 6 MiB L3: 32 MiB
  Speed (MHz): avg: 2980 min/max: 430/5496 boost: enabled cores: 1: 2980
    2: 2980 3: 2980 4: 2980 5: 2980 6: 2980 7: 2980 8: 2980 9: 2980 10: 2980
    11: 2980 12: 2980 bogomips: 112581
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 44 [Radeon RX 9060 XT]
    vendor: Sapphire driver: amdgpu v: kernel pcie: speed: 32 GT/s lanes: 16
    ports: active: DP-1,HDMI-A-1 empty: HDMI-A-2,Writeback-1 bus-ID: 03:00.0
    chip-ID: 1002:7590
  Device-2: Advanced Micro Devices [AMD/ATI] Raphael vendor: ASRock
    driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
    active: none empty: DP-2, DP-3, DP-4, HDMI-A-3, Writeback-2
    bus-ID: 11:00.0 chip-ID: 1002:164e temp: 40.0 C
  Display: wayland server: Xwayland v: 24.1.8 compositor: kwin_wayland
    driver: gpu: amdgpu d-rect: 4480x1440 display-ID: 0
  Monitor-1: DP-1 pos: right model: Samsung LC27G5xT res: 2560x1440 hz: 144
    dpi: 108 diag: 685mm (27")
  Monitor-2: HDMI-A-1 pos: primary,left model: HP V22e res: 1920x1080 hz: 60
    dpi: 102 diag: 547mm (21.5")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: radeonsi
    device: 2 drv: swrast gbm: drv: radeonsi surfaceless: drv: radeonsi wayland:
    drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.1.4 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi gfx1200 LLVM
    20.1.6 DRM 3.63 6.15.7-200.fc42.x86_64) device-ID: 1002:7590
    display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: discrete-gpu
    driver: mesa radv device-ID: 1002:7590 device: 1 type: integrated-gpu
    driver: mesa radv device-ID: 1002:164e device: 2 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: corectrl wl: wayland-info
    x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 48 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: speed: 32 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab40
  Device-2: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    [Rembrandt/Strix] driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 11:00.1 chip-ID: 1002:1640
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: ASRock driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 11:00.6 chip-ID: 1022:15e3
  Device-4: Logitech G435 Wireless Gaming Headset
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-9:4 chip-ID: 046d:0acb
  API: ALSA v: k6.15.7-200.fc42.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: e000 bus-ID: 09:00.0 chip-ID: 10ec:8125
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.73 TiB used: 68.01 GiB (2.4%)
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000T500SSD8 size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 38.9 C
  ID-2: /dev/nvme1n1 vendor: Crucial model: CT1000T500SSD8 size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-3: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter> temp: 26 C
Partition:
  ID-1: / size: 929.93 GiB used: 22.65 GiB (2.4%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 361.4 MiB (37.1%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 929.93 GiB used: 22.65 GiB (2.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 2.8 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 48.2 C mobo: 39.5 C
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 35.0 C mem: 34.0 C fan: 0 device: amdgpu
    temp: 42.0 C
Info:
  Memory: total: 32 GiB note: est. available: 30.46 GiB used: 5.62 GiB (18.4%)
  Processes: 482 Power: uptime: 2h 56m wakeups: 0 Init: systemd v: 257
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 7
    Compilers: N/A Shell: Bash v: 5.2.37 running-in: konsole inxi: 3.3.38

Thanks, I will play around with it. Everything is working fine - I am just a bit stressed it will break. I am fed up of distro hopping. I like Fedora. To get Steam to open I have to use the cli, changing the variables of the steam icon has not worked but I only tried with the one on the menu and not a desktop Icon.

I am editing your post above with the inxi output to make it ‘preformatted’.

Simply highlight the pasted text then click the </> button (or put ``` on the line before the text and again on the line following the text)

I have fully fixed the error on my own and so I will list it here as the solution when i work out what I’m doing. The __GL_CONSTANT_FRAME_RATE_HINT=3 steam was a red herring - my issue was that Steam would launch fine from the terminal but not from the launcher - I looked at the steam.desktop file and found that “PrefersNonDefaultGPU=true” was a thing. This did not sound good to me but i have no idea what I am talking about, I changed it to “PrefersNonDefaultGPU=false” and everything works as intended. I tested it by removing the __GL_CONSTANT_FRAME_RATE_HINT=3 steam variable and it is not needed, I changed it back to “Exec=steam %U” and tested - working. After several reboots it still works fine and Steam, it’s launcher and all of my games are using the Discreet GPU and not trying to do some weird stuff, That’s as far as my knowledge and current understanding can take me and so I hope it helps someone else down the line. Thanks for the replies and help.

5 Likes

Hello. I have a pretty similar setup with the same CPU. I have had pretty bad experience with Linux on laptops with hybrid graphics and the integrated AMD graphics is something I never use, so I disabled it in the BIOS. I would recommend the same if you aren’t actively using it for something.

1 Like

Hi mate, that’s a great idea. I even know how to do that and that it can be done but never considered it. That’s why i like forums - sometimes you can’t see for looking. I’ll write all of this down somewhere and go ahead and disable the integrated graphics. This could also be considered a solution to the problem for people who have no need for the integrated at all.