I found a tool like MSI Afterburner for Linux, and you can automate your GPU's undervolt

A V/F curve editor on Linux is finally available in a couple of flavors, but this one can run headless