Getting steam games to use hybrid nvidia gpu (nvidia-450xx)

So I have nvidia driver 450.66 installed. I have been trying to launch Doom, Deus Ex and more games, which didn’t work because I had launch options as prime-run %command% (for nvidia 440xx driver). So deleting that command launches games, but they run on cpu (no load detected using nvtop).

I have installed the 450 prime driver with the command sudo mhwd -i pci video-hybrid-intel-nvidia-450xx-prime
I have also done sudo mhwd -i pci video-modesetting.

Am I missing anything?

The threads I have seen so far talk about not being able to launch steam itself.
I have seen people using AMD graphics use special launch code, is that something I should look better into?

inxi -Fxxxza -no-host
~ >>> inxi -Fxxxza -no-host                                                 [1]
System:
  Host: HP Kernel: 5.8.5-2-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=9a466d45-9706-4f31-8e9b-737ed449768e rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 3.36.5 tk: GTK 3.24.22 wm: gnome-shell dm: GDM 3.34.1 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-cx0xxx 
  v: Type1ProductConfigId serial: <filter> Chassis: type: 10 
  serial: <filter> 
  Mobo: HP model: 8478 v: 70.57 serial: <filter> UEFI: Insyde v: F.22 
  date: 04/21/2020 
Battery:
  ID-1: BAT1 charge: 36.6 Wh condition: 36.6/52.8 Wh (69%) volts: 12.8/11.6 
  model: Hewlett-Packard PABAS0241231 type: Li-ion serial: <filter> 
  status: Full 
CPU:
  Topology: Quad Core model: Intel Core i5-8300H bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: D6 L2 cache: 8192 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 36812 
  Speed: 900 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 900 2: 900 
  3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Hewlett-Packard driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard 
  driver: nvidia v: 450.66 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1c8d 
  Device-3: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD 
  Integrated Webcam 
  type: USB driver: uvcvideo bus ID: 1-5:5 chip ID: 05c8:03bc 
  Display: x11 server: X.org 1.20.9 compositor: gnome-shell 
  driver: modesetting,nvidia resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.1.6 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:a348 
  Device-2: NVIDIA GP107GL High Definition Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
  Sound Server: ALSA v: k5.8.5-2-MANJARO 
Network:
  Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
  vendor: Hewlett-Packard driver: rtw_8822be v: N/A modules: rtw88_8822be 
  port: 4000 bus ID: 02:00.0 chip ID: 10ec:b822 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus ID: 05:00.0 
  chip ID: 10ec:8168 
  IF: eno1 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.60 TiB used: 435.79 GiB (26.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-000H1 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B 
  speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: CXB73H1Q scheme: GPT 
  ID-2: /dev/sda type: USB vendor: Western Digital 
  model: WD My Passport 0740 size: 465.73 GiB block size: physical: 512 B 
  logical: 512 B serial: <filter> rev: 1007 scheme: MBR 
  ID-3: /dev/sdb type: USB vendor: Toshiba model: External USB 3.0 
  size: 931.51 GiB block size: physical: 512 B logical: 512 B 
  serial: <filter> rev: 5438 scheme: MBR 
Partition:
  ID-1: / raw size: 238.17 GiB size: 233.43 GiB (98.01%) 
  used: 70.31 GiB (30.1%) fs: ext4 dev: /dev/nvme0n1p2 
Swap:
  Alert: No Swap data was found. 
Unmounted:
  Message: No unmounted partitions found. 
Sensors:
  System Temperatures: cpu: 53.0 C mobo: 29.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 347 Uptime: 1h 28m Memory: 15.53 GiB used: 4.24 GiB (27.3%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 alt: 8/9 Packages: 1327 
  pacman: 1310 lib: 362 flatpak: 8 snap: 9 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.1.05 

The prime-run command works with 450 drivers. The easiest option is to launch steam games with lutris, you can select prime offload, gamemode, resolution and much more in the launch options

Me too same problem, I have GPU GTX 1650 and ryzen 5 and manjaro auto installed auto installed video hybrid-amd-nvidia-450xx-prime but video encoding does not work in “Shotcut” program it fails in moment

Have you tried lutris to launch steam? See if toggling prime render off load works

Ok, I am going through the configure settings in lutris for steam. First I notice is Optimus launcher (Nvidia Optimus laptops) which is off and I have no other option.

Prime Render Offload is now enabled

Feral gamemode is enabled

Not seeing any changes but I haven’t rebooted yet. brb

The good thing about lutris is if you click the terminal button it will show you the log off what happened and if it fails why

Well nvtop is not showing any difference, but the gameplay is totally different. Even just the loading took almost 3x shorter time this time.
Thanks for the info.

EDIT:
Sorry, I spoke too soon.

Gameplay is much worse than on 440xx prime-run experience (same settings).

Don’t get me wrong, this is a huge step from using just the CPU (as last time), but input-lag and fps is way off.

1 Like

I am linux noob which driver is best for amd-nvidia hybrid graphics driver??
hybrid-amd-nvidia-450xxprime one or nvidia-5450xx one?

I’m not an expert on amd/nvidia combo but I’m guessing it would be the same as this post

I am in UEFI how i will disable integrated GPU one ?

Any other settings I could check?
It seems like I am not implementing the gpu at all. Lot of smearing, input-lag and drop in fps (game renders like it’s very drunk) and nvtop shows no usage for the gpu.
Maybe I forgot some driver installation??
Settings for lutris
Resulution: keep current
render offload enabled
game mode enabled
use discrete graphics enabled
run terniman enabled (got no errors)