sibradzic / amdgpu-clocks

Simple script to control power states of amdgpu driven GPUs
GNU General Public License v2.0
390 stars 43 forks source link

Add ExecReload to the unit, use it in the resume script #12

Closed terencode closed 4 years ago

terencode commented 4 years ago

systemctl restart is the same as systemctl stop && systemctl start. Thus, after a resume from suspend, the script will first restore the default settings and then apply them again, which is useless as suspend already does that.

Instead, we use ExecReload that will simply call the script once with systemctl reload to just reapply the new settings.