mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 07:23:09 +00:00
828bd22ba0
This config backend uses ConfigJsonConfigBackend to update os.power and os.fan subfields under the "os" key, in order to set power and fan configs. The expected format for os.power and os.fan settings is: ``` { os: { power: { mode: string }, fan: { profile: string } } } ``` There may be other keys in os which are not managed by the Supervisor, so PowerFanConfig backend doesn't read or write to them. Extra keys in os.power and os.fan are ignored when getting boot config and removed when setting boot config. After this backend writes to config.json, host services os-power-mode and os-fan-profile pick up the changes, on reboot in the former's case and at runtime in the latter's case. The changes are applied by the host services, which the Supervisor does not manage aside from streaming their service logs to the dashboard. Change-type: minor Signed-off-by: Christina Ying Wang <christina@balena.io> |
||
---|---|---|
.. | ||
config-txt.spec.ts | ||
configJson.spec.ts | ||
extlinux.spec.ts | ||
extra-uenv.spec.ts | ||
odmdata.spec.ts | ||
power-fan.spec.ts | ||
splash-image.spec.ts | ||
utils.spec.ts |