sriharshaarangi / BatteryChargeLimit

GNU General Public License v3.0
382 stars 103 forks source link

Does not work on Google Pixel 4a with Android 11 #204

Open mycephei opened 3 years ago

mycephei commented 3 years ago

Dont work...

RHSaliya commented 3 years ago

Does not work for me too.

bu4sz commented 3 years ago

Does not work

SootyOwl commented 3 years ago

Using acc I found that this control file works.

/sys/kernel/debug/google_charger/input_suspend, 0, 1

bu4sz commented 3 years ago

Thank you so much - this works!

Sooty @.***> schrieb am Fr., 17. Sep. 2021, 15:34:

Using acc I found that this control file works.

/sys/kernel/debug/google_charger/input_suspend, 0, 1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sriharshaarangi/BatteryChargeLimit/issues/204#issuecomment-921801372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3SMORF37WQKGVJ3DX6PEDUCM7U5ANCNFSM4W3LI4NQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Uhter commented 3 years ago

Using acc I found that this control file works.

/sys/kernel/debug/google_charger/input_suspend, 0, 1

Hello guys, I'm a newbie and I'm not sure what to do. Do I only have to fill "Control Data" in settings? Like this:

Battery_Charge_Limit_1(300x573)

Or maybe the opposite: 0 as Enabled Value and 1 as as Disabled Value?

SootyOwl commented 3 years ago

Using acc I found that this control file works. /sys/kernel/debug/google_charger/input_suspend, 0, 1

Hello guys, I'm a newbie and I'm not sure what to do. Do I only have to fill "Control Data" in settings? Like this:

Battery_Charge_Limit_1(300x573)

Or maybe the opposite: 0 as Enabled Value and 1 as as Disabled Value?

Hi there. 0 is the enabled value, 1 is the disabled value. I've also had some issues if "Automatically reset battery stats" is turned on, but YMMV.

Set path to desired file: /sys/kernel/debug/google_charger/input_suspend Enabled value: 0 Disabled value: 1

Uhter commented 3 years ago

It didn't work at first time. Then I changed two other things:

Enforce Charge Limit: unchecked Always Write CTRL File: checked

Now, it works! Thank you @SootyOwl for you help ;)

Uhter commented 3 years ago

@mycephei:

May be you can close this issue, no?

kaoneko commented 3 years ago

Thanks for the info guys!

Changing the control file settings to /sys/kernel/debug/google_charger/input_suspend, 0, 1 sort of worked BUT after reaching the charge limit my phone kept switching between charging and discharging at irregular intervals, e.g. 30 seconds, 15 seconds, 50 seconds (I kept an eye on the charge current in AccuBattery, Battery Charge Limit just keeps saying Status: CHARGING whether or not it actually is).

Unchecking Enforce Charge Limit in Settings solved this (thanks @Uhter). I didn't need to check Always Write CTRL File.