Whenever I go to my homescreen or otherwise load another app the previous one closes. If I’m browsing Lemmy and I open a page linked on a post to read it, my app will have reset itself when I close the tab and I either have to give up or root around for the post.
This OS is borderline unusable in this state. It even evicts my homescreen app so there’s a 5-10 second lag when tapping the circle button.
Any tips? I have 8GB of RAM, which should be more than enough for a dozen apps.
You need to change battery optimization for the affected apps (well, the apps you don’t want hibernated instantly).
Some brands of phones have aggressive hibernation config for all apps by default (Samsung, Xiomi I think).
Lookup hibernation control for your brand of phone.
Also check out https://dontkillmyapp.com/
GrapheneOS. It keeps Termux and Molly (for MollySocket) open but nothing else.
Thanks for this thread. I just switched to GrapheneOS and noticed the same thing. It’s particularly annoying having my Lemmy feed reset so often.
I’m also using grapheneos, but I’ve never noticed anything like this.
To check I just went back to the very last app in the app switcher, which was ironfox, which was still open on the same page I left it during lunch today. (About 6 hours ago)
That’s interesting, and surprising. Graphene doesn’t do anything special with battery optimization, does it (I didn’t think it did)?
Have you asked on any Graphene chats (they use discord and telegram, right?).
I’ve used Greenify for 10+ years to manage hibernation, but it really only works well with root, and the Graphene folks aren’t down with root… So the only thing I can think to look at is how battery optimization is configured per app (and the “don’t keep activities” setting in Developer Options).
Edit: look in Developer Options for “Background Check”, here you can select which apps can run in the background.
I’m running a Pixel with Lineage and battery optimization works fine. Graphene starts with AOSP like Lineage does, surely they aren’t doing anything weird with battery optimizing?
Termux and Molly have battery optimizations disabled because they run critical services.