Enable/Disable battery threshold on Lenovo Thinkpad laptops. If you mainly use the system with the AC power adapter connected and only use the battery sporadically, you can increase battery life by setting the maximum charge value to less than 100%. This is useful because batteries that are used sporadically have a longer lifespan when kept at less than full charge.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
49 | Active |
48 | Active |
47 | Active |
46 | Inactive |
45 | Active |
44 | Active |
43 | Active |
42 | Active |
41 | Active |
40 | Active |
39 | Active |
38 | Active |
37 | Active |
36 | Active |
35 | Rejected |
34 | Active |
33 | Active |
32 | Active |
31 | Active |
30 | Active |
29 | Active |
28 | Active |
27 | Active |
26 | Active |
25 | Active |
24 | Active |
23 | Active |
22 | Active |
21 | Active |
20 | Active |
19 | Active |
18 | Active |
17 | Active |
16 | Active |
15 | Active |
14 | Inactive |
13 | Active |
12 | Inactive |
11 | Active |
10 | Active |
9 | Active |
8 | Active |
7 | Active |
6 | Active |
5 | Active |
4 | Inactive |
3 | Inactive |
2 | Inactive |
1 | Inactive |
What is the possible command in line 347 (libs/Battery.js) that may need pkexec?
The default permissions of the files inside /sys/class/power_supply are read-only for the normal user, for this reason root credentials are requested to make changes to the values if necessary. The only command that is executed in all cases is "echo" (lines 227 to 230). "pkexec" is only used if those files do not have write permissions for the current user (on my laptop it is the normal case, although I implemented some basic udev rules to apply write permissions to them and that the root password is not requested). Is there something that can be improved? Thanks. Sorry for my English, I use the translator.