I’d like to prevent my laptop (a 2019 MSI model) from charging above 80% to prolong battery life. This machine is permanently connected to a power source as it’s mostly a desktop replacement. once 2 or 3 months I work on the move and use it on battery, but that’s about it.
I’m using XFCE.
Relevant inxi information:
Battery: ID-1: BAT1 charge: 76.5 Wh condition: 76.5/80.3 Wh (95%) volts: 17.0/15.2 model: MSI BIF0_9 type: Li-ion serial: N/A status: Full Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K270 serial: [xxx] charge: 100% (should be ignored) rechargeable: yes status: Discharging
I noticed there is a setting in TLP, but it’s limited to lenovo machines only.
# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module # required). Charging starts when the remaining capacity falls below the # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value. # Main / Internal battery (values in %) # Default: <none> START_CHARGE_THRESH_BAT0=75 STOP_CHARGE_THRESH_BAT0=80 # Ultrabay / Slice / Replaceable battery (values in %) # Default: <none> START_CHARGE_THRESH_BAT1=75 STOP_CHARGE_THRESH_BAT1=80
I’ve read this thread: [HowTo] Power savings setup| 2020-06-02
However I can’t find anything related to my problem there.