sriharshaarangi / BatteryChargeLimit

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

Asus Selfie Control File #106

Open petepaul1228 opened 6 years ago

petepaul1228 commented 6 years ago

/sys/class/power_supply/usb/present Enable=1 Disabl=0

milux commented 6 years ago

Have you checked correct functionality via Terminal Emulator? Afaik a file with identical or very similar name exists for numerous other devices, but does not influence the behavior of the charging circuits.

petepaul1228 commented 6 years ago

Yup! I already set it in control file and it works. This also works: /sys/devices/soc.0/78d9000.usb/power_supply/usb/present

The only problem with it is when i disconnect the charger, the charge icon will not go away.

milux commented 6 years ago

This is normal for some control files, as the OS cannot notice the change until reactivation of the charging component.

petepaul1228 commented 6 years ago

Thanks! Kudos!