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

Not working on the Google Pixel 4 #20

Closed
gabkomarnicki opened this issue Nov 21, 2019 · 6 comments
Closed

Not working on the Google Pixel 4 #20

gabkomarnicki opened this issue Nov 21, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@gabkomarnicki
Copy link

ACC doesn't seem to be working on the Pixel 4 (eg. doesn't stop charging when it reaches the pause charging level). Also tried the forceStatusAt100=5 workaround - still nothing. Currently on the stock kernel.

acc-logs-flame.tar.zip

@jpcaldwell30
Copy link

I have the same issue as the user above. I have a pixel 4 XL running the latest version of android 10 and after some testing it seems that none of the switches work which is why we are unable to get the service to do anything. After some digging i think its because the phone has different control files/missing ones so we just need to find one that works as a switch. Any ideas on where to start?

@Aiakio
Copy link

Aiakio commented Dec 6, 2019

Also same issue here. Pixel 4 XL.

@VR-25 VR-25 added the enhancement New feature or request label Dec 14, 2019
@VR-25
Copy link
Owner

VR-25 commented Dec 14, 2019

I found the following new charging switches:

/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:google,bms/power_supply/charger/charge_disable 0 1

/sys/kernel/debug/google_charger/chg_suspend 0 1

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

Pro tip: since the first matches .*/power_supply/.*, it can be abbreviated as charger/charge_disable 0 1.

Test command: acc -t [file] [on] [off]
e.g. acc -t charger/charge_disable 0 1

Set a working switch with acc -s chargingSwitch [file [on] [off]
e.g. acc -s chargingSwitch charger/charge_disable 0 1

@jpcaldwell30
Copy link

Thank you! The first one works for me on the Pixel 4 XL. I haven't tried any of the others but I suspect they will as well. Can we expect this to be included in the next app update? Also, could you add the ability to add a custom switch in the app in the select switch popup?

@VR-25
Copy link
Owner

VR-25 commented Dec 14, 2019

Yes, the next version will include these changes.

@gabkomarnicki
Copy link
Author

@VR-25 Now working on my Pixel 4 as well after trying the commands above. Thanks a lot!

@VR-25 VR-25 closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants