I have a ASUS laptop -> Asus TUF A15 . I want to set the laptop to use AC source for power once it charges to a threshold of 70%. In Windows I have the option to do this.
Upon a google search I found an answer . Go I go to the location --> /sys/class/power_supply/BAT1/charge_control_end_threshold --> Tried to edit and save it by setting it to 70. But it doesn't work.
Any idea how I can do this?
/sys/class/power_supply
directory can vary from machine to machine — even if using the same model — due to BIOS settings and/or battery manufacturers ... – Feb 07 '21 at 04:57`/sys/class/power_supply/BAT1$ sudo gedit charge_control_end_threshold
(gedit:75368): Tepl-WARNING **: 10:30:13.061: GVfs metadata is not supported. Fallback to TeplMetadataManager. Either GVfs is not correctly installed or GVfs metadata are not supported on this platform. In the latter case, you should configure Tepl with --disable-gvfs-metadata.`
– harikrishnan Feb 07 '21 at 05:01sudo
with Gnome applications but, instead, theadmin://
schema. For example:gedit admin:///sys/class/power_supply/BAT1/charge_control_end_threshold
. Either way,BAT0
is what you reported in the question,BAT1
is in your comment. Inconsistencies make things harder to solve. Please update your question to include the directory listing for/sys/class/power_supply/BAT1
– Feb 07 '21 at 05:12Also , I would like to learn what exactly does "echo" do ? Does it pass values to the config in this case?
– harikrishnan Feb 07 '21 at 05:53