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

Add edid override for AYANEO GEEK. #54

Closed
wants to merge 1 commit into from

Conversation

oliverchang
Copy link

@oliverchang oliverchang commented Jun 26, 2023

This fixes an edid parse failure by patching out a bad section in the edid, and seems to fix
ValveSoftware/gamescope#864.

This fixes an edid parse failure by patching out a bad section in the
edid, and seems to fix
ValveSoftware/gamescope#864.
@@ -14,6 +14,11 @@ elif [[ ":$PRODUCT_LIST_AIR_PLUS:" =~ ":$PRODUCT_NAME:" ]]; then
elif [[ ":$PRODUCT_LIST_2:" =~ ":$PRODUCT_NAME:" ]]; then
echo "AYA NEO 2 SERIES"
$DQ_PATH/scripts/ayaneo/2/2.sh

if [[ "GEEK" == "$PRODUCT_NAME" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This match should be surrounded with : to avoid partial matches.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm doing a direct match here using ==. Is that still necessary?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to do this then I'd prefer to have a PRODUCT_LIST_GEEK and remove geek from the 2 list. Add the audio quirk to the geek.sh the 2.sh has.

@oliverchang
Copy link
Author

oliverchang commented Jun 26, 2023

Note there are AYANEO GEEK devices out there with a 1200p panel (I believe the same as the AYANEO 2) instead of the default 800p panel which I have. I'm not sure how to distinguish those at this point though.

Perhaps we could check the original edid shasum and only patch in that case (my original one's sha256sum is 847db288c70f197534a581b5807540df09273150e7577d650d42db935385a44b)? Is that available in the context where this script runs?

@oliverchang
Copy link
Author

CC @ruineka too :)

exit 1
fi

if [[ $USE_FIRMWARE_OVERRIDES == 1 ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to find a way to differentiate the 800p and 1200p models here.

@ruineka
Copy link
Contributor

ruineka commented Jun 26, 2023

We might be having a proper fix underway soon. Don't merge this unless we have too.

@oliverchang
Copy link
Author

https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/164 is the code workaround that will fix this particular instance.

@ruineka
Copy link
Contributor

ruineka commented Jul 2, 2023

https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/164 is the code workaround that will fix this particular instance.

Indeed it is, any chance you can comment under there where someone is asking about permission to list the EDID under MIT? I added my EDID as well but they used yours as the sample to be used.

@pastaq
Copy link
Collaborator

pastaq commented Sep 13, 2023

has there been any movement on the patch for this, or a way to ID the 800P display units only?

@pastaq pastaq closed this Mar 29, 2024
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.

4 participants