Skip to content

Instantly share code, notes, and snippets.

@megumintyan
Created July 29, 2022 10:23
Show Gist options
  • Save megumintyan/5b1f96a609351d0b27d564b1ddb60af3 to your computer and use it in GitHub Desktop.
Save megumintyan/5b1f96a609351d0b27d564b1ddb60af3 to your computer and use it in GitHub Desktop.
gpu undervault
[Unit]
Description=set gpu signal clock and voultage
[Service]
User=root
# ExecStartPre=/bin/sleep 5
ExecStart=/bin/bash -c 'echo "s 1 1704" > /sys/class/drm/card0/device/pp_od_clk_voltage && \
echo "vc 0 500 700" > /sys/class/drm/card0/device/pp_od_clk_voltage && \
echo "vc 1 1102 775" > /sys/class/drm/card0/device/pp_od_clk_voltage && \
echo "vc 2 1704 999" > /sys/class/drm/card0/device/pp_od_clk_voltage && \
echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage'
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment