My friend made auto start script
/etc/rclocal - add start script
start script:
#!/bin/bash
# My first script
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
/usr/sbin/rocm-smi --setsclk 0 1 2 3 4 5 --setfan 255
export HSA_ENABLE_SDMA=0
tmux new -d -s session
tmux send -t session '/opt/tdxminer/tdxminer -a lyra2z -o stratum+tcp:// -u -p ENTER
connect to session
tmux attach -t session