ValveSoftware / ValveSoftware/Proton

Proton games don't run after removing and readding the GPU via /sys/pci

Open
#6,599 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
32.8k
Forks
1.6k
PR merge metrics
PR metrics pending

Description

System Information

  • GPU: NVIDIA GTX 1080 + Intel HD Graphics 530
  • Driver/LLVM version: nvidia 525.89.02 + Mesa 22.3.5
  • Kernel version: 6.1.12.zen1-1 (Arch Linux)
  • Proton version: experimental-7.0-20230227 (and any other tested)

Symptoms

/sys interface and "replugging" it with PCI rescan until the next reboot (they work correctly otherwise).

Use case: I want to be able to use the dedicated NVIDIA GPU in a VM using VFIO and without rebooting. To this end, my base rendering in Xorg is done with integrated GPU, and for Steam and Steam games I'm using NVIDIA card through PRIME; so I only need to turn these apps off in order to be able to use the dGPU in a VM. To return the NVIDIA card back to the OS to use it with PRIME again, I am removing it through the /sys interface and issuing a rescan command. After doing so, rendering with PRIME works again for native apps (tested with Valheim), but Proton apps don't run correctly. Logs from an example run (tested with Noita) attached - steam-881100.log .

Reproduction

  1. Set up the OS so that it uses the Intel card for base rendering and use NVIDIA card through PRIME for Steam and Steam games.
  2. Remove the NVIDIA GPU and then rescan PCI:
# echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
# echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove
# echo 1 > /sys/bus/pci/rescan
  1. Try to run any game using Proton, which should then fail to start.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the PCI removal and rescan sequence with the listed Intel/NVIDIA, kernel, and Proton versions, then inspect the attached steam-881100.log from the Noita run. Compare Proton behavior with the native Valheim result; done means Proton games start correctly after the GPU is removed and rescanned.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.