gattolfo
(Amedeo Braggio)
August 7, 2024, 5:28pm
1
Hi guys, i’m trying to run some game on fedora 40 I3 edition, all game start with no problem, BUT with iGPU so i added this flag to the launch option of steam
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia
But, for some game (like SOMA, that is native) work just fine, it launch with dedicated card, but for other game (proton game principally) they just dont start (no window show) and crash instantly.
Now, also some native game (like left for dead 2) dont work with this method, i will able with
PROTON_LOG=1
To generate some log and a common error is:
20378.612:00cc:00d0:err:xrandr:xrandr14_get_adapters Failed to get adapters
20378.632:00cc:00d0:err:xrandr:xrandr14_get_adapters Failed to get adapters
20379.214:00cc:00d0:err:xrandr:xrandr14_get_adapters Failed to get adapters
20379.231:00cc:00d0:err:xrandr:xrandr14_get_adapters Failed to get adapters
And another error:
20379.618:0020:0024:err:steam:run_process Failed to execute L"\"Z:\\home\\gattolfo\\.local\\share\\Steam\\steamapps\\common\\Life\"", ret 2.
(in this game from Life is feudal: your won)
my system:
OS: Fedora Linux 40 (Forty) x86_64
Host: HP Pavilion Gaming Laptop
Kernel: 6.9.12-200.fc40.x86_64
Uptime: 5 hours, 49 mins
Packages: 2098 (rpm), 22 (flatpak)
Shell: bash 5.2.26
Resolution: 1920x1080
WM: i3
Theme: Materia-dark [GTK2/3]
Icons: Papirus [GTK2/3]
Terminal: kitty
CPU: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8) @ 2.300GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
Memory: 4866MiB / 9808MiB
PROTON LOG
Amedeo Braggio:
i’m trying to run some game on fedora 40 I3 edition, all game start with no problem, BUT with iGPU so i added this flag to the launch option of steam
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia
I am not familiar with this command line and honestly it seems excessive : Not sure where you got it?
Typically when you want to use the discrete gpu to start an application/game you can use 2 methods
To launch the the Steam Game with discrete graphics
On Gnome Desktop we have switcherooctl
switcherooctl launch steam <steam id>
gattolfo
(Amedeo Braggio)
August 7, 2024, 5:55pm
3
I have tryed to use DRI_PRIME=1
instead of my paramethers, but it just start with iGPU
1 Like
Can you paste the result of inxi -Fzxx
for us here, I’d like to see some of the hardware info more in depth.
gattolfo
(Amedeo Braggio)
August 7, 2024, 6:04pm
5
System:
Kernel: 6.9.12-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
v: 2.41-37.fc40
Desktop: i3 v: 4.23 dm: LightDM Distro: Fedora Linux 40 (Forty)
Machine:
Type: Laptop System: HP product: HP Pavilion Gaming Laptop v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 86D5 v: 96.45 serial: <superuser required>
part-nu: 3A767EA#ABZ UEFI: AMI v: F.13 date: 03/03/2022
Battery:
ID-1: BAT0 charge: 42.5 Wh (100.0%) condition: 42.5/42.5 Wh (100.0%)
volts: 12.8 min: 11.6 model: Hewlett-Packard Primary serial: N/A
status: full
CPU:
Info: quad core model: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx
bits: 64 type: MT MCP arch: Zen/Zen+ note: check rev: 1 cache: L1: 384 KiB
L2: 2 MiB L3: 4 MiB
Speed (MHz): avg: 1394 high: 1400 min/max: 1400/2300 boost: enabled cores:
1: 1375 2: 1400 3: 1400 4: 1397 5: 1400 6: 1383 7: 1400 8: 1397
bogomips: 36729
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
vendor: Hewlett-Packard driver: nvidia v: 555.58.02 arch: Turing pcie:
speed: 2.5 GT/s lanes: 8 ports: active: none empty: HDMI-A-2
bus-ID: 01:00.0 chip-ID: 10de:1f91
Device-2: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
vendor: Hewlett-Packard driver: amdgpu v: kernel arch: GCN-5 pcie:
speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: HDMI-A-1
bus-ID: 05:00.0 chip-ID: 1002:15d8 temp: 57.0 C
Device-3: Luxvisions Innotech HP TrueVision HD Camera driver: uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 30c9:0013
Display: x11 server: X.Org v: 1.20.14 compositor: Picom v: 11 driver: X:
loaded: amdgpu,nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: eDP-1 mapped: eDP model: ChiMei InnoLux 0x1515 res: 1920x1080
dpi: 142 diag: 394mm (15.5")
API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.5 glx-v: 1.4 es-v: 3.2
direct-render: yes renderer: AMD Radeon Vega 10 Graphics (radeonsi raven
LLVM 18.1.6 DRM 3.57 6.9.12-200.fc40.x86_64) device-ID: 1002:15d8
API: Vulkan v: 1.3.283 surfaces: xcb,xlib device: 0 type: integrated-gpu
driver: N/A device-ID: 1002:15d8 device: 1 type: discrete-gpu driver: N/A
device-ID: 10de:1f91 device: 2 type: cpu driver: N/A device-ID: 10005:0000
Audio:
Device-1: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
driver: snd_pci_acp3x v: kernel pcie: speed: 8 GT/s lanes: 16
bus-ID: 05:00.5 chip-ID: 1022:15e2
Device-2: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
bus-ID: 05:00.6 chip-ID: 1022:15e3
API: ALSA v: k6.9.12-200.fc40.x86_64 status: kernel-api
Server-1: PipeWire v: 1.0.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 RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw_8822ce v: N/A pcie: speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:c822
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 10ec:8168
IF: eno1 state: down mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 0bda:b00c
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
lmp-v: 10
Drives:
Local Storage: total: 700.51 GiB used: 125.7 GiB (17.9%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HALU-000H1
size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 23.9 C
ID-2: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB
speed: 6.0 Gb/s serial: <filter> temp: 32 C
Partition:
ID-1: / size: 221.98 GiB used: 125.17 GiB (56.4%) fs: btrfs dev: /dev/sda3
ID-2: /boot size: 973.4 MiB used: 520.7 MiB (53.5%) fs: ext4
dev: /dev/sda2
ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
dev: /dev/sda1
ID-4: /home size: 221.98 GiB used: 125.17 GiB (56.4%) fs: btrfs
dev: /dev/sda3
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 1.55 GiB (19.4%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 56.2 C mobo: N/A gpu: amdgpu temp: 56.0 C
Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
Memory: total: 12 GiB note: est. available: 9.58 GiB used: 4.3 GiB (44.9%)
Processes: 825 Power: uptime: 6h 29m wakeups: 0 Init: systemd v: 255
target: graphical (5) default: graphical
Packages: pm: flatpak pkgs: 22 Compilers: gcc: 14.2.1 Shell: Bash
v: 5.2.26 running-in: kitty inxi: 3.3.34
The Nvidia card is listed as Device-1
can you try DRI_PRIME=0 %command%
How did you install the Nvidia driver? Though the RPMFusion repo or from the Nvidia site.
gattolfo
(Amedeo Braggio)
August 7, 2024, 6:46pm
9
from the RPMFusion repo
EDIT:
following this: Howto/NVIDIA - RPM Fusion