# Holds the AMD GPU's fabric clock at its top level at boot and after every resume, for halogen-flash-server with # the NPU (HALOGEN_NPU_MODELS): on Strix Halo the GPU and the NPU at once are safe only with that clock held. # Install (as root), from this directory: # install -m 755 halogen-fabric-clock /usr/local/sbin/ # install -m 644 halogen-fabric-clock.service /etc/systemd/system/ # systemctl daemon-reload && systemctl enable --now halogen-fabric-clock.service # Check: halogen-fabric-clock status. Undo: systemctl disable halogen-fabric-clock.service, then # halogen-fabric-clock release (or reboot). The unit runs once at boot and once after each resume (a resume can hand # the clock back to the driver); it holds nothing open, so it shows inactive between runs. [Unit] Description=Hold the AMD GPU fabric clock at its top level (GPU and NPU together) After=systemd-modules-load.service suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target [Service] Type=oneshot ExecStart=/usr/local/sbin/halogen-fabric-clock hold [Install] WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target