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

Still huge offline drain duo2 #130

Closed
9 tasks done
Clanceeinfinity opened this issue Dec 17, 2024 · 32 comments
Closed
9 tasks done

Still huge offline drain duo2 #130

Clanceeinfinity opened this issue Dec 17, 2024 · 32 comments
Labels
duo 2 Issue is only on duo second generation stale

Comments

@Clanceeinfinity
Copy link

Acknowledgements

  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • This is not a feature request.
  • This issue is not a duplicate of an existing issue.
  • The issue is solely related to this GSI.
  • This issue occurs with the latest available build.
  • I am not running a custom vendor on my device.
  • This issue is not kernel related.
  • This issue is not related to Magisk/KernelSU/APatch.

Info

  • Device: duo2
  • GSI version: v2024.12.16
  • Vendor version:

Expected Behavior

With this update the offline drain should be fixed

Current Behavior

It's not, the pen charging option is disabled!

Possible Solution

No response

Steps to Reproduce

  1. install update
  2. close phone
  3. get drain

Logs

No response

Additional context

Screenshot_20241217-160913
Screenshot_20241217-160921

@Archfx
Copy link
Owner

Archfx commented Dec 17, 2024

Is this with the wireless pen charger turned off?

@Clanceeinfinity
Copy link
Author

Screenshot_20241217-165702
yes, maybe i need to reboot again? it was disabled once i installed the update

@Archfx
Copy link
Owner

Archfx commented Dec 17, 2024

Try enabling and disabling, it looks like the default value needs to be set internally. Otherwise, it shows here that it is disabled while internally it is enabled.

I will fix it internally for the next update.

@Archfx
Copy link
Owner

Archfx commented Dec 17, 2024

I am closing this issue, feel free to open it again if enabling and disabling doesn't work. I added the internal default value to the sources, so in the next build internally it will be switched off until the manually turned on.

@Archfx Archfx closed this as completed Dec 17, 2024
@Clanceeinfinity
Copy link
Author

tried that too, didn't work :/

@Archfx Archfx reopened this Dec 17, 2024
@Archfx
Copy link
Owner

Archfx commented Dec 17, 2024

Mmm, interesting. Can you get the output of the following commands?

adb shell
cat /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger

Does anyone else have the same issue?

@Clanceeinfinity
Copy link
Author

sadly my pc is still not working, ill test this as soon as it's ready

@oilcan-productions
Copy link

oilcan-productions commented Dec 18, 2024

I am getting permission denied when running the 'cat' command. But not seeing a massive difference in battery drain between pen charging on or off

@Archfx
Copy link
Owner

Archfx commented Dec 18, 2024

I am getting permission denied when running the 'cat' command. But not seeing a massive difference in battery drain between pen charging on or off

If it is getting permission denied, there is a problem. @Ethanol10, I changed the permission for the pen charger file at boot time. But this looks like it is not taking effect.

@Ethanol10
Copy link
Contributor

Is the permission set such that user apps can change it too? I can see using ls -Z that the file has ms_pen_charger as the policy set for that file. I can only view it if I use su though.

Also, using ls -l returns the permission string -rwxrwxrwx without changing any permissions, so I'm not entirely convinced this is the problem.

@Archfx
Copy link
Owner

Archfx commented Dec 18, 2024

You are correct, -rwxrwxrwx means it has the correct permission. I wonder if there are multiple hardware revisions. @oilcan-productions can you get the output for the following commands as well?

adb shell
ls /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/
ls /sys/devices/platform/soc/soc:surface_util/
ls /sys/devices/platform/soc/

ls -l ls /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/
ls -l /sys/devices/platform/soc/soc:surface_util/
ls -l  /sys/devices/platform/soc/

@oilcan-productions
Copy link

oilcan-productions commented Dec 18, 2024

Here you go

duo2:/ $ ls /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/
ls /sys/devices/platform/soc/soc:surface_util/
ls /sys/devices/platfms_pen_charger
....

@Archfx
Copy link
Owner

Archfx commented Dec 18, 2024

@oilcan-productions thanks for this. Could you please get the output for this command as well?

adb shell
ls -l /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger

Do you have access to a pen? Could you please check whether the charger turns on and off with the toggle as well?

@oilcan-productions
Copy link

ls -l /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger                                         <
-rw-rw-r-- 1 root root 4096 1970-01-10 05:21 /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger

Yes, I have a pen and the pen case on my Duo 2. I can confirm that the toggle works. The toggle is off after clean flash and the charger is off as well. When I turn it on the pen starts charging.

@Archfx
Copy link
Owner

Archfx commented Dec 18, 2024

ls -l /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger                                         <
-rw-rw-r-- 1 root root 4096 1970-01-10 05:21 /sys/devices/platform/soc/soc:surface_util/ms_pen_charger/ms_pen_charger

Yes, I have a pen and the pen case on my Duo 2. I can confirm that the toggle works. The toggle is off after clean flash and the charger is off as well. When I turn it on the pen starts charging.

That means the pen charger is working correctly and the unusual battery drain is from another source.

@oilcan-productions
Copy link

I just clean flashed this morning so not representative right now. I will keep monitoring the battery drain. AS I said I have not noticed a significant difference between pen or no pen charger. I still feel it is VoLTE.iWLAN that chews the battery up.

@usb4
Copy link

usb4 commented Dec 18, 2024

If someone could test that by leaving the Duo2 on airplane mode and seeing if the drain still occurs, that would be a good indicator.

@oilcan-productions
Copy link

Testing now, will report back once it is charged to 100% and a few hours went in

@oilcan-productions
Copy link

So far so good. 60 minutes after hitting 100%charge on airplane mode no loss of charge. Pen charger is on pen is paired and docked.

@oilcan-productions
Copy link

Turned off airplane mode and battery dropped 11% in about an hour. Biggest culprit is Google Play servicesScreenshot_20241218-180806.png

@Archfx
Copy link
Owner

Archfx commented Dec 19, 2024

If Play Services is draining the battery, it should affect both duo1 and duo2 similarly unless it is a problem specific to LTE.

@Clanceeinfinity
Copy link
Author

play services is not the cause of this, the way android tracks battery is really flawed and if there is an issue where there is abnormal drain, android blames and always active app. With airplane mode enabled, i did lose a little less battery overnight, but still 91 --> 67% so still very abnormal.

@Ethanol10
Copy link
Contributor

Ethanol10 commented Dec 19, 2024

Does Stock 12L Exhibit the same issues?

e,g airplane mode on, pen charger on etc.

@oilcan-productions
Copy link

@Ethanol10 I have a12L device sitting right next to the A15 Duo 2 and do not see that high a drain, same configuration with Pen attached, same mobile network.
From the one night test here is what I see. It does seem related to mobile network traffic. Both Devices are on TMO-US, same plan and camping on 5G with Wi-Fi Off. On the 15 device I also turned off the pen charging toggle after removing the pen

Device OS Start Time End Time Start Battery % End Battery % AP Mode State Pen Attached
Duo 2 12L 18:15 21:15 100 99 ON YES
Duo 2 15 18:17 21:30 100 97 ON YES
Duo 2 12L 21:15 00:30 99 84 OFF YES
Duo 2 15 21:30 00:33 97 63 OFF YES
Duo 2 12L 00:30 08:55 84 67 OFF NO
Duo 2 15 00:33 08:56 63 14 OFF NO

@Archfx Archfx added the duo 2 Issue is only on duo second generation label Dec 22, 2024
@usb4
Copy link

usb4 commented Dec 26, 2024

One possible reason that could be causing battery drain is that the fingerprint reader is always active and can unlock the device even while it is folded up.

@Clanceeinfinity
Copy link
Author

One possible reason that could be causing battery drain is that the fingerprint reader is always active and can unlock the device even while it is folded up.

i don't think so, most androids work this way. my tab s7 and galaxy s9 / s10 had always active fingerprints too and could go into doze

@wilhelmstroker
Copy link

When I check the battery usage on mine, Trebuchet is the main culprit.

@Clanceeinfinity
Copy link
Author

When I check the battery usage on mine, Trebuchet is the main culprit.

you can not use the battery app to check for abnormal drain sadly. googles sloppy coding doesn't allow for that really. My tab s7 had a similar issue, i think the play services got blamed for abnormal drain, when i checked i saw the cpu being really high used, i think 80% of the drain or so was it (extremely abnormal for the efficient 865+). I noticed that an app was constantly crashing in the background, on this case it was the android telephone subsystem so i deleted it with adb and it got fixed.

main point tho, the real issue, this app, never showed up in the android battery settings app.

@usb4
Copy link

usb4 commented Dec 26, 2024

Another data point:
Went to bed at 100%, woke up to 70%
Airplane mode was on (cellular off), Wifi on
Battery stats says screen was on for 35mins (Duo was folded closed)

Top battery users:
Google Play Store:
Screen time 11 min
Background 22 min

Trebuchet:
Screen time 10min
Background 9 hr 2 min

I turned off "Allow background usage" for Trebuchet, left for a few hours and came back to see that the background usage went up to 14 hrs.

@usb4
Copy link

usb4 commented Dec 26, 2024

One possible reason that could be causing battery drain is that the fingerprint reader is always active and can unlock the device even while it is folded up.

i don't think so, most androids work this way. my tab s7 and galaxy s9 / s10 had always active fingerprints too and could go into doze

I don't believe the stock Duo OS allows you to use the fingerprint reader to unlock the device while it is closed

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 27, 2025
Copy link
Contributor

github-actions bot commented Feb 4, 2025

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duo 2 Issue is only on duo second generation stale
Projects
None yet
Development

No branches or pull requests

6 participants