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. In GNOME 48, an option was added to the Power section of System Settings to enable thresholds 'natively' (using D-Bus + UPower). This option conflicts with this extension and must be disabled for it to work properly.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
53 | Active |
52 | Active |
51 | Active |
50 | Active |
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 |
Approved, but you shouldn't tell users to disable options in a specific GNOME Shell version to use it properly. You can version check and disable that option in your own code.
First, thanks for your feedback. The conflict is between GNOME's implementation of battery charge threshold settings and my extension. If the user chooses to use the GNOME option, the extension doesn't behave correctly since GNOME takes priority. I'd considered disabling the GNOME option from my extension (I think it would be possible), but it didn't seem right to mess with GNOME options... What do you think? Also, I'd have to restore the GNOME setting when disabling/uninstalling the extension. Since this setting isn't clearly "informed" to the user, it could happen that they don't notice the setting was re-enabled when uninstalling the extension and don't understand what's happening to their battery... or am I being paranoid? ;D (The GNOME team is looking into ways to inform the user that the thresholds are enabled, but for the moment, it's not being communicated.) What would be the best course of action? What would you do?
Yeah, it's really hard to manage behavior when extensions change something in GNOME settings. I have the same issue with animation in my own extension. Maybe you could send a notification when the setting was previously enabled and you disable it.