biomecanoid Hello guys, Can anyone hep me “translate” this guide to batocera ? https://smarttech101.com/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix/ I want to use a laptop I have as a TV-BOX to play games on my TV but I don’t want to mess the battery I can edit : /sys/class/power_supply/BAT0/charge_control_start_threshold and /sys/class/power_supply/BAT0/charge_control_end_threshold But values are reset after restart how can I issue this command on startup ? echo 40 > /sys/class/power_supply/BAT0/charge_control_start_threshold; echo 50 > /sys/class/power_supply/BAT0/charge_control_end_threshold from what I noticed there is no systemctl or crontab in batocera Thank you Chris
XFer You can edit (or create, if it does not exist): \userdata\system\custom.sh it acts as a rc.local of sort. I recommend using #!/bin/bash as shebang (first line of script), instead of the usual #!/bin/sh