atmset
Description
Set the ATM configuration. The parameters are the session_id
, followed by a comma-separated list of key-value pairs, in the format key=value
. The available keys are:
- enabled: either
true
orfalse
to enable or disable ATM. - startup_minutes: the minimum amount of time, in minutes, before ATM starts working at system startup.
- post_ramp_minutes: the minimum amount of time, in minutes, before ATM starts working after ramping.
- temp_window: temperature window, before "Hot" in which ATM will trigger a profile change.
- min_profile: lowest profile to be used (can be empty).
- max_profile: highest profile to be used (can be empty).
Providing an invalid value is an error, except on max_profile
and min_profile
, where you can set an empty value to leave them "unbounded". You can specify only the keys you want to change, and it can be done in any order. It is also safe to change ATM configuration while it is running; there is no need to reboot or turn it off and on again.
The current ATM configuration can be seen on the atm command.
Note: If autosave is disabled, the changes will be lost after a reboot.
Command
$ echo '{"command": "atmset", "parameter":"tjqw4aNI,enabled=true"}' | nc $MINER_IP 4028 | jq
Example
In this example, we enable ATM. This change will be persistent (as long as autosave is enabled). To disable, just change the value to false
:
$ echo '{"command": "atmset", "parameter":"tjqw4aNI,enabled=true"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 340,
"Description": "LUXminer 2023.7.7.220938-027e312",
"Msg": "Advanced Thermal Management configuration updated",
"STATUS": "S",
"When": 1688824420
}
],
"id": 1
}
In the example below, we set all parameters at once:
$ echo '{"command": "atmset", "parameter":"tjqw4aNI,enabled=true,startup_minutes=99,post_ramp_minutes=1440,temp_window=7,min_profile=efficiency,max_profile=performance"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 340,
"Description": "LUXminer 2023.7.7.220938-027e312",
"Msg": "Advanced Thermal Management configuration updated",
"STATUS": "S",
"When": 1688824585
}
],
"id": 1
}
If you added a limit to the maximum profile, but want to leave it unbounded, just set it to a blank value:
$ echo '{"command": "atmset", "parameter":"tjqw4aNI,max_profile="}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 340,
"Description": "LUXminer 2023.7.7.220938-027e312",
"Msg": "Advanced Thermal Management configuration updated",
"STATUS": "S",
"When": 1688824420
}
],
"id": 1
}
Parameters
Parameter | Notes |
---|---|
session_id | A valid session ID. See Session Management for details. |
params | List of key-value parameters to change. |