Help with TLP plugin

But I’m running Mint Cinnamon 22.

Does anyone know how to add this to initramfs to fix the TLP problem?

Thanks!

2 Likes

Welcome to our Linux comminity!

You’ll need to add the TLP workaround for ASUS laptops to your initramfs. Since Mint is based on Ubuntu, you can follow this:

USE AT YOUR OWN RISK

1. Create an initramfs hook script

Create a new file in /etc/initramfs-tools/scripts/init-bottom/tlp-fix and make it executable:

sudo nano /etc/initramfs-tools/scripts/init-bottom/tlp-fix

try this:

#!/bin/sh
[ -e /run/initramfs \] || exit 0
# Set the ASUS charge threshold workaround
echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold

Save and exit.

2. Make the script executable.

sudo chmod +x /etc/initramfs-tools/scripts/init-bottom/tlp-fix

3. Update initramfs

Run this to regenerate initramfs with the new script:

sudo update-initramfs -u

4. Reboot and verify.

Reboot and check if it sticks by running:

cat /sys/class/power_supply/BAT0/charge_control_end_threshold

If it says 60, it’s done. If not, your ASUS model doesn’t support charge_control_end_threshold.

Also read:

Hope that helps.

1 Like