-
Notifications
You must be signed in to change notification settings - Fork 86
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
Battery Drain #4960
Comments
If an app is requesting a lot of ads, it will drain battery that android will attribute to Adguard. Make sure you don't have an app, like YouTube constantly requesting ads or something. |
Same problem here, on versions 3.#.# not that much battery drain but i check issues sometimes none talk about it, i didnt open issue about it. |
Same usage but the drain wasn't noticeable. Even earlier version 4 was better amid the constant restarts |
@AlgorithmOfGithub @loca-lhost could you be more specific about what apps you usually use? Does this happen if the phone is in sleep mode? |
@loca-lhost there are some issues with automatic proxy as of now in the latest nightly versions which results in connection getting lost and some apps gets stuck while doing some operations like whatsapp backup which triggers at 2AM, truecaller/whatsapp contact sync. I would suggest to install Better battery stats (root)- either stable or the xda edition (free) and observe the apps which are holding partial wakelocks and firing more than expected alarms in their respective tabs. I have observed whenever this battery drain happens in automatic proxy it's either some app with numerous entries with some "job sync" wakelock or "overflow" wakelock. This way you will have a much better idea of which app is actually causing the drain. It's also entirely possible that some other app is responsible for this. And since you're already on root I would suggest forcing deepsleep using some app and also monitoring whether deepsleep is working or not. |
@loca-lhost @AlgorithmOfGithub can you also export your settings and send them to devteam@adguard.com? Please include issue number 4960 in your email |
@AlgorithmOfGithub @loca-lhost any news? |
@maxikuzmin Hi, sorry for late answer. Let me answer fastly your questions. |
It quit stable in vpn and it hovers around 20 percent now. In auto proxy it goes beyond 30 percent |
@loca-lhost do you have a Huawei too? |
Xiaomi |
@loca-lhost @AlgorithmOfGithub @Rtizer-9 does this repeat with Local VPN mode? |
@maxikuzmin as far as I can recall, I think it does. At the moment I'm not using VPN mode because obviously why not "root proxy" when you have it and also vpn mode shuts down automatically a lot overnight. |
@maxikuzmin , for me work on local vpn, the issue persist with last nightly and beta versions, i dont know how it works but maybe the issue is not about mode. I read that rewriting every line of code on 'total reengineering' that you wrote about version 4.0. What did change ? |
I think that this is somehow related to that doh using that stale connection for too long bug. It's not exactly ag perhaps that drains the battery but the apps that get stuck like I mentioned above. I can see lots and lots of entries with "job" and Android wakeup alarms with the most being "job.deadline" intent. |
@Rtizer-9 @loca-lhost @AlgorithmOfGithub in 3 days of using AdGuard I haven't seen this problem. But I tested on Pixel 5 with Android 14, maybe the problem is in the system. |
I'm using this whole setup with Wireguard kernel mode so I'm not really sure what's exactly causing the problem and if it would be of any use to you. To solve the problem I'm using persistent keep alive in both ag and Wireguard (I thought this would stop frequent disconnection and keep the connection alive) and I'm not seeing any battery drain since many days. PS: I'm on Android 13 not 14. |
@loca-lhost @AlgorithmOfGithub do you still continue to have severe battery drain? |
On automatic proxy it still drains. Vpn mode is tolerable |
@maxikuzmin, |
@AlgorithmOfGithub @loca-lhost @Rtizer-9 I've been watching my device for a long time, but the problem has never recurred. |
I'm also not having any issues for the past few weeks. |
@AlgorithmOfGithub @loca-lhost any news? |
It's better now. Been a while since I used http proxy. Using vpn mode now. |
@maxikuzmin, if there is a problem, probably other users will notice this too with updates. Thanks for handle, i will send the data from a more stable phone. |
@AlgorithmOfGithub how are your observations? Are you seeing a large amount of requests from any applications? |
@maxikuzmin hi, I dont see any extra requests from any application. However it seems like it is receiving extra requests and consumes battery on the phones I use. As I said, I will send you the information when I get a new and stable phone. |
@AlgorithmOfGithub I continue to monitor power consumption on several devices, so far no anomalies unfortunately. I hope to get logs from issue users via AdGuard VPN to understand the issue in more detail. |
@maxikuzmin I'm using Adguard with another proxy app and was facing ag crashes after screen off. I turned on ag watchdog and set it to highest=300s which resulted in "check alive" alarm from ag which triggers a lot and probably forces the system to come out of sleep, which results in ~1%/hr battery drain overnight. When I again disabled watchdog, drain is back to ~2% overnight. From my experience I've seen these kinds of battery drain with ag :
In the above cases your phone's natural idle drain too comes into place which you might also be counting and attributing completely to ag.
|
@maxikuzmin I wanted to write when I experienced difficulties in daily use and saw a similar status information. Thanks for your interest despite the lack of information. |
@AlgorithmOfGithub @Rtizer-9 we've received enough logs from AdGuard VPN. We are investigating this issue, thanks! |
@AlgorithmOfGithub @Rtizer-9 we found what the problem is. It will be fixed in an upcoming update. Thank you very much for your information! |
@AlgorithmOfGithub @Rtizer-9 please test this in AdGuard VPN 2.7 Beta 1 released today or wait for the release version tomorrow, please let us know the results |
Umm...I never talked anything about ag vpn. Isn't this issue about ag Android? |
@Rtizer-9 we had a power consumption issue due to the penultimate version of AdGuard VPN having too frequent integration mode checks. We fixed that and it should have fixed the power consumption issue. |
@maxikuzmin hi, for me yes, issue for using adguard but probably my problem about my phone, just want to say it |
@AlgorithmOfGithub @Rtizer-9 is this still happening when using the latest versions of AdGuard 4.3.1 and AdGuard VPN 2.7? |
@maxikuzmin hi, i dont use adguard vpn, yes still drain battery but problem is my phone so thanks for still attention. |
@maxikuzmin yes I only faced battery issue with main ag app (I don't use VPN app) and as I've mentioned earlier it's been days since I faced battery drain specifically due to ag. |
Issue is happening for me on two devices Samsung S22+ / Tab S9 (Android 14 stock) with Adguard VPN is disabled, but there is high battery consumption. |
As I said before, if there is, this problem will occurs for more users with new updates, except for me. i hope not problem. |
@AlgorithmOfGithub @rak-rak @Rtizer-9 we're looking into it, we're gonna need some time |
CRM #858809 - logs sent to devteam@adguard.com |
Please answer the following questions for yourself before submitting an issue.
AdGuard version
4.2.71
Environment
Root access
What filters do you have enabled?
No response
What Stealth Mode options do you have enabled?
No response
Issue Details
I have observed over some period a huge battery drain. It can take upto 50% of my SOT for a period of 24 hrs if I use auto proxy mode. Currently it sits at 28%. Version 3 never crossed the 5% threshold for same period. Inside the apps statistics it's even worse as it spikes randomly especially if you manually check for update.
Expected Behavior
It shouldn't be draining battery. And the statistics is way off.
Actual Behavior
Battery statistics ib the app and android battery estimates are just beyond normal. Huge battery drain.
Screenshots
Additional Information
No response
The text was updated successfully, but these errors were encountered: