Help with TLP plugin

Evening

Here here https://linrunner.de/tlp/faq/battery.html#asus-laptops-stop-charge-threshold-isn-t-set-at-boot (sorry for link format, protection doesn’t allow new users to post links) is how to solve this problem in Arch. But I’m running Mint Cinnamon 22.

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

Thanks!

On Linux Mint, the issue happens because asus_wmi loads too late. Fix it with a systemd service:

  1. Create the file:
    sudo nano /etc/systemd/system/tlp-threshold.service
    
  2. Add this:
    [Unit]
    Description=Apply TLP Charge Threshold
    After=multi-user.target
    Before=tlp.service
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/tlp init
    RemainAfterExit=true
    
    [Install]
    WantedBy=multi-user.target
    
  3. Save & exit (CTRL+X, Y, ENTER).
  4. Enable it:
    sudo systemctl enable tlp-threshold.service
    
  5. (Optional) Update initramfs:
    sudo update-initramfs -u
    
  6. Reboot & check:
    sudo tlp-stat -b
    

hope this helps…