Skip to content

Commit

Permalink
Add support for power mode & fan profile boot configs
Browse files Browse the repository at this point in the history
The boot configs will apply to devices with Jetpack 6 OS's initially,
and require Supervisor v16.8.0 or newer. This may change in the future
if we add support for older Jetpack versions.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
  • Loading branch information
cywang117 committed Dec 11, 2024
1 parent b12d12b commit 4969049
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/features/vars-schema/env-vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,34 @@ export const DEVICE_TYPE_SPECIFIC_CONFIG_VAR_PROPERTIES: Array<{
},
},
),
...getDefinitionWithMinimumSupervisorVersion(
{
'16.10.0': [
'jetson-agx-orin-devkit',
'jetson-agx-orin-devkit-64gb',
'jetson-orin-nano-devkit-nvme',
'jetson-orin-nano-seeed-j3010',
'jetson-orin-nx-seeed-j4012',
'jetson-orin-nx-xavier-nx-devkit',
],
},
{
BALENA_HOST_CONFIG_power_mode: {
type: 'string',
description:
'Define the device power mode. Supported by OS with Jetpack 6 or higher.',
examples: ['low', 'mid', 'high', 'default'],
will_reboot: true,
},
BALENA_HOST_CONFIG_fan_profile: {
type: 'string',
description:
'Define the device fan profile. Supported by OS with Jetpack 6 or higher.',
examples: ['quiet', 'cool', 'default'],
will_reboot: false,
},
},
),
];

const startsWithAny = (ns: string[], name: string) => {
Expand Down

0 comments on commit 4969049

Please sign in to comment.