Skip to content

fix(ayaneo): workaround for buggy wifi/sleep interaction on first-gen Ayaneo Air #2974

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

Open
wants to merge 4 commits into
base: testing
Choose a base branch
from

Conversation

DCKcode
Copy link

@DCKcode DCKcode commented Jul 26, 2025

First-gen Ayaneo Air devices appear to have a bug where their BIOS doesn't interact well with the Wi-Fi chip around sleep and wake. Sleeping and waking the device will cause error messages in dmesg and unreliable and buggy wakeup, and after wakeup the wifi interface will appear to have dissappeared.

The workaround for this issue is to remove the Wi-Fi driver's kernel module just before going to sleep and readding it when waking.This PR adds this workaround and enables it automatically on these affected devices. A version of this workaround exists in ChimeraOS as well.

I tested this on a Ayaneo Air Pro (5560U model) and this enables sleep to work reliably!

Fixes #2134

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Jul 26, 2025
@DCKcode
Copy link
Author

DCKcode commented Jul 26, 2025

The new kmod-sleep-workaround@ service introduced here could be used for other buggy driver<>sleep interactions in the future. For example, it could be used #2927 and potentially to fix #1984, but those would require testing with those particular devices (I don't have access to those).

@DCKcode
Copy link
Author

DCKcode commented Jul 29, 2025

This PR now also potentially fixes #2081 pending someone that confirm this on a first gen OneXPlayer device.

@xXJSONDeruloXx xXJSONDeruloXx changed the base branch from main to testing August 2, 2025 12:37
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 2, 2025
@DCKcode
Copy link
Author

DCKcode commented Aug 7, 2025

Reverted the changes for enabling this fix on the first gen OneXPlayer due to issues encountered in testing described in #2081 . I'm not sure how those issues can be explained with the changes in this PR given applying the workaround manually does work, but this could be something we revisit in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black screen on Ayaneo Air 30% of the time
2 participants