Hello,
i tried to used custom command, which creating exec to sh script, its getting variable through amdgpu_top.. its working fine with mangohud glxgears..
But when i use the same settings for Steam proton games, value is stuck on 0% and its not updating, so custom command probably needs some special care to work with Proton.
MX Linux newest - Debian 12, OpenBox, Mangohud 0.6.8
My Radeon HD 7750, which i need to use for Windows 2000 dualboot, does not provide classic gpu usage value through kernel, too old graphics card, so i had to get through amdgpu_top - i had to compile to make it working:
amdgpu_top -n 1 --json | jq -r '.devices[0]."Total fdinfo".GFX.value // 0 | tostring + "%"'
and same for even older Radeon Cards, there you can get value through radeontop:
radeontop -d - -l 1 | grep -oP 'gpu \K\d+' | awk '{print $1 "%"}'