Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamescope doesn't work with my dGPU in NVIDIA PRIME setup #1643

Open
3 of 6 tasks
dCo3lh0 opened this issue Nov 29, 2024 · 9 comments
Open
3 of 6 tasks

Gamescope doesn't work with my dGPU in NVIDIA PRIME setup #1643

dCo3lh0 opened this issue Nov 29, 2024 · 9 comments

Comments

@dCo3lh0
Copy link

dCo3lh0 commented Nov 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

I'm trying to use my dGPU with NVIDIA Prime setup to play games in wayland on wine and gamescope and i can only use the integrated graphics setup from my Ryzen the iGPU, i cant use my dGPU to play at all. Its "On Demand" Mode, i don't know if it can help.

Steps To Reproduce

  1. Start Game
  2. Doesn't start at all
  3. See logs.

Hardware information

- Distro: Tuxedo OS 4 (Based on Ubuntu 24.04)
- CPU: AMD Ryzen 7 5700G with Radeon Graphics
- GPU: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A]
- Driver Version: Mesa 24.2.7-1~24.04-tux1 and NVIDIA 560.35.03

Software information

- Desktop environment: KDE 6.2.3
- Session type: wayland
- Gamescope version: 3.15.9-23-gd317492
- Gamescope launch command(s): gamescope --prefer-vk-device 10de:1f08 -w 1920 -h 1080 -W 1920 -H 1080 -r 60 -b --mangoapp -F fsr --fsr-sharpness 10 -- /home/dco3lh0/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /mnt/Arquivos/Games/Lutris/gog/star-wars-episode-i-racer/drive_c/GOG Games/STAR WARS Racer/SWEP1RCR.EXE

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

Lutris.log
Heroic.log

@tskaar
Copy link

tskaar commented Dec 5, 2024

Based on your logs:
Duplicate of #1590?

@Syntist
Copy link

Syntist commented Jan 6, 2025

GBM_BACKEND=nvidia-drm

try to use this env before gamescope

GBM_BACKEND=nvidia-drm gamescope -- vkcube
should work

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 8, 2025

GBM_BACKEND=nvidia-drm

try to use this env before gamescope

GBM_BACKEND=nvidia-drm gamescope -- vkcube should work

You're using vkcube as example, for vkcube and some other applications it works, mostly everything works, except for wine and proton.

@Syntist
Copy link

Syntist commented Jan 8, 2025

@dCo3lh0 weird, cause for me that was the issue, after that everything works for me except HDR On dx12 titles, where the display goes black and audio still there.

Did you try games on steam with, like this

GBM_BACKEND=nvidia-drm gamescope -w 2560 -h 1440 -f -r 165 --force-grab-cursor --adaptive-sync -- game-performance %command%
cause if your vkcube is working now, this should also work, also try to get the logs when you run the game using that command on steam.
(using Proton-cachyos here)

Edit: On Lutris? you might need to add this in your envirnment variable and also
GBM_BACKEND=nvidia-drm

try to put GPU to default
image

please try, let me know i had the same issue.

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 8, 2025

tried to put gpu on default, didnt work, used the GBM_BACKEND=nvidia-drm variable, together, didn't work either, but i've looked on the issue #1669 and did what KennyDevT suggested of using this fork using the latest branch and used separately the variable SDL_VIDEODRIVER=x11 with gamescope --backend sdl and none of this with GBM_BACKEND, and it didn't work either but at least the response message changed, the log changed so I'm anexing here the log.

lutris2.log

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 8, 2025

anyways, i think the issue may be solved in the release 3.16.2, so i will wait, will do other stuff, here beginning the year and i will come back later.

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 8, 2025

in fact, now that i've reinstalled the 3.16.1 again, and used GBM_BACKEND, this same result on the log happened, so i think the variable really worked, it changed the issue, but it worked, it wasn't the fork gamescope.

@Syntist
Copy link

Syntist commented Jan 8, 2025

Glad, also i found it some new finding, cause I was having issue with HDR with dx12 titles
you can look into it for more details there.
Issue: #1699

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 8, 2025

looking at the other posts i found it here, talking about the same issue on the last log i shared above, i think the issue will really be solved on 3.16.2. as showed in this issue here #1218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants