• 0 Posts
  • 4 Comments
Joined 3 months ago
cake
Cake day: June 4th, 2025

help-circle


  • dihutenosa@piefed.socialtoTechnology@lemmy.ml00000
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    No idea about TLP, I’m not using that.

    I created a systemd service for setting the charging threshold on boot, works for me.
    This is NixOS syntax, but you get the idea:

    	systemd.services.battery-charge-control = {  
    		description = "Set battery charging behavior";  
    		script = "echo 70 > /sys/class/power_supply/BAT0/charge_start_threshold; echo 81 > /sys/class/power_supply/BAT0/charge_stop_threshold";  
    		wantedBy = [ "multi-user.target" ];  
    	};