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

Draft: CRT SwitchRes Linux EDID PoC #17197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syboxez
Copy link

@syboxez syboxez commented Nov 24, 2024

Guidelines

  1. Rebase before opening a pull request
  2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
  3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises

Description

Extremely hacky PoC for using CRT CwitchRes to generate a single-use EDID and apply that EDID as root to a specific display. Very inelegant, some hardcoding going on, overwrites KMS and X11 modesetting with EDID overwrites (to test the PoC in multiple environments, such as KMS, Wayland, and X11)

Related Issues

Currently, RetroArch does not support CRT SwitchRes in Wayland environments and may or may not have support for DRM/KMS environments.

Currently RetroArch will set standard video modes in KMS but will not generate new modes, and switchres has WIP support for DRM/KMS modeswitching that relies on a kernel patch.

This commit does not require a kernel patch and will use an external switchres binary to generate a single-use EDID binary containing a single modeline (switchres does not support generating EDID binaries when running as a library from what I've seen).

Related Pull Requests

Potentially a future PR for switchres to add support for generating an edid in the API

Reviewers

@hunterk @antonioginer @alphanu1

I am expecting to have to completely delete this commit and redo it with a much cleaner strategy. Would appreciate comments.

… a single-use EDID and apply that EDID to a specific display.
@LibretroAdmin
Copy link
Contributor

Sounds great, @alphanu1 @hunterk @antonioginer let us know what you think.

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

Successfully merging this pull request may close these issues.

2 participants