while true;
do
for gpuid in {0..3}; do
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 1 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 2 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 3 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 4 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 5 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 6 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 7 --vddc-table-set 900 --set-fanspeed 60
wolfamdctrl -i $gpuid --mem-state 1 --mem-clock 2000 --core-state 7 --core-clock 1167 --volt-state 8 --vddc-table-set 900 --set-fanspeed 60
done
/home/user/tdxminer/tdxminer -a lyra2z -o <pool> -u <wallet> -p <password> && break;
done
You can shorten it, I did not bother. It just sets clocks, fan speeds and voltage states. You could have one line and another loop for volt state, but as I said I did not bother. Then just calls the miner. Replace pool, wallet and password obviously. If the miner crashes it repeats itself. Then only downside is that the only way to stop it as of now is to reboot the rig

I did not bother with improving it so far, you people are free to do so.
The params are for the RX 580 cards if you wondered, but I have the exact same params for the RX 470 cards.
how should i run it in SSH in hiveos