From 6cb52eb41d03282b9e6ba23c2cdb656ff7d4ac11 Mon Sep 17 00:00:00 2001 From: Jonatas Esteves Date: Dec 13 2022 02:11:50 +0000 Subject: Remove delay, modprobe amdgpu instead --- diff --git a/amdgpu-tune.service b/amdgpu-tune.service index d3568a7..bb483cf 100644 --- a/amdgpu-tune.service +++ b/amdgpu-tune.service @@ -58,7 +58,6 @@ Environment=VDDC_CURVE_2= Type=oneshot RemainAfterExit=yes -ExecStartPre=sleep 2 # We can just embed the whole script in the service unit to avoid dependency on another file. ExecStart=sh -c 'CARD=/sys/class/drm/card0; \ @@ -110,7 +109,8 @@ ExecStop=sh -c 'CARD=/sys/class/drm/card0; \ [Unit] Description=Tune performance of AMD GPU -After=default.target +After=default.target modprobe@amdgpu.service +Wants=modprobe@amdgpu.service [Install] WantedBy=default.target