Skip to content

[TrimUI Brick] Wifi does not come back up after failed deep sleep #594

@DrFlarp

Description

@DrFlarp

Submitting this to further document #578 and #581. Although both have been resolved in 6.7.0RC1 by throwing away Allwinner's wifi daemon and libs, it seems the root causes remain even in the tg5050 branch. Deep sleep still has a high probability of failing with an error code.

In the suspend script:

  • if echo mem > /sys/power/state fails the script prematurely exits. This means that - if applicable - wifi and bt services have not been restarted after being torn down in preparation for sleep. The best way to resolve this is not a given - either 1) we handle the error in-script with set +e and keep track of the error code, or 2) we split the script into pre- and post-steps and force the calling exe to keep track of the state of wifi and bt, which is more "correct" but puts the burden of doing this correctly downstream.

Is it intended for other paks call the suspend script directly? if so, I think we stick with option 1).

The reason for the sleep failure itself is not fully clear. rmmod for allwinner's wifi drivers seems to reduce the chances of failure but not 100%, so this is going to get its own issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions