sriharshaarangi / BatteryChargeLimit

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

Poco x3 pro, doesn't detect charger disconnect #216

Closed pulsarice closed 1 year ago

pulsarice commented 3 years ago

First, the default control file is not working. I had to switch to input_suspend. Now when the charge reaches the threshold, charging is stopped. But after disconnecting the charger, it still shows "maintaining ..." notification and I have to manually select disable to close the notification and reset the battery stats.

These files are in this path /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply When charge level reached and charger is connected battery_maintain.zip

After disconnecting the charger charger_disconnect.zip

pulsarice commented 3 years ago

I attached two files to the first post

spaetz commented 3 years ago

Hi, I am just trying /sys/class/qcom-battery/restrict_chg 0 1 and it could actually work well. Will report if it does.