Apple Macbook Intel-series chip

Capability

  • 3 presets: Full Capacity Mode, Balance Mode, and Maximum Life Span mode.
  • Default threshold values of these 3 preset modes are set at 100%, 80%, and 60%.
  • Each preset threshold value can be customized between 100-80 %, 85-65 %, and 85-50 % respectively.

Dependencies

Depends on separate kernel module applesmc-next, that need to be installed.
https://github.com/c---/applesmc-next

applesmc-next module is supported by a third party and this extension/author is not in any way responsible for the kernel module installation, bugs or damages.

Testing charging threshold using command-line

After installing applesmc-next below sysfs path will be available and charging threshold/mode can be changed. Now user will be able to set charging threshold, using commandline and test charging behavior. Charging mode can be set by using echo command in terminal.

For example:
To apply threshold value of 60, the command would be.

Require root privileges

echo '60' | pkexec tee /sys/class/power_supply/BAT0/charge_control_end_threshold


sudo also can be used in place of pkexec in the above commands as both sudo and pkexec can be use to run commands in root mode. To make use of polkit rules, the extension uses pkexec.

The current threshold value can also be read using cat command in terminal. For example, the laptops battery name in power supply sysfs is BAT0, command would be.

cat /sys/class/power_supply/BAT0/charge_control_end_threshold


Condition for applying threshold

  • Accepted values for charge_control_end_threshold : 10 - 100
  • Accepted values for charge_control_start_threshold : none (not writable)

If charging threshold are applied successfully using above commands, the extension is compatible.

Quick Settings


Gnome 43 and above Gnome 42

Extension Preferences


Charging Indicator Light Behavior Settings


This the default system behavior from apple laptops regarding charging indicator light (LED).

  • The charging indicator light glows amber when battery is either charging or battery level has reach charging threshold value (charging on hold).
  • The charging indicator light glows amber when threshold limit has reached (charging on hold).
  • The charging indicator light glows green when battery is fully charged.

applesmc-next module provides addition functionality to change charging indicator light (LED) behavior by changing values at charge_control_full_threshold.

echo '58' | pkexec tee /sys/class/power_supply/BAT0/charge_control_full_threshold
  • The charging indicator light glows amber when battery is charging.
  • The charging indicator light glows green when battery level has reach charging threshold value (charging on hold).

This extension provides a setting in preferences to change the behavior as explained above.

  • With setting enabled, the charging indicator light glows green when battery level has reach charging threshold value (charging on hold).
  • With setting disabled, will revert back to system default behavior where in, the charging indicator light glows green when battery level is above 95% (battery is fully charged).



Back to top