-
Notifications
You must be signed in to change notification settings - Fork 6
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
Shutdown all but one CPU cores on screen off #3
Shutdown all but one CPU cores on screen off #3
Conversation
Sorry, have been quite busy in the past weeks. |
I am using a slightly modified version of this script, with fine-tuned values for
I am using the modified version above everyday, and is a good compromise between convenience and battery life. Typically, battery would last around 12-20 hours with light-medium usage, which is a lot more than compared to no suspend (and runs noticeably cooler, too), although less compared to keeping the phone suspended until the power button is pressed. Surprisingly, the power saving feature suggested on this PR was not very useful to me, due to the following reasons:
Calls and SMS are working fine so far. However, the Quectel EG25 modem on the PinePhone is known to be buggy, so the modem might crash more often, compared to no suspend. According to own experience, surprisingly modem crashes seem to occur more often when on the go. As a workaround, I have written the following script, which restarts OTOH, I am using some applications, such as Dino, which take a significant amount of time to receive incoming messages for some reason unrelated to Sometimes though, the phone crashes when entering suspend and thus is unable to wake up, even if the power button is pressed. Typically, the phone would sleep for a specific amount of time and then wake up, as shown below:
However, sometimes it cannot wake up and thus must be force-restarted. For example, as shown below, the phone crashed at
In any case, I assume this issue is not related to |
Thanks for your answer. I have mostly the same issues as you. Unfortunately we have to deal with this modem on the pinephone pro, too (currently collecting dust in my closet). But I'm hoping that the open source driver will mature in the future. I will try your The 30 seconds wake time is ok for me (using mainly telegram-desktop for messaging). Usually I get my messages within 10-15 seconds I think. Since the script does now detect receiving notifications we could implement some sort of smart waiting depending on the wait time of previous cycles someday. A small note to your modified version of the script: You seem to check |
Closing this pull request, because it isn't useful. |
Good point! I had just realized about this behaviour. |
Overview
This PR attempts to reduce power consumption by powering down all but one CPU cores while the device remains awake, yet inactive. Then, once the user interacts with the device again, all CPU cores are powered back on.
Notes
While this should reduce power consumption to some degree, I am unsure of how much actual power is saved on the PinePhone. Some quick experiments did not show a noticeable improvement, but YMMV.