But I’m running Mint Cinnamon 22.
Does anyone know how to add this to initramfs to fix the TLP problem?
Thanks!
But I’m running Mint Cinnamon 22.
Does anyone know how to add this to initramfs to fix the TLP problem?
Thanks!
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:
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.
sudo chmod +x /etc/initramfs-tools/scripts/init-bottom/tlp-fix
Run this to regenerate initramfs with the new script:
sudo update-initramfs -u
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.