sriharshaarangi / BatteryChargeLimit

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

Not working in asus zenpad 10 #202

Closed giaaaacomo closed 1 year ago

giaaaacomo commented 3 years ago

by default control file "file": "/sys/class/power_supply/battery/status", nothing happens but i found out that there is a file in sys/class/power_supply/ac/device that is called charge_status, and as expected the content of the file is 0while not plugged and 1while plugged. i tried to set that as ctrl file but nothing changed, then i noticed that it has only read permissions, tried to set rwxrwxrwx so that the app could edit the file but changing the permissions bugged my system ui and forced me to reboot. after booting the permissions of the file are reset into r--r--r--. looks like the app cannot change permissions by itself since by just targeting the file nothing changes. i've got also to report that the default control file actually exist and changes by plugging in or out the cable but probably just works as an event file (donesn't control battery charging but reports to the system if it is charging or not). the universal battery_charging or similar are not present at all.