Page 1 of 2

High Battery Drain

Posted: Sun Mar 07, 2021 7:44 am
by Atari1200xl
Hi I have a Samsung s9 plus everything works well have been using openvpn and now wireguard.
I have client monitor running in the background so it connects whenever I change to LTE but in the last couple of weeks the monitor is using the bulk of my battery almost halving the life time just sitting there not connected. Is there anything I can do to improve this?
The phone gets a restart twice a week everything is up to date.

Re: High Battery Drain

Posted: Sun Mar 07, 2021 9:50 am
by admin
Hello,
do you mean auto connect monitor?
If so, it's very strange because this service register only a receiver to get the network changes events and show a foreground notification icon. So this service should consume CPU only when receive a network change event. Moreover, this service has not changed in the latest releases.
Anyway I will made some tests...

Re: High Battery Drain

Posted: Sun Mar 07, 2021 8:58 pm
by Atari1200xl
Hi thanks for the reply, yes I meant auto connect monitor.
I know makes no sense to me too.
Funny thing is it shows 0 m Active and 21 h 5 m Background for yesterday.
I can tell you I was connect for a little less than an hour in total yesterday.
Going back through history the most time it shows Active is 2m's
It could very well be something to do with a Samsung update as I'm diligent about updates and have seen other issues crop up before, My phone is fairly clean not very many apps at all and all the facebook and other crap has been removed, Signal, Email, Telegram, Tmux, and music is about the height of my use. :)

Re: High Battery Drain

Posted: Mon Mar 08, 2021 4:26 pm
by admin
You're welcome.
I've done some testing and the auto connect service seems to work as expected and only consuming the CPU when it receives network change events.

Are you able to use Android's logcat development tool?
If so, you can check the events regarding network changes in the log.
They are normally tagged as ConnectivityService.
This information could help to understand what's going on...

Re: High Battery Drain

Posted: Mon Mar 08, 2021 10:06 pm
by Atari1200xl
Will check it out thanks :)

Re: High Battery Drain

Posted: Tue Jun 15, 2021 5:13 am
by Slipi089
i can confirm that the auto connect monitor also consumes a lot of battery power for me. although i am in the home office most of the time and almost never change the network or vpn is active.

Re: High Battery Drain

Posted: Tue Jun 15, 2021 7:12 am
by admin
Maybe you have activate the "Acquire WakeLock" option.
Please try to follow these steps:
  • start the app
  • tap on top left icon
  • tap on "Auto connect" button
  • unselect "Aquire WakeLock" option

Re: High Battery Drain

Posted: Tue Jun 15, 2021 5:19 pm
by Slipi089
thanks for the quick reply, right i had the option enabled but didn't know i did this on purpose. now it's disabled and will watch it. thanks :)

Re: High Battery Drain

Posted: Wed Jun 16, 2021 9:44 am
by admin
You're welcome.
The "Acquire WakeLock" option can be used on devices that kills background services aggressively.
On some devices this option has the side effect of excessive battery drain.

Re: High Battery Drain

Posted: Fri Jun 18, 2021 10:53 pm
by Slipi089
Thanks that seems to have been the solution.