Skip to content
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

[BUG] - 3.6.0: High battery usage #437

Closed
Solarunit opened this issue Nov 12, 2024 · 23 comments
Closed

[BUG] - 3.6.0: High battery usage #437

Solarunit opened this issue Nov 12, 2024 · 23 comments
Assignees
Labels
bug Something isn't working

Comments

@Solarunit
Copy link

Solarunit commented Nov 12, 2024

Describe the bug

High battery usage.
wgtunnel is on top of battery usage statistics after a few hours of idle phone usage. While version 3.5.2 was perfect and app was never in the list.

So 3.6.0 hasn't fixed this issue for me #411
I think I have to go back to version 3.5.2 again.

Smartphone (please complete the following information):

  • Android Version: Android 11
  • App Version: 3.6.0
  • Backend: Userspace

Expected behavior
Same battery usage that was in version 3.5.2

@Solarunit Solarunit added the bug Something isn't working label Nov 12, 2024
@zaneschepke
Copy link
Owner

Hello! This is strange because I am no longer able to replicate this issue on 3.6.0. Can you confirm you do not have "wifi name via shell" enabled.

Also, have you tried restarting your device since upgrading to 3.6.0 to see if that solves the issue?

@Solarunit
Copy link
Author

Can you confirm you do not have "wifi name via shell" enabled.

I don't remember that I ever enabled this feature. I don't use any auto-settings.
I am currently on 3.5.2.

Also, have you tried restarting your device since upgrading to 3.6.0 to see if that solves the issue?

I haven't. I upgraded from 3.5.2 -> 3.6.0

@lincolnep
Copy link

I am getting the same issue with 3.6.0 I have rebooted the phone to check but still having the issue.

I don't have wifi name via shell enabled

any suggestions for what to check or info I could provide that would help diagnose the issue?

@zaneschepke
Copy link
Owner

@lincolnep Can you share your settings and phone android version/model? I'm still having a hard time reproducing.

@lincolnep
Copy link

I have a s24+ with android 14 October security patch.

I have also noticed that 81gb was down loaded by wg tunnel as I down load less then 25gb in a month normally I have a suspicion it is linked to that

@lincolnep
Copy link

Auto tunnel enabled (tunnel on mobile data)
Screenshot_20241114_195300_WG Tunnel
Screenshot_20241114_195424_WG Tunnel

@Solarunit
Copy link
Author

In my case all those settings were disabled

@kic68
Copy link

kic68 commented Nov 14, 2024

I'm also having the high battery usage (42%). Wifi name via shell disabled.
S24U.

@zaneschepke
Copy link
Owner

Does everyone here have a Samsung? I'm trying to determine if this is a purely Samsung specific issue.

@zaneschepke
Copy link
Owner

Also, were all of you using auto-tunneling? Or was this happening even when auto-tunneling is turned off and just the tunnel is active?

@kic68
Copy link

kic68 commented Nov 15, 2024

As already stated, yes, on a Samsung S24U.

Auto-tunneling was active for non-home wifi or mobile situations. Two mobile networks active.

The tunnel itself should have been inactive about 90% of the day as I was mostly at home.

Resulted in 42% of battery usage.

I'm on the latest Samsung (November) /Google (October) patches.

@eTaurus
Copy link

eTaurus commented Nov 15, 2024

I don't have a Samsung phone. Android 10. Not as high battery consumption in numbers but the phone gets really warm and the battery depletes rapidly on 3.6.0 with auto-tunnelling. I don't know if the battery depletes less rapidly at home when the phone is connected to a trusted WiFi compared to when the tunnel is active on mobile data or on a untrusted WiFi.
I'm back on 3.5.2

@Solarunit
Copy link
Author

Does everyone here have a Samsung? I'm trying to determine if this is a purely Samsung specific issue.

not Samsung specific

Also, were all of you using auto-tunneling? Or was this happening even when auto-tunneling is turned off and just the tunnel is active?

No, I don't use auto-tunneling and other auto* options.

@woble
Copy link

woble commented Nov 16, 2024

High battery usage with 3.6.0 here as well. Non rooted Pixel2XL with A11. Auto tunneling on mobile data or untrusted wifi. 3.5.2 is the only version that doesn't drain the battery.

@Gothico74
Copy link

+1

Xiaomi Mi9 A10

After reverting to 3.5.2 Batteryusage from Hero to Zero..

On my A13 Tablet AutoTunnel doesn't work well; service stops or crashes after loosing WiFi Signal. 3.5.2 has no issues

@zaneschepke
Copy link
Owner

I think this issue may have something to do with changes to how the app handles local logging as there were big changes to this during these impacted versions. I think I'll add a toggle to the support screen to allow the user to disable local logging and this should help us determine if this is the origin of this issue.

@Solarunit
Copy link
Author

I am ready test this experimental version 👍

zaneschepke added a commit that referenced this issue Nov 23, 2024
Allow users to toggle on and off local logger. This will hopefully help address #437
Allow shortcuts activation on AndroidTV
closes #451
@zaneschepke
Copy link
Owner

zaneschepke commented Nov 23, 2024

I am ready test this experimental version 👍

Thank you! Here it is: https://github.com/zaneschepke/wgtunnel/releases/tag/3.6.0-battery-regression-fix

Please let me know if it fixes the issue and I'll create a prod release right away.

@Solarunit
Copy link
Author

I am using prerelease-3.6.0 for a couple of hours and looks like it doesn't have a problem. But I am keep testing.

@zaneschepke
Copy link
Owner

I am using prerelease-3.6.0 for a couple of hours and looks like it doesn't have a problem. But I am keep testing.

Are you testing with no auto-tunnel running or with auto-tunnel running?

@Solarunit
Copy link
Author

Solarunit commented Nov 23, 2024

@zaneschepke auto-tunnel is disabled, I never used auto-tunnel before.

I removed old data from version 3.5.2 and did clean install testing version and imported config from zip file. All settings are default. So far no problems. Looks like local logging was indeed the reason of high battery usage.

@zaneschepke
Copy link
Owner

@Solarunit Thank you so much for testing this and getting back with me so quickly!

I think I'll release a new version with local logging disabled be default for now until I can get to the bottom of what is going wrong there.

Thanks again!

zaneschepke added a commit that referenced this issue Nov 23, 2024
Adds a slight battery performance improvement

#437
@zaneschepke
Copy link
Owner

Going to close this one out for now as it should be fixed in the latest 3.6.1 release with local logging disabled by default.

If using local logging, I recommend you only turn it on to reproduce a bug, provide the logs, and then turn it off again.

I'll add a separate action for myself to investigate the logging issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants