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

[Question] How do you open the gamescope-reshade wayland interface? #1741

Open
3 of 6 tasks
doodleintime opened this issue Feb 7, 2025 · 6 comments
Open
3 of 6 tasks

Comments

@doodleintime
Copy link

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 was able to build gamescope and get reshade shaders to load, but I'm stumped on how to open the gamescope-reshade wayland interface in order to edit the shader options.

Steps To Reproduce

No response

Hardware information

- Distro: Linux Mint 22.1 Cinnamon (Xia)
- CPU: AMD Ryzen 7 7700X
- GPU: NVIDIA GeForce RTX 3070
- Driver Version: NVIDIA 565.77

Software information

- Desktop environment: GNOME
- Session type: X11 (willing to switch to wayland if need be)
- Gamescope version: gamescope version 3.14.24-24-g5e8fddf
- Gamescope launch command(s): gamescope  --reshade-effect `effect-file-name.fx` `game`

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

No response

@Eckoa
Copy link

Eckoa commented Feb 8, 2025

Im guessing similar to Vkbasalt you might have to edit the shader files directly

EDIT: nevermind im wrong did you trying running with the gamescope-reshade option? you can also do like i suggested previously. I cant find anything on the gamescope-reshade interface and people seem to be just editing the files.

EDIT2: It might work similar to gamescopectl , try running gamescope-reshade from a terminal

@doodleintime
Copy link
Author

When I try to run gamescope-reshade from a terminal, it just says that the command is not found.

@matte-schwartz
Copy link

I know nothing about how it works, but I think the only client written to actually access the Gamescope-reshade interface is https://github.com/wheaney/XRLinuxDriver/ which was created by the same person who PR'd the interface itself into Gamescope.

@doodleintime
Copy link
Author

I went to that link and it said to get Breezy if you're looking for a 3dof virtual display, which might have something to do with the wayland interface. Breezy has mentions of gamescope in the repository, so I tried installing it but I could not seem to get it to work correctly, and it seems that you'd need some supported XR glasses to even use it.

While you can edit some shader files directly to change their settings, shaders like the CRT Royale Reshade port can't be edited like that, as far as I know. So sorry for the mention, but since we can't figure this out, @wheaney could you tell us how you're supposed to open the gamescope-reshade wayland interface?

@wheaney
Copy link

wheaney commented Feb 11, 2025

Yeah, you can see an example of how I do it in my XR driver package.

  1. This file provides the wl_interface struct definition.
  2. Here is where the registry listener is set up
  3. Here is where I wait for the reshade interface so I can bind it
  4. Here is where I set the effect
  5. Here is where I set a uniform variable

@wheaney
Copy link

wheaney commented Feb 11, 2025

Also, regarding this:

you'd need some supported XR glasses to even use it

You're correct, Breezy doesn't provide a way to interface with reshade. It utilizes the XR driver to apply the effect and IMU positional data from an XR headset.

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

4 participants