summarylogtreecommitdiffstats
path: root/02-fix-service.patch
diff options
context:
space:
mode:
authorpyamsoft2022-11-28 10:19:14 -0800
committerpyamsoft2022-11-28 10:24:18 -0800
commit28926375c36017cef93f517738d6ba8059be5078 (patch)
tree08321faee5b3b8cc34d490b0fa0b49db0eb2d01e /02-fix-service.patch
parenta2ac4cec9ebedb8602958321b171da99e354ae03 (diff)
downloadaur-amd-disable-c6-git.tar.gz
Patch service file to run on other targets too
Ensures the C6 state is still correctly disabled
Diffstat (limited to '02-fix-service.patch')
-rw-r--r--02-fix-service.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/02-fix-service.patch b/02-fix-service.patch
new file mode 100644
index 000000000000..c52b71b79686
--- /dev/null
+++ b/02-fix-service.patch
@@ -0,0 +1,18 @@
+--- a/amd-disable-c6.service 2022-11-28 10:15:36.267656056 -0800
++++ b/amd-disable-c6.service 2022-11-27 20:58:51.000000000 -0800
+@@ -1,12 +1,10 @@
+ [Unit]
+ Description=Service to disable the C6 State on AMD Zen-based (Ryzen, Epyc) processors on boot
+-DefaultDependencies=no
+-After=sysinit.target local-fs.target systemd-modules-load.service
+-Before=multi-user.target
++After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
+
+ [Service]
+-Type=oneshot
+ ExecStart=/usr/bin/amd-disable-c6 --disable_c6_retry
++Type=oneshot
+
+ [Install]
+-WantedBy=multi-user.target
++WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target