#!/bin/bash # script to reset tuned's AMDGPU clock control to default # # rendered by Ansible with environment-appropriate values: # card #, eg: card0 # min/max GPU clocks # set control mode back to auto echo 'auto' | tee /sys/class/drm/{{ card }}/device/power_dpm_force_performance_level # reset any existing profile clock changes echo 'r' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage