forked from shauninman/MinUI
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Description
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/statefails 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 withset +eand 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.