Offline project checks / check (push) Canceled after 0s
- Add phone-dsp.openrc to initialize Hexagon DSP, rmtfs, pd-mapper, and ath10k_snoc - Update phone-battery-guard threshold to 80% with power supply node fallbacks - Enhance phone-cellular-setup with battery gate checks, RF locks, and unit tests - Include bringup, flashing, and inspection automation scripts for platina - Update candidate IPA v2.6 patches and package locks
22 lines
685 B
Plaintext
Executable File
22 lines
685 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
description="Platina battery health and emergency shutdown daemon (50-80% SoC, auto-poweroff <= 5%)"
|
|
command="/usr/local/sbin/platina-battery-guard"
|
|
command_user="root:root"
|
|
command_args="--low ${low:-50} --high ${high:-80} --max-temp ${max_temp:-45} --shutdown-at ${shutdown_at:-5} --interval ${interval:-60}"
|
|
supervisor="supervise-daemon"
|
|
respawn_delay=5
|
|
respawn_max=5
|
|
respawn_period=1800
|
|
pidfile="/run/platina-battery-guard.pid"
|
|
output_log="/var/log/platina-battery-guard.log"
|
|
error_log="/var/log/platina-battery-guard.log"
|
|
|
|
depend() {
|
|
need localmount
|
|
after udev-trigger
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --file --mode 0640 --owner root:root "$output_log"
|
|
}
|